Commit 7d7ecfbc authored by Eric Anholt's avatar Eric Anholt

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

Fixes: 4d0b2c7a ("ttn: Update shader->info as we generate code.")
Reviewed-by: Rob Clark's avatarRob Clark <>
parent e2ae5f2f
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment