zink: flag optimization pass after inlining uniforms

this probably generated some pretty gnarly code

cc: mesa-stable

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16669>
(cherry picked from commit 02a3a5ff31)

Conflicts:
	src/gallium/drivers/zink/zink_compiler.c
This commit is contained in:
Mike Blumenkrantz 2022-05-18 10:08:26 -04:00 committed by Dylan Baker
parent ebda38196a
commit d2dd99d5f4
2 changed files with 2 additions and 1 deletions

View file

@ -2722,7 +2722,7 @@
"description": "zink: flag optimization pass after inlining uniforms",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1390,6 +1390,7 @@ zink_shader_compile(struct zink_screen *screen, struct zink_shader *zs, nir_shad
NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_mem_ubo | nir_var_mem_ssbo | nir_var_mem_shared);
NIR_PASS_V(nir, rewrite_bo_access, screen);
NIR_PASS_V(nir, remove_bo_access);
need_optimize = true;
}
if (inlined_uniforms) {
optimize_nir(nir);