diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-12 16:11:58 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-12 16:11:58 -0600 |
commit | 4becfdfdd871bba5304d87159892a0ff9df222b8 (patch) | |
tree | ec8116100d0542e5d2ac241760dd383cbf89c373 /src/mesa/pipe | |
parent | e552b9bd099b9fce1cd58ce7922a0c9f74cad034 (diff) |
change exec_kilp() to only touch lowest four bits in kilmask
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/tgsi/exec/tgsi_exec.c | 6 |
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; |