gallium: a few comments
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Apr 2008 17:15:53 +0000 (11:15 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 18 Apr 2008 17:46:00 +0000 (11:46 -0600)
src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c

index 6f785be3f56711b85faa7c2b95491ef93f52fae4..d47935e982870dc61f3d9fa67406bb294bebd633 100755 (executable)
@@ -1598,20 +1598,25 @@ emit_instruction(
             STORE( func, *inst, 0, 0, CHAN_Y );
          }
          if( IS_DST0_CHANNEL_ENABLED( *inst, CHAN_Z ) ) {
+            /* XMM[1] = SrcReg[0].yyyy */
             FETCH( func, *inst, 1, 0, CHAN_Y );
+            /* XMM[1] = max(XMM[1], 0) */
             emit_maxps(
                func,
                make_xmm( 1 ),
                get_temp(
                   TGSI_EXEC_TEMP_00000000_I,
                   TGSI_EXEC_TEMP_00000000_C ) );
+            /* XMM[2] = SrcReg[0].wwww */
             FETCH( func, *inst, 2, 0, CHAN_W );
+            /* XMM[2] = min(XMM[2], 128.0) */
             emit_minps(
                func,
                make_xmm( 2 ),
                get_temp(
                   TGSI_EXEC_TEMP_128_I,
                   TGSI_EXEC_TEMP_128_C ) );
+            /* XMM[2] = max(XMM[2], -128.0) */
             emit_maxps(
                func,
                make_xmm( 2 ),