i965/fs: Do not set the size for zero-size uniforms
authorMarta Lofstedt <marta.lofstedt@intel.com>
Fri, 28 Aug 2015 08:22:41 +0000 (10:22 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 28 Aug 2015 16:52:59 +0000 (09:52 -0700)
commit2581fe931a48478123d8054ce7a291cffa851de9
tree322ce98eb5e9373d5ff6f6a812bb7e7fc3f3ad36
parent05161596137994ab4b31e054d5afbff877c0a074
i965/fs: Do not set the size for zero-size uniforms

Zero sized uniforms can exist in the list, but they don't get get any space
allocated in prog_data->params or in the param_size array, so the size
should not be set for them.  This was previously fixed in:

commit: 781dc7c0e1f41502f18e07c0940af949a78d2792.

However,

commit: 259f7291de2387aa3ac5f856b39b7b934a1d8e7d

removed the fix.

Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp