diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-02 17:13:06 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-02 17:13:06 -0600 |
commit | ff9949d05caa5543f4e57d831e603cba52f62e8b (patch) | |
tree | a18b4f2fa7ecbc180f704ad0bfbe96bfe4eb86e8 | |
parent | 066ccec49485f0b6d314ef555e4b2a68f68c3804 (diff) |
Implement TGSI_OPCODE_SNE with micro_ne()
-rw-r--r-- | src/mesa/pipe/tgsi/exec/tgsi_exec.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c index b88620d71d..158abba270 100644 --- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c +++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c @@ -699,6 +699,20 @@ micro_movc( } static void +micro_ne( + union tgsi_exec_channel *dst, + const union tgsi_exec_channel *src0, + const union tgsi_exec_channel *src1, + const union tgsi_exec_channel *src2, + const union tgsi_exec_channel *src3 ) +{ + dst->f[0] = src0->f[0] != src1->f[0] ? src2->f[0] : src3->f[0]; + dst->f[1] = src0->f[1] != src1->f[1] ? src2->f[1] : src3->f[1]; + dst->f[2] = src0->f[2] != src1->f[2] ? src2->f[2] : src3->f[2]; + dst->f[3] = src0->f[3] != src1->f[3] ? src2->f[3] : src3->f[3]; +} + +static void micro_neg( union tgsi_exec_channel *dst, const union tgsi_exec_channel *src ) @@ -1862,7 +1876,12 @@ exec_instruction( break; case TGSI_OPCODE_SNE: - assert (0); + FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) { + FETCH( &r[0], 0, chan_index ); + FETCH( &r[1], 1, chan_index ); + micro_ne( &r[0], &r[0], &r[1], &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C], &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C] ); + STORE( &r[0], 0, chan_index ); + } break; case TGSI_OPCODE_STR: |