summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_quad_fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_fs.c')
-rwxr-xr-xsrc/mesa/pipe/softpipe/sp_quad_fs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index d9349a2280..2b0c4366bd 100755
--- a/src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/src/mesa/pipe/softpipe/sp_quad_fs.c
@@ -116,8 +116,7 @@ shade_quad(
sizeof( quad->outputs.color ) );
/* Z */
- if (qss->stage.softpipe->fs->output_semantic_name[0]
- == TGSI_SEMANTIC_POSITION) {
+ if (qss->stage.softpipe->fs->outputs_written & 0x1) {
/* output[0] is new Z */
uint i;
for (i = 0; i < 4; i++) {