mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-16 23:30:35 +01:00
radeonsi: do not DCE texture vars
Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19381>
This commit is contained in:
parent
761a2819b5
commit
f8dd64739e
1 changed files with 1 additions and 0 deletions
|
|
@ -350,6 +350,7 @@ char *si_finalize_nir(struct pipe_screen *screen, void *nirptr)
|
|||
/* Remove uniforms because those should have been lowered to UBOs already. */
|
||||
nir_foreach_variable_with_modes_safe(var, nir, nir_var_uniform) {
|
||||
if (!glsl_type_get_image_count(var->type) &&
|
||||
!glsl_type_get_texture_count(var->type) &&
|
||||
!glsl_type_get_sampler_count(var->type))
|
||||
exec_node_remove(&var->node);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue