i965: Fix VS constants regression pre-gen6.

Last minute change for gen6 with 0 used params dropped the multiply.
This commit is contained in:
Eric Anholt 2010-12-09 09:17:59 -08:00
parent cdd4f04f80
commit 8fab1c0e2e
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )
}
reg += (constant + 1) / 2;
c->prog_data.curb_read_length = reg - 1;
c->prog_data.nr_params = constant;
c->prog_data.nr_params = constant * 4;
/* XXX 0 causes a bug elsewhere... */
if (intel->gen < 6 && c->prog_data.nr_params == 0)
c->prog_data.nr_params = 4;