mesa/st: increment num_uniforms for hw accel select shaders

this otherwise breaks nir_lower_uniforms_to_ubo() and probably lots
of drivers

Fixes: 9b22ab4167 ("mesa/st: implement hardware accelerated GL_SELECT")

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17092>
This commit is contained in:
Mike Blumenkrantz 2022-06-16 16:58:37 -04:00 committed by Marge Bot
parent 81557a4fdf
commit 9ca0c0b4b4
1 changed files with 1 additions and 0 deletions

View File

@ -612,6 +612,7 @@ hw_select_create_gs(struct st_context *st, union state_key state)
nir_shader *nir = b.shader;
nir->info.inputs_read = VARYING_BIT_POS;
nir->num_uniforms = DIV_ROUND_UP(sizeof(struct geometry_constant), (4 * sizeof(float)));
nir->info.num_ssbos = 1;
nir->info.gs.output_primitive = SHADER_PRIM_POINTS;
nir->info.gs.vertices_out = 1;