diff options
author | Brian <[email protected]> | 2008-04-14 20:58:05 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-04-14 20:58:05 -0600 |
commit | 90b9a11a6d69f1cf6c837def0e8a9b598079ef1b (patch) | |
tree | 735d60c81ae93cd4c043c55e821d4f7eccd9356c /src/mesa | |
parent | e4b3c13d7a7dbd716bdf4b4d2dda8c6e579bd2d1 (diff) |
gallium: fix semantic indexes for outputs
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 578fd2ecb05..524b5af50b2 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -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: |