mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
glsl: don't try adding built-ins to explicit locations bitmask
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
ac6e2c2056
commit
47dde2bd45
1 changed files with 3 additions and 1 deletions
|
|
@ -1518,7 +1518,9 @@ reserved_varying_slot(struct gl_shader *stage, ir_variable_mode io_mode)
|
|||
foreach_in_list(ir_instruction, node, stage->ir) {
|
||||
ir_variable *const var = node->as_variable();
|
||||
|
||||
if (var == NULL || var->data.mode != io_mode || !var->data.explicit_location)
|
||||
if (var == NULL || var->data.mode != io_mode ||
|
||||
!var->data.explicit_location ||
|
||||
var->data.location < VARYING_SLOT_VAR0)
|
||||
continue;
|
||||
|
||||
var_slot = var->data.location - VARYING_SLOT_VAR0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue