mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-14 07:31:39 +00:00
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> llvm-svn: 174963
This commit is contained in:
parent
2a0a9b8280
commit
6e93c3c0af
@ -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);
|
||||
}]
|
||||
>;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user