i965: Consistently use nr_pull_params instead of NumParameters.
authorEric Anholt <eric@anholt.net>
Wed, 21 Nov 2012 22:30:55 +0000 (14:30 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 28 Dec 2012 18:53:50 +0000 (10:53 -0800)
commit7e28d6c1ab101894c3a3c90bef929c34e9da6148
treeed6f943471ca58c0363df4e08d0b0b0c319dcf55
parentaa6e35e80dddfe1011e845da6325d276263e2242
i965: Consistently use nr_pull_params instead of NumParameters.

NumParameters used to be an upper bound on the number of vec4s to be
uploaded, which was basically safe (unless your buffer was bound near
the top of address space *and* you array indexed outside the buffer, in
which case I think you might GPU hang).  As I migrate the driver away
from ParameterValues[], this is no longer true.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c