From 6e93c3c0afac9a41c6ed8e90611d978e8a1778d9 Mon Sep 17 00:00:00 2001 From: Michel Danzer Date: Tue, 12 Feb 2013 12:11:23 +0000 Subject: [PATCH] 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 Reviewed-by: Tom Stellard llvm-svn: 174963 --- lib/Target/R600/R600Instructions.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/R600/R600Instructions.td b/lib/Target/R600/R600Instructions.td index 591f66d2c16..373a793c80d 100644 --- a/lib/Target/R600/R600Instructions.td +++ b/lib/Target/R600/R600Instructions.td @@ -399,7 +399,7 @@ class R600_TEX inst, string opName, list 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); }] >;