mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 14:00:16 +01:00
st/glsl_to_nir: call st_set_prog_affected_state_flags() as late as possible
this function should be called late to allow for other passes potentially making changes which affect the states in use by shaders Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16749>
This commit is contained in:
parent
93d9f086a3
commit
5b5eb77a87
1 changed files with 2 additions and 2 deletions
|
|
@ -481,8 +481,6 @@ st_glsl_to_nir_post_opts(struct st_context *st, struct gl_program *prog,
|
|||
*/
|
||||
_mesa_ensure_and_associate_uniform_storage(st->ctx, shader_program, prog, 28);
|
||||
|
||||
st_set_prog_affected_state_flags(prog);
|
||||
|
||||
/* None of the builtins being lowered here can be produced by SPIR-V. See
|
||||
* _mesa_builtin_uniform_desc. Also drivers that support packed uniform
|
||||
* storage don't need to lower builtins.
|
||||
|
|
@ -531,6 +529,8 @@ st_glsl_to_nir_post_opts(struct st_context *st, struct gl_program *prog,
|
|||
if (!st->has_hw_atomics && !screen->get_param(screen, PIPE_CAP_NIR_ATOMICS_AS_DEREF))
|
||||
NIR_PASS_V(nir, nir_lower_atomics_to_ssbo);
|
||||
|
||||
st_set_prog_affected_state_flags(prog);
|
||||
|
||||
st_finalize_nir_before_variants(nir);
|
||||
|
||||
char *msg = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue