From: Eric Anholt Date: Mon, 28 Jun 2010 03:43:09 +0000 (-0700) Subject: ir_to_mesa: Fix copy and wasted InputsRead/OutputsWritten setup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81b7b79c472cbc15cb044656bd37b101a941f358;p=mesa.git ir_to_mesa: Fix copy and wasted InputsRead/OutputsWritten setup. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 99ec55a0d85..af5237f697c 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;