Mesa (gallium-0.1): tgsi/exec: ARL actually behaves like FLR, not like TRUNC.

Michał Król michal at kemper.freedesktop.org
Fri Apr 3 15:54:36 UTC 2009


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

Author: Michal Krol <michal at vmware.com>
Date:   Fri Apr  3 17:54:07 2009 +0200

tgsi/exec: ARL actually behaves like FLR, not like TRUNC.

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index f98b66d..c59e18d 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1749,9 +1749,11 @@ exec_instruction(
 
    switch (inst->Instruction.Opcode) {
    case TGSI_OPCODE_ARL:
+   case TGSI_OPCODE_FLOOR:
+   /* TGSI_OPCODE_FLR */
       FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) {
          FETCH( &r[0], 0, chan_index );
-         micro_trunc( &r[0], &r[0] );
+         micro_flr(&r[0], &r[0]);
          STORE( &r[0], 0, chan_index );
       }
       break;
@@ -2079,15 +2081,6 @@ exec_instruction(
       assert (0);
       break;
 
-   case TGSI_OPCODE_FLOOR:
-   /* TGSI_OPCODE_FLR */
-      FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) {
-         FETCH( &r[0], 0, chan_index );
-         micro_flr( &r[0], &r[0] );
-         STORE( &r[0], 0, chan_index );
-      }
-      break;
-
    case TGSI_OPCODE_ROUND:
    case TGSI_OPCODE_ARR:
       FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) {




More information about the mesa-commit mailing list