diff options
author | Christoph Bumiller <[email protected]> | 2012-01-08 18:01:55 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-01-10 00:39:47 +0100 |
commit | 5a7c3433521f50ee06883728f86bc4bbf1bf479b (patch) | |
tree | 8cd59b2b41c6614402c51740722bb0aba1162a5e /src/gallium/drivers/nvc0 | |
parent | e4210a42bcfdb19336faa2ad4b807818c71a2982 (diff) |
nvc0: fix FP header clip distance mask
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_program.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_program.c b/src/gallium/drivers/nvc0/nvc0_program.c index a982cc12a1e..42cd21d9567 100644 --- a/src/gallium/drivers/nvc0/nvc0_program.c +++ b/src/gallium/drivers/nvc0/nvc0_program.c @@ -453,20 +453,20 @@ nvc0_fp_gen_header(struct nvc0_program *fp, struct nv50_ir_prog_info *info) for (c = 0; c < 4; ++c) { if (!(info->in[i].mask & (1 << c))) continue; - a = info->in[i].slot[c]; + a = info->in[i].slot[c]; if (info->in[i].slot[0] >= (0x060 / 4) && info->in[i].slot[0] <= (0x07c / 4)) { fp->hdr[5] |= 1 << (24 + (a - 0x060 / 4)); } else - if (info->in[i].slot[0] == (0x2e0 / 4)) { - if (c <= 1) - fp->hdr[14] |= 1 << (24 + c); + if (info->in[i].slot[0] >= (0x2c0 / 4) && + info->in[i].slot[0] <= (0x2fc / 4)) { + fp->hdr[14] |= (1 << (a - 0x280 / 4)) & 0x03ff0000; } else { if (info->in[i].slot[c] < (0x040 / 4) || info->in[i].slot[c] > (0x380 / 4)) continue; a *= 2; - if (info->in[i].slot[0] >= (0x2c0 / 4)) + if (info->in[i].slot[0] >= (0x300 / 4)) a -= 32; fp->hdr[4 + a / 32] |= m << (a % 32); } |