glsl: add helper for calculating size of AoA
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 27 May 2015 11:31:59 +0000 (21:31 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Sat, 26 Sep 2015 12:27:47 +0000 (22:27 +1000)
commit9bad7afbc2ca6003da9a19c486b81d6ed0b8b0df
tree0d6b6e1d312b15d1bf3646ccdc52f3d02b9fc3c2
parent776a3845d6325578d51eea6e7d91ffb475862fc8
glsl: add helper for calculating size of AoA

V2: return 0 if not array rather than -1

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_types.h