summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/tgsi
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-12 16:11:58 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-12 16:11:58 -0600
commit4becfdfdd871bba5304d87159892a0ff9df222b8 (patch)
treeec8116100d0542e5d2ac241760dd383cbf89c373 /src/mesa/pipe/tgsi
parente552b9bd099b9fce1cd58ce7922a0c9f74cad034 (diff)
change exec_kilp() to only touch lowest four bits in kilmask
Diffstat (limited to 'src/mesa/pipe/tgsi')
-rw-r--r--src/mesa/pipe/tgsi/exec/tgsi_exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_exec.c b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
index fda5584cf3..4a608c445e 100644
--- a/src/mesa/pipe/tgsi/exec/tgsi_exec.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_exec.c
@@ -1137,9 +1137,9 @@ static void
exec_kilp(struct tgsi_exec_machine *mach,
const struct tgsi_full_instruction *inst)
{
- GLuint uniquemask;
+ GLbitfield uniquemask;
GLuint chan_index;
- GLuint kilmask = 0;
+ GLbitfield kilmask = 0; /* bit 0 = pixel 0, bit 1 = pixel 1, etc */
union tgsi_exec_channel r[1];
/* This mask stores component bits that were already tested. Note that
@@ -1165,7 +1165,7 @@ exec_kilp(struct tgsi_exec_machine *mach,
FETCH(&r[0], 0, chan_index);
for (i = 0; i < 4; i++)
if (r[0].f[i] < 0.0f)
- kilmask |= 1 << (i * 4);
+ kilmask |= 1 << i;
}
mach->Temps[TEMP_KILMASK_I].xyzw[TEMP_KILMASK_C].u[0] |= kilmask;