summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-16 16:29:36 -0700
committerBrian <[email protected]>2008-01-16 16:29:36 -0700
commitecc9cf43af658413f91818fe90fdb0c2eaad9a46 (patch)
tree9a2ac4b2f47d5ef599b0422bf8b0f6a6be508be9
parent13bfa87b09294607e73d3993878956d5b344bbb3 (diff)
Fix incorrect [0,1] clamping in store_dest().
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
index 49affc12f35..dcc39362a9b 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
@@ -1135,10 +1135,8 @@ store_dest(
case TGSI_SAT_ZERO_ONE:
/* XXX need to obey ExecMask here */
- micro_lt( dst, chan, &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C],
- &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C], chan );
- micro_lt( dst, chan, &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C],
- chan, &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C] );
+ micro_max(dst, chan, &mach->Temps[TEMP_0_I].xyzw[TEMP_0_C]);
+ micro_min(dst, dst, &mach->Temps[TEMP_1_I].xyzw[TEMP_1_C]);
break;
case TGSI_SAT_MINUS_PLUS_ONE:
@@ -1646,6 +1644,7 @@ exec_instruction(
FETCH(&r[0], 0, chan_index);
FETCH(&r[1], 1, chan_index);
+ /* XXX use micro_min()?? */
micro_lt( &r[0], &r[0], &r[1], &r[0], &r[1] );
STORE(&r[0], 0, chan_index);
@@ -1657,6 +1656,7 @@ exec_instruction(
FETCH(&r[0], 0, chan_index);
FETCH(&r[1], 1, chan_index);
+ /* XXX use micro_max()?? */
micro_lt( &r[0], &r[0], &r[1], &r[1], &r[0] );
STORE(&r[0], 0, chan_index );