From: Brian Paul Date: Fri, 11 Apr 2008 19:21:39 +0000 (-0600) Subject: gallium: fix SCS codegen (sin scalar src comes from X, not Y) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e8a85ef670dfb7d356d6066bad4710683a07fd9;p=mesa.git gallium: fix SCS codegen (sin scalar src comes from X, not Y) --- diff --git a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c index 4e80597b3f3..35c63fecccb 100755 --- a/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c +++ b/src/gallium/auxiliary/tgsi/exec/tgsi_sse2.c @@ -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 ); }