softpipe: Grab fs output z from the correct file.
authorMichal Krol <michal@vmware.com>
Fri, 25 Sep 2009 08:57:33 +0000 (10:57 +0200)
committerMichal Krol <michal@vmware.com>
Fri, 25 Sep 2009 16:52:13 +0000 (18:52 +0200)
src/gallium/drivers/softpipe/sp_fs_exec.c

index c469ac63407afd3c4673f6e6360b05e6aae3e5ae..4076114d392a894165e5e6c3419eb63fc4d6a0e5 100644 (file)
@@ -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;