diff options
author | Brian <[email protected]> | 2007-10-03 16:18:44 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-03 16:18:44 -0600 |
commit | 68c4254d757012cbb5994d3b55769eb250747fce (patch) | |
tree | b0cf13c9b700553956365c79e9e2063b91910dac /src | |
parent | 635c4c41bdf111462939da292d65328595d314e8 (diff) |
updated comments
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c index 2a2a1a04306..189c7f3edad 100644 --- a/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c +++ b/src/mesa/pipe/tgsi/mesa/mesa_to_tgsi.c @@ -59,22 +59,13 @@ map_register_file_index( switch( file ) {
case TGSI_FILE_INPUT:
- /*
- * The fragment/vertex program input indexes (FRAG/VERT_ATTRIB_x) get
- * mapped to a packed sequence of integers.
- * If a program uses one input attribute, the mapped index will be 1.
- * If a program uses two input attribs, the mapped indexes will be 1,2.
- * If a program uses 3 input attribs, the mapped indexes will be 1,2,3.
- * etc.
- */
+ /* inputs are mapped according to the user-defined map */
return inputMapping[index];
case TGSI_FILE_OUTPUT:
- /*
- assert( usage_bitmask == 0x0 );
- */
if( processor == TGSI_PROCESSOR_FRAGMENT ) {
- /* depth result -> index 0
+ /* fragment program outputs are hard-coded:
+ * depth result -> index 0
* color results -> index 1, 2, ...
*/
if( index == FRAG_RESULT_DEPR ) {
@@ -86,8 +77,7 @@ map_register_file_index( }
}
else {
- /* vertex output slots are tightly packed, find mapped pos */
- /* mapped_index = VERT_RESULT_x */
+ /* vertex outputs are mapped according to the user-defined map */
mapped_index = outputMapping[index];
}
break;
|