tgsi: use flr(), not trunc() for ARL
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Dec 2008 22:39:14 +0000 (15:39 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 16 Dec 2008 22:40:04 +0000 (15:40 -0700)
src/gallium/auxiliary/tgsi/tgsi_exec.c

index a2d2cfd1fcce53b8fd28c2957149774953c55df6..989b6eec27b401aec6962596dbfa20e67a307e34 100644 (file)
@@ -1797,7 +1797,7 @@ exec_instruction(
    case TGSI_OPCODE_ARL:
       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;