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>
This commit is contained in:
parent
a8e718c7e5
commit
02a3a5ff31
|
@ -1523,6 +1523,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, 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, rewrite_bo_access, screen);
|
||||||
NIR_PASS_V(nir, remove_bo_access, zs);
|
NIR_PASS_V(nir, remove_bo_access, zs);
|
||||||
|
need_optimize = true;
|
||||||
}
|
}
|
||||||
if (inlined_uniforms) {
|
if (inlined_uniforms) {
|
||||||
optimize_nir(nir);
|
optimize_nir(nir);
|
||||||
|
|
Loading…
Reference in New Issue