mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
microsoft/clc: Remove dead image vars
Reviewed-by: Bill Kristiansen <billkris@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17246>
This commit is contained in:
parent
fd37959680
commit
ca23a4af67
1 changed files with 2 additions and 1 deletions
|
|
@ -978,7 +978,8 @@ clc_spirv_to_dxil(struct clc_libclc *lib,
|
|||
|
||||
// Before removing dead uniforms, dedupe constant samplers to make more dead uniforms
|
||||
NIR_PASS_V(nir, clc_nir_dedupe_const_samplers);
|
||||
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_uniform | nir_var_mem_ubo | nir_var_mem_constant | nir_var_function_temp, NULL);
|
||||
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_uniform | nir_var_mem_ubo |
|
||||
nir_var_mem_constant | nir_var_function_temp | nir_var_image, NULL);
|
||||
|
||||
// Fill out inline sampler metadata, now that they've been deduped and dead ones removed
|
||||
nir_foreach_variable_with_modes(var, nir, nir_var_uniform) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue