summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-02 19:44:55 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-02 19:44:55 -0600
commit4b6cc36b2b4892c3ce0862789c3b294c52356805 (patch)
treeace6dd6eeec4180832db973a11a055060a9a4bef
parent355f8f7eedf9ddfac7edd2244f09c5a47fd8af86 (diff)
clean-ups
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.c33
1 files changed, 12 insertions, 21 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
index a0b3bc1c8e..3f170ffcfc 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
@@ -1089,7 +1089,8 @@ store_dest(
return;
case TGSI_FILE_OUTPUT:
- dst = &mach->Outputs[mach->Temps[TEMP_OUTPUT_I].xyzw[TEMP_OUTPUT_C].u[0] + reg->DstRegister.Index].xyzw[chan_index];
+ dst = &mach->Outputs[mach->Temps[TEMP_OUTPUT_I].xyzw[TEMP_OUTPUT_C].u[0]
+ + reg->DstRegister.Index].xyzw[chan_index];
break;
case TGSI_FILE_TEMPORARY:
@@ -1108,9 +1109,6 @@ store_dest(
switch (inst->Instruction.Saturate)
{
case TGSI_SAT_NONE:
-#if 0
- *dst = *chan;
-#else
if (mach->ExecMask & 0x1)
dst->i[0] = chan->i[0];
if (mach->ExecMask & 0x2)
@@ -1119,12 +1117,14 @@ store_dest(
dst->i[2] = chan->i[2];
if (mach->ExecMask & 0x8)
dst->i[3] = chan->i[3];
-#endif
break;
case TGSI_SAT_ZERO_ONE:
- 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] );
+ /* 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] );
break;
case TGSI_SAT_MINUS_PLUS_ONE:
@@ -1186,16 +1186,6 @@ exec_kilp(struct tgsi_exec_machine *mach,
}
-static void
-exec_kil(struct tgsi_exec_machine *mach,
- const struct tgsi_full_instruction *inst)
-{
- /* for enabled ExecMask bits, set the killed bit */
- mach->Temps[TEMP_KILMASK_I].xyzw[TEMP_KILMASK_C].u[0] |= mach->ExecMask;
-}
-
-
-
/*
* Fetch a texel using STR texture coordinates.
*/
@@ -1809,12 +1799,13 @@ exec_instruction(
break;
case TGSI_OPCODE_KILP:
- exec_kilp (mach, inst);
- break;
+ exec_kilp (mach, inst);
+ break;
case TGSI_OPCODE_KIL:
- exec_kil (mach, inst);
- break;
+ /* for enabled ExecMask bits, set the killed bit */
+ mach->Temps[TEMP_KILMASK_I].xyzw[TEMP_KILMASK_C].u[0] |= mach->ExecMask;
+ break;
case TGSI_OPCODE_PK2H:
assert (0);