glsl: add top level array size and stride to gl_uniform_storage
authorTapani Pälli <tapani.palli@intel.com>
Tue, 13 Oct 2015 11:17:49 +0000 (14:17 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 14 Oct 2015 06:32:58 +0000 (09:32 +0300)
commitb76159b09617a07b9e3d53d64d31d4835702827f
tree120a57d756a99141c024a31e4bed99c983b0b094
parentd3f45888045c84b2bc382a34d169a0ede4774a24
glsl: add top level array size and stride to gl_uniform_storage

Patch adds 2 new fields to gl_uniform_storage so that we don't need to
calculate these values during runtime shader queries. This is required by
upcoming changes to free GLSL IR after linking.

Patch moves 3 booleans inside structure so that structure size stays the
same after this change.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/glsl/ir_uniform.h