mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 23:50:22 +01:00
tgsi: ARL and FLOOR opcodes have the same implementation.
This commit is contained in:
parent
2f8c4efe24
commit
56603044e9
1 changed files with 2 additions and 11 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue