diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-08-24 18:26:42 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-08-24 18:26:42 -0600 |
commit | 703140bbd58931046c00b43e52a7c4e9235875ca (patch) | |
tree | e5c3a02e0958c5b617ab8006aa85b5e9621d4133 /src/mesa/pipe/tgsi | |
parent | 29dc25bcfebfcb1764382bee960851ab051e6bbe (diff) |
Fix fragment program color output mapping (0=depth, 1=color)
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r-- | src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c index 78390767df..182a7eff05 100644 --- a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c +++ b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c @@ -356,11 +356,11 @@ map_register_file_index( * color results -> index 1, 2, ...
*/
if( index == FRAG_RESULT_DEPR ) {
- mapped_index = TGSI_ATTRIB_POS;
+ mapped_index = 0; /**TGSI_ATTRIB_POS;**/
}
else {
assert( index == FRAG_RESULT_COLR );
- mapped_index = TGSI_ATTRIB_COLOR0;
+ mapped_index = 1; /**TGSI_ATTRIB_COLOR0;**/
}
}
else {
|