Mesa (gallium-0.1): tgsi: Localise SCS code.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Aug 28 17:59:28 UTC 2009


Module: Mesa
Branch: gallium-0.1
Commit: c9aed40a2d744b04d40149e30cc7b5601b5c6f40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9aed40a2d744b04d40149e30cc7b5601b5c6f40

Author: Michal Krol <michal at vmware.com>
Date:   Thu Mar 12 11:56:23 2009 +0100

tgsi: Localise SCS code.

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index c1c286b..fe38db8 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -2579,14 +2579,14 @@ exec_instruction(
    case TGSI_OPCODE_SCS:
       if( IS_CHANNEL_ENABLED( *inst, CHAN_X ) || IS_CHANNEL_ENABLED( *inst, CHAN_Y ) ) {
          FETCH( &r[0], 0, CHAN_X );
-      }
-      if( IS_CHANNEL_ENABLED( *inst, CHAN_X ) ) {
-         micro_cos( &r[1], &r[0] );
-         STORE( &r[1], 0, CHAN_X );
-      }
-      if( IS_CHANNEL_ENABLED( *inst, CHAN_Y ) ) {
-         micro_sin( &r[1], &r[0] );
-         STORE( &r[1], 0, CHAN_Y );
+         if (IS_CHANNEL_ENABLED(*inst, CHAN_X)) {
+            micro_cos(&r[1], &r[0]);
+            STORE(&r[1], 0, CHAN_X);
+         }
+         if (IS_CHANNEL_ENABLED(*inst, CHAN_Y)) {
+            micro_sin(&r[1], &r[0]);
+            STORE(&r[1], 0, CHAN_Y);
+         }
       }
       if( IS_CHANNEL_ENABLED( *inst, CHAN_Z ) ) {
          STORE( &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C], 0, CHAN_Z );




More information about the mesa-commit mailing list