mesa/st: load state params for feedback draws with allow_st_finalize_nir_twice
as proposed by Amol Surati, this should ensure that the params are always updated
Fixes: 5eb0136a3c
("mesa/st: when creating draw shader variants, use the base nir and skip driver opts")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30126>
This commit is contained in:

committed by
Marge Bot

parent
b0ad3c2160
commit
e42a25aea1
@@ -181,7 +181,7 @@ st_feedback_draw_vbo(struct gl_context *ctx,
|
||||
* in gl_program_parameter_list because allow_constbuf0_as_real_buffer
|
||||
* is set.
|
||||
*/
|
||||
if (st->prefer_real_buffer_in_constbuf0 && params->StateFlags)
|
||||
if ((st->prefer_real_buffer_in_constbuf0 || st->allow_st_finalize_nir_twice) && params->StateFlags)
|
||||
_mesa_load_state_parameters(st->ctx, params);
|
||||
|
||||
draw_set_constant_buffer_stride(draw, sizeof(float));
|
||||
|
Reference in New Issue
Block a user