summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-27 20:43:09 -0700
committerEric Anholt <eric@anholt.net>2010-06-28 11:14:47 -0700
commit81b7b79c472cbc15cb044656bd37b101a941f358 (patch)
tree9aab1c9a0684a863f0363ef0205b9ae1a01f1bb2 /src/mesa
parent5f3fe44595e53874908d1f047405d27861f1df0f (diff)
ir_to_mesa: Fix copy and wasted InputsRead/OutputsWritten setup.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/ir_to_mesa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp
index 99ec55a0d8..af5237f697 100644
--- a/src/mesa/shader/ir_to_mesa.cpp
+++ b/src/mesa/shader/ir_to_mesa.cpp
@@ -1214,10 +1214,10 @@ count_resources(struct gl_program *prog)
for (reg = 0; reg < _mesa_num_inst_src_regs(inst->Opcode); reg++) {
switch (inst->SrcReg[reg].File) {
case PROGRAM_OUTPUT:
- prog->OutputsWritten |= BITFIELD64_BIT(inst->DstReg.Index);
+ prog->OutputsWritten |= BITFIELD64_BIT(inst->SrcReg[reg].Index);
break;
case PROGRAM_INPUT:
- prog->InputsRead |= BITFIELD64_BIT(inst->DstReg.Index);
+ prog->InputsRead |= BITFIELD64_BIT(inst->SrcReg[reg].Index);
break;
default:
break;