tgsi: Implement OPCODE_ARR.

This commit is contained in:
Michal Krol
2008-11-26 13:17:25 +01:00
committed by José Fonseca
parent 685fd2c035
commit eee3d21604
2 changed files with 7 additions and 5 deletions
+1 -4
View File
@@ -2067,6 +2067,7 @@ exec_instruction(
break;
case TGSI_OPCODE_ROUND:
case TGSI_OPCODE_ARR:
FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) {
FETCH( &r[0], 0, chan_index );
micro_rnd( &r[0], &r[0] );
@@ -2367,10 +2368,6 @@ exec_instruction(
assert (0);
break;
case TGSI_OPCODE_ARR:
assert (0);
break;
case TGSI_OPCODE_BRA:
assert (0);
break;
+6 -1
View File
@@ -1906,7 +1906,12 @@ emit_instruction(
break;
case TGSI_OPCODE_ARR:
return 0;
FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) {
FETCH( func, *inst, 0, 0, chan_index );
emit_rnd( func, 0, 0 );
emit_f2it( func, 0 );
STORE( func, *inst, 0, 0, chan_index );
}
break;
case TGSI_OPCODE_BRA: