mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
glsl: update program->InputsRead when referencing input attributes
This info will be used in the linker for allocating generic vertex attribs.
This commit is contained in:
parent
e33edafb2c
commit
1cb7cd1292
1 changed files with 4 additions and 0 deletions
|
|
@ -2120,6 +2120,10 @@ emit_var_ref(slang_emit_info *emitInfo, slang_ir_node *n)
|
|||
/* mark var as used */
|
||||
_mesa_use_uniform(emitInfo->prog->Parameters, (char *) n->Var->a_name);
|
||||
}
|
||||
else if (n->Store->File == PROGRAM_INPUT) {
|
||||
assert(n->Store->Index >= 0);
|
||||
emitInfo->prog->InputsRead |= (1 << n->Store->Index);
|
||||
}
|
||||
|
||||
if (n->Store->Index < 0) {
|
||||
/* probably ran out of registers */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue