i965: Assert array index on access to vec4_visitor's arrays.
authorPetri Latvala <petri.latvala@intel.com>
Thu, 27 Feb 2014 14:15:05 +0000 (16:15 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Feb 2014 23:05:38 +0000 (15:05 -0800)
commit59989a4a92e638415d50e9acdd0685eb56eb17f3
tree250e2bcb06a2a890e4406ef67d6b2a1519924b31
parent7189fce237cc7f4bc76a85cca8bcf75756d9affc
i965: Assert array index on access to vec4_visitor's arrays.

v2: vec4_visitor::pack_uniform_registers(): Use correct comparison in the
  assert, this->uniforms is already adjusted. Compare the actual value used to
  index uniform_size and uniform_vector_size instead.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp