R600/SI: Use unnormalized coordinates for sampling with the RECT target.
[oota-llvm.git] / lib / Target / R600 / R600Instructions.td
index 64bab18fa6c097445bde7aba8b598285deae7ee4..b15ea762bfdce652182b01da7f3881f61cd340ec 100644 (file)
@@ -342,6 +342,13 @@ def TEX_SHADOW : PatLeaf<
   }]
 >;
 
+def TEX_RECT : PatLeaf<
+  (imm),
+  [{uint32_t TType = (uint32_t)N->getZExtValue();
+    return TType == 5;
+  }]
+>;
+
 class EG_CF_RAT <bits <8> cf_inst, bits <6> rat_inst, bits<4> rat_id, dag outs,
                  dag ins, string asm, list<dag> pattern> :
     InstR600ISA <outs, ins, asm, pattern> {