gallium: fix semantic indexes for outputs
authorBrian <brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 02:58:05 +0000 (20:58 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 15 Apr 2008 02:58:05 +0000 (20:58 -0600)
src/mesa/state_tracker/st_mesa_to_tgsi.c

index 578fd2ecb0527aee2c55a99378a6a6f0d64ba254..524b5af50b2ab0cef9b2da0b3a410c70410e9b62 100644 (file)
@@ -767,12 +767,14 @@ tgsi_translate_mesa_program(
          switch (outputSemanticName[i]) {
          case TGSI_SEMANTIC_POSITION:
             fulldecl = make_output_decl(i,
-                                        TGSI_SEMANTIC_POSITION, 0, /* Z / Depth */
+                                        TGSI_SEMANTIC_POSITION, /* Z / Depth */
+                                        outputSemanticIndex[i],
                                         TGSI_WRITEMASK_Z );
             break;
          case TGSI_SEMANTIC_COLOR:
             fulldecl = make_output_decl(i,
-                                        TGSI_SEMANTIC_COLOR, 0,
+                                        TGSI_SEMANTIC_COLOR,
+                                        outputSemanticIndex[i],
                                         TGSI_WRITEMASK_XYZW );
             break;
          default: