From: Christoph Bumiller Date: Thu, 5 Aug 2010 10:29:23 +0000 (+0200) Subject: nv50: fix reg count X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc1d72d15d929b629be399d977ad05611f01fc59;p=mesa.git nv50: fix reg count --- 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;