diff options
author | Christoph Bumiller <[email protected]> | 2010-08-05 12:29:23 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2010-08-10 17:35:26 +0200 |
commit | fc1d72d15d929b629be399d977ad05611f01fc59 (patch) | |
tree | 8ba6412edc6b874506881540e42fe640232e3f4e /src | |
parent | aaa8802a22d83fd89d7e306b7d03fa587a19aa0a (diff) |
nv50: fix reg count
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c index e32d28a9ce2..ed92261488b 100644 --- a/src/gallium/drivers/nv50/nv50_pc.c +++ b/src/gallium/drivers/nv50/nv50_pc.c @@ -312,8 +312,8 @@ nv50_generate_code(struct nv50_translation_info *ti) ti->p->immd_size = pc->immd_count * 4; ti->p->immd = pc->immd_buf; - ti->p->max_gpr = (pc->max_reg[NV_FILE_GPR] + 1) >> 1; - ti->p->max_gpr++; + /* highest 16 bit reg to num of 32 bit regs */ + ti->p->max_gpr = (pc->max_reg[NV_FILE_GPR] >> 1) + 1; ti->p->fixups = pc->fixups; ti->p->num_fixups = pc->num_fixups; |