summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMarek Olsak <marek.olsak@amd.com>2014-07-11 17:11:39 +0000
committerMarek Olsak <marek.olsak@amd.com>2014-07-11 17:11:39 +0000
commitba77c3e4ed214a7ea669bd8ccbc997fde55b8424 (patch)
tree113be7d56d08c9e40e386bd74f3a10f5cee4f040 /llvm/lib
parent6de08c3dc49c0edd3c388d7ee4207aa48ad1f16a (diff)
downloadbcm5719-llvm-ba77c3e4ed214a7ea669bd8ccbc997fde55b8424.tar.gz
bcm5719-llvm-ba77c3e4ed214a7ea669bd8ccbc997fde55b8424.zip
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@amd.com> llvm-svn: 212829
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/R600Instructions.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/R600Instructions.td b/llvm/lib/Target/R600/R600Instructions.td
index 73fa345ac0f..704507d368e 100644
--- a/llvm/lib/Target/R600/R600Instructions.td
+++ b/llvm/lib/Target/R600/R600Instructions.td
@@ -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;
}]
>;
OpenPOWER on IntegriCloud