mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
zink: run bo lowering passes for separate shader compile with uniform inlining
this is otherwise unable to pass ntv Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22612>
This commit is contained in:
parent
3e5e5e58af
commit
a76bdcd34c
1 changed files with 5 additions and 0 deletions
|
|
@ -3656,6 +3656,11 @@ zink_shader_compile_separate(struct zink_screen *screen, struct zink_shader *zs)
|
|||
default: break;
|
||||
}
|
||||
}
|
||||
if (screen->driconf.inline_uniforms) {
|
||||
NIR_PASS_V(nir, nir_lower_io_to_scalar, nir_var_mem_global | 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, zs);
|
||||
}
|
||||
optimize_nir(nir, zs);
|
||||
zink_descriptor_shader_init(screen, zs);
|
||||
struct zink_shader_object obj = compile_module(screen, zs, nir, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue