R600/SI: fix shadow mapping for 1D and 2D array textures
[oota-llvm.git] / lib / Target / R600 / R600Instructions.td
index 73fa345ac0f23863a50035348ec2335d41f3218e..704507d368ec540d6918cdb20d8bdd4e64c14420 100644 (file)
@@ -216,7 +216,7 @@ class R600_REDUCTION <bits<11> inst, dag ins, string asm, list<dag> pattern,
 def TEX_SHADOW : PatLeaf<
   (imm),
   [{uint32_t TType = (uint32_t)N->getZExtValue();
-    return (TType >= 6 && TType <= 8) || (TType >= 11 && TType <= 13);
+    return (TType >= 6 && TType <= 8) || TType == 13;
   }]
 >;