mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 04:00:10 +01:00
gallium/ttn: Fix setup of outputs_written.
We need a 64-bit value, otherwise we only handle the low 32, and happen to
sign-extend to claim to write all varying slots if VARYING_SLOT_VAR2 was
used.
Fixes: 4d0b2c7aaa ("ttn: Update shader->info as we generate code.")
Reviewed-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
e2ae5f2f0a
commit
7d7ecfbcbc
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ ttn_emit_declaration(struct ttn_compile *c)
|
|||
c->outputs[idx] = var;
|
||||
|
||||
for (int i = 0; i < array_size; i++)
|
||||
b->shader->info.outputs_written |= 1 << (var->data.location + i);
|
||||
b->shader->info.outputs_written |= 1ull << (var->data.location + i);
|
||||
}
|
||||
break;
|
||||
case TGSI_FILE_CONSTANT:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue