i965/vec4: Use the actual channels used in pack_uniform_registers
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Sep 2015 17:31:03 +0000 (10:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 21:19:39 +0000 (14:19 -0700)
commitea35fb0fbead2902b1ba37e7cdb1523853fabd8b
tree25384b3080ca0139d09718a9cf71c23b376ee579
parentcd2132f45b8aba7a47502d864b51c11519b4a8f0
i965/vec4: Use the actual channels used in pack_uniform_registers

Previously, pack_uniform_registers worked based on the size of the uniform
as given to us when we initially set up the uniforms.  However, we have to
walk through the uniforms and figure out liveness anyway, so we migh as
well record the number of channels used as we go.  This may also allow us
to pack things tighter in a few cases.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp