summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-03-10 10:12:47 +0100
committerMichal Krol <[email protected]>2009-03-10 10:27:21 +0100
commit56603044e99cefd31b8ec2d15fa3f4e72a05b62b (patch)
treeb8fbae8fbfeef5c69646913178723f44efbc11c5
parent2f8c4efe24c2cf9baec5a0c50ad53f37f9a90973 (diff)
tgsi: ARL and FLOOR opcodes have the same implementation.
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 341926884c8..fe2804be760 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1821,6 +1821,8 @@ exec_instruction(
switch (inst->Instruction.Opcode) {
case TGSI_OPCODE_ARL:
+ /* 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] );
@@ -2164,15 +2166,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 ) {
@@ -2958,5 +2951,3 @@ tgsi_exec_machine_run( struct tgsi_exec_machine *mach )
return ~mach->Temps[TEMP_KILMASK_I].xyzw[TEMP_KILMASK_C].u[0];
}
-
-