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-Tag: 062012170305~17580^2~390^2~1914 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e8a85ef670dfb7d356d6066bad4710683a07fd9;p=profile%2Fivi%2Fmesa.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 4e80597..35c63fe 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 ); }