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:
parent
81557a4fdf
commit
9ca0c0b4b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue