From: Michal Krol Date: Fri, 25 Sep 2009 08:57:33 +0000 (+0200) Subject: softpipe: Grab fs output z from the correct file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69c7fc128c59bf72df461dbd583bf9794d9ed34d;p=mesa.git softpipe: Grab fs output z from the correct file. --- diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c index c469ac63407..4076114d392 100644 --- a/src/gallium/drivers/softpipe/sp_fs_exec.c +++ b/src/gallium/drivers/softpipe/sp_fs_exec.c @@ -151,7 +151,7 @@ exec_run( const struct sp_fragment_shader *base, { uint j; for (j = 0; j < 4; j++) { - quad->output.depth[j] = machine->Outputs[0].xyzw[2].f[j]; + quad->output.depth[j] = machine->Outputs[i].xyzw[2].f[j]; } } break;