Mesa (glsl2): ir_to_mesa: Fix copy and wasted InputsRead/ OutputsWritten setup.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Jun 28 20:30:13 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 81b7b79c472cbc15cb044656bd37b101a941f358
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81b7b79c472cbc15cb044656bd37b101a941f358
Author: Eric Anholt <eric at anholt.net>
Date: Sun Jun 27 20:43:09 2010 -0700
ir_to_mesa: Fix copy and wasted InputsRead/OutputsWritten setup.
---
src/mesa/shader/ir_to_mesa.cpp | 4 ++--
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 99ec55a..af5237f 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;
More information about the mesa-commit
mailing list