diff options
author | daenzer <daenzer@91177308-0d34-0410-b5e6-96231b3b80d8> | 2013-02-12 12:11:23 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-02-13 22:23:13 +0000 |
commit | cddf96529c267fe5ba73a833597a3750a973741b (patch) | |
tree | e93260bcc06bc7a3d5e0ec3352b737d04e779d53 | |
parent | e150c87a7ffd8e39e25da9c2f5429d10e044d68c (diff) |
R600: Fix regression with shadow array sampler on pre-SI GPUs.
'R600/SI: Use proper instructions for array/shadow samplers.' removed two
cases from TEX_SHADOW. Vincent Lejeune reported on IRC that this broke some
shadow array piglit tests with the r600g driver. Reinstating the removed
cases should fix this, and still works with radeonsi as well.
I will follow up with some lit tests which would have caught the regression.
NOTE: This is a candidate for the Mesa stable branch.
Tested-by: Vincent Lejeune <vljn@ovi.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174963 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit c276b1671d13def6dd142a76f49ec51dd6eaef6f)
-rw-r--r-- | lib/Target/R600/R600Instructions.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index d307ed2874a..1069570e058 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -399,7 +399,7 @@ class R600_TEX <bits<11> inst, string opName, list<dag> pattern, def TEX_SHADOW : PatLeaf< (imm), [{uint32_t TType = (uint32_t)N->getZExtValue(); - return (TType >= 6 && TType <= 8) || TType == 13; + return (TType >= 6 && TType <= 8) || (TType >= 11 && TType <= 13); }] >; |