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_) } }