From 10144c1f0b4cc9d972fde3c48bbe28685eb5768b Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 26 Oct 2022 16:59:40 +0200 Subject: [PATCH] rusticl: do not DCE any samplers or textures Signed-off-by: Karol Herbst Reviewed-by: Jesse Natalie Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index fdf26a3ae2f..0aecb54e812 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -452,6 +452,8 @@ extern "C" fn can_remove_var(var: *mut nir_variable, _: *mut c_void) -> bool { unsafe { let var = var.as_ref().unwrap(); !glsl_type_is_image(var.type_) + && !glsl_type_is_texture(var.type_) + && !glsl_type_is_sampler(var.type_) } }