From: Eric Anholt Date: Thu, 9 Dec 2010 17:17:59 +0000 (-0800) Subject: i965: Fix VS constants regression pre-gen6. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fab1c0e2e0610813dfaa7fbc83662ec0f3a049c;p=mesa.git i965: Fix VS constants regression pre-gen6. Last minute change for gen6 with 0 used params dropped the multiply. --- diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index e1a3f333932..b7771e66d59 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -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;