i965/fs: Fix regression with SIMD8 VS since b5f1a48e234d47b24df38cb562cffb8941d43795.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 30 Jul 2015 11:45:57 +0000 (14:45 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 31 Jul 2015 13:20:52 +0000 (16:20 +0300)
commit781dc7c0e1f41502f18e07c0940af949a78d2792
tree21771b78370f657d3c3d5f926eabdca9a52134f7
parent383558c56427b0e8b4e56cce8737771ad053f753
i965/fs: Fix regression with SIMD8 VS since b5f1a48e234d47b24df38cb562cffb8941d43795.

With num_direct_uniforms == 0 there's no space allocated in the
param_size array for the one block of direct uniforms -- On the FS
stage this would be a harmless no-op because it would simply re-set
one of the param_size entries allocated for the sampler units to zero,
but on the VS stage it has been reported to cause memory corruption
followed by a crash -- Surprising how a full piglit run on Gen8 didn't
catch it.

Reported-and-reviewed-by: "Lofstedt, Marta" <marta.lofstedt@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp