Minor optimization: no-op CAL when ExecMask==0x0.

This commit is contained in:
Brian
2007-10-02 14:25:43 -06:00
parent 6aab3e3d26
commit 8955bc3458
+6 -3
View File
@@ -1911,9 +1911,12 @@ exec_instruction(
break;
case TGSI_OPCODE_CAL:
/* note that PC was already incremented above */
mach->CallStack[mach->CallStackTop++] = *pc;
*pc = inst->InstructionExtLabel.Label;
/* skip the call if no execution channels are enabled */
if (mach->ExecMask) {
/* note that PC was already incremented above */
mach->CallStack[mach->CallStackTop++] = *pc;
*pc = inst->InstructionExtLabel.Label;
}
break;
case TGSI_OPCODE_RET: