mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
glsl: don't eliminate subroutine types.
This stops dead code from removing subroutines types, we need these for the queries to work properly. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
57f24299b7
commit
f73ef82486
1 changed files with 3 additions and 0 deletions
|
|
@ -126,6 +126,9 @@ do_dead_code(exec_list *instructions, bool uniform_locations_assigned)
|
|||
if (block_type->interface_packing != GLSL_INTERFACE_PACKING_PACKED)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (entry->var->type->is_subroutine())
|
||||
continue;
|
||||
}
|
||||
|
||||
entry->var->remove();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue