diff options
author | Michal Krol <[email protected]> | 2008-11-26 13:17:25 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2008-11-26 13:24:33 +0100 |
commit | adf14090fb6e43a25eabb13796d5a9385d8511ea (patch) | |
tree | cb76e42e6bc5663d37dbab3a7f77043c1abc3876 /src/gallium/auxiliary/tgsi/tgsi_sse2.c | |
parent | 18a1389077c72717dfbe6ae10793f3329d13b848 (diff) |
tgsi: Implement OPCODE_ARR.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_sse2.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_sse2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sse2.c b/src/gallium/auxiliary/tgsi/tgsi_sse2.c index 8574d79da1b..d2d431980b1 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sse2.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sse2.c @@ -2078,7 +2078,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: |