[llvm] r212829 - R600/SI: fix shadow mapping for 1D and 2D array textures

Marek Olsak marek.olsak at amd.com
Fri Jul 11 10:11:40 PDT 2014


Author: mareko
Date: Fri Jul 11 12:11:39 2014
New Revision: 212829

URL: http://llvm.org/viewvc/llvm-project?rev=212829&view=rev
Log:
R600/SI: fix shadow mapping for 1D and 2D array textures

It was conflicting with def TEX_SHADOW_ARRAY, which also handles them.

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

Modified:
    llvm/trunk/lib/Target/R600/R600Instructions.td

Modified: llvm/trunk/lib/Target/R600/R600Instructions.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600Instructions.td?rev=212829&r1=212828&r2=212829&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600Instructions.td (original)
+++ llvm/trunk/lib/Target/R600/R600Instructions.td Fri Jul 11 12:11:39 2014
@@ -216,7 +216,7 @@ class R600_REDUCTION <bits<11> inst, dag
 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;
   }]
 >;
 





More information about the llvm-commits mailing list