gallium: fix SCS codegen (sin scalar src comes from X, not Y)
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 19:21:39 +0000 (13:21 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 11 Apr 2008 20:19:31 +0000 (14:19 -0600)
src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c

index 4e80597b3f314dc3faa478adb75532824450c875..35c63fecccb5654360b9d0fb2fe1d8debedab289 100755 (executable)
@@ -2020,7 +2020,7 @@ emit_instruction(
          STORE( func, *inst, 0, 0, CHAN_X );
       }
       IF_IS_DST0_CHANNEL_ENABLED( *inst, CHAN_Y ) {
-         FETCH( func, *inst, 0, 0, CHAN_Y );
+         FETCH( func, *inst, 0, 0, CHAN_X );
          emit_sin( func, 0 );
          STORE( func, *inst, 0, 0, CHAN_Y );
       }