D3D1x specifies that only the low 5 bit of the shift are used.
#define NV50_IR_SUBOP_LDC_IL 1
#define NV50_IR_SUBOP_LDC_IS 2
#define NV50_IR_SUBOP_LDC_ISL 3
+#define NV50_IR_SUBOP_SHIFT_WRAP 1
enum DataType
{
PRINT(" %sBB:%i", colour[TXT_BRA], asFlow()->target.bb->getId());
} else {
PRINT("%s ", operationStr[op]);
+ if (subOp)
+ PRINT("(SUBOP:%u) ", subOp);
if (perPatch)
PRINT("patch ");
if (asTex())
emitForm_A(i, HEX64(60000000, 00000003));
}
- if (0)
- code[0] |= 1 << 9; // clamp shift amount
+ if (i->subOp == NV50_IR_SUBOP_SHIFT_WRAP)
+ code[0] |= 1 << 9;
}
void