case NV50_IR_INTERP_DEFAULT : sample = 0; break;
case NV50_IR_INTERP_CENTROID: sample = 1; break;
case NV50_IR_INTERP_OFFSET : sample = 2; break;
- default: assert(!"invalid sample mode");
+ default: unreachable("invalid sample mode");
}
int interp;
case NV50_IR_INTERP_PERSPECTIVE: interp = 0; break;
case NV50_IR_INTERP_FLAT : interp = 1; break;
case NV50_IR_INTERP_SC : interp = 2; break;
- default: assert(!"invalid ipa mode");
+ default: unreachable("invalid ipa mode");
}
code[loc + 2] &= ~(0xf << 12);
case OP_OR : subOp = src0 | src1; break;
case OP_XOR: subOp = src0 ^ src1; break;
default:
- assert(!"invalid LOP2 opcode");
- break;
+ unreachable("invalid LOP2 opcode");
}
bld.mkOp3(OP_LOP3_LUT, TYPE_U32, i->getDef(0), i->getSrc(0), i->getSrc(1),