mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
f8dd64739e
commit
10144c1f0b
1 changed files with 2 additions and 0 deletions
|
|
@ -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_)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue