Mesa (main): microsoft/clc: Remove dead image vars
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 27 17:04:33 UTC 2022
Module: Mesa
Branch: main
Commit: ca23a4af6734afb3056c095761d8554f38bd4d70
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ca23a4af6734afb3056c095761d8554f38bd4d70
Author: Jesse Natalie <jenatali at microsoft.com>
Date: Sun Jun 26 21:08:56 2022 -0700
microsoft/clc: Remove dead image vars
Reviewed-by: Bill Kristiansen <billkris at microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17246>
---
src/microsoft/clc/clc_compiler.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microsoft/clc/clc_compiler.c b/src/microsoft/clc/clc_compiler.c
index 04b3f771792..bedaa3d804b 100644
--- a/src/microsoft/clc/clc_compiler.c
+++ b/src/microsoft/clc/clc_compiler.c
@@ -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) {
More information about the mesa-commit
mailing list