summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-03 10:33:05 -0600
committerBrian <[email protected]>2007-10-03 13:50:11 -0600
commit76e61556e7b69b6ce11be4bd600590a049bfbbef (patch)
treed3db32fc5ef45ac6335d3741c98f9de8b9768373 /src
parentdf235f33a6e851e0487755e9ad5f9d5cfd041c18 (diff)
fix eq/neq bugs
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
index c0752237280..6116db8dcba 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
@@ -699,20 +699,6 @@ 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 )
@@ -1949,7 +1935,9 @@ exec_instruction(
FOR_EACH_ENABLED_CHANNEL( *inst, chan_index ) {
FETCH( &r[0], 0, chan_index );
FETCH( &r[1], 1, chan_index );
- micro_eq( &r[0], &r[0], &r[1], &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C], &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C] );
+ micro_eq( &r[0], &r[0], &r[1],
+ &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C],
+ &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C] );
STORE( &r[0], 0, chan_index );
}
break;
@@ -1988,7 +1976,7 @@ exec_instruction(
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] );
+ micro_eq( &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;