summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2013-08-23 14:55:45 +0200
committerMichel Dänzer <michel@daenzer.net>2013-08-26 15:47:50 +0200
commit46fd81e586f0c1a76ab66b9a7558783c481f111e (patch)
tree0a28afd122a8e6888a15914767ea2b95e8c79a73
parent7fa18774bd9d0e97a82ee9b7dfce8fc5a1041c3a (diff)
radeonsi: Also set the depth component mask bit for stencil-only exports
The stencil values come out wrong without this for some reason. 50 more little piglits. Cc: mesa-stable@lists.freedesktop.org
-rw-r--r--src/gallium/drivers/radeonsi/radeonsi_shader.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index a1dec1757cb..2b1928a05a5 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -826,7 +826,10 @@ handle_semantic:
args[7] =
args[8] =
args[6] = LLVMBuildLoad(base->gallivm->builder, out_ptr, "");
- mask |= 0x2;
+ /* Only setting the stencil component bit (0x2) here
+ * breaks some stencil piglit tests
+ */
+ mask |= 0x3;
if (depth_index < 0)
args[5] = args[6];