rusticl: do not DCE any samplers or textures

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19381>
This commit is contained in:
Karol Herbst 2022-10-26 16:59:40 +02:00 committed by Marge Bot
parent f8dd64739e
commit 10144c1f0b

View file

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