[Mesa-dev] [PATCH] radeonsi: Also set the depth component mask bit for stencil-only exports
Michel Dänzer
michel at daenzer.net
Fri Aug 23 08:03:07 PDT 2013
From: Michel Dänzer <michel.daenzer at amd.com>
The stencil values come out wrong without this for some reason.
50 more little piglits.
Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/drivers/radeonsi/radeonsi_shader.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index a1dec17..2b1928a 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];
--
1.8.4.rc3
More information about the mesa-dev
mailing list