mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
ir_to_mesa: Fix copy and wasted InputsRead/OutputsWritten setup.
This commit is contained in:
parent
5f3fe44595
commit
81b7b79c47
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue