Displaying 1 result from an estimated 1 matches for "tgsi_cc_n".
Did you mean:
tgsi_cc_ne
2009 Jun 21
0
[PATCH] nv50: support for SLE, SNE, SEQ, SGT
...ned
+map_opcode_ccode(unsigned op)
+{
+ switch (op) {
+ case TGSI_OPCODE_SLT: return TGSI_CC_LT;
+ case TGSI_OPCODE_SGE: return TGSI_CC_GE;
+ case TGSI_OPCODE_SEQ: return TGSI_CC_EQ;
+ case TGSI_OPCODE_SGT: return TGSI_CC_GT;
+ case TGSI_OPCODE_SLE: return TGSI_CC_LE;
+ case TGSI_OPCODE_SNE: return TGSI_CC_NE;
+ default:
+ assert(0);
+ return 0;
+ }
+}
+
+static inline unsigned
+map_ccode_nv50(unsigned cc)
+{
+ assert(cc < 16);
+
+ switch (cc) {
+ case TGSI_CC_GT: return 0x4;
+ case TGSI_CC_EQ: return 0x2;
+ case TGSI_CC_LT: return 0x1;
+ case TGSI_CC_GE: return 0x6;
+ case TGSI_CC_LE: return 0x3;...