glsl: fix the type of ir_constant_data::u16
[mesa.git] / src / compiler / glsl / link_uniform_block_active_visitor.h
index fbac65d5b6749e2e3e716d823896ca3935e21d9a..fed8168440352a83a82db42839d7c6a27f64a2d8 100644 (file)
 struct uniform_block_array_elements {
    unsigned *array_elements;
    unsigned num_array_elements;
+   /**
+    * Size of the array before array-trimming optimizations.
+    *
+    * Locations are only assigned to active array elements, but the location
+    * values are calculated as if all elements are active. The total number
+    * of elements in an array including the elements in arrays of arrays before
+    * inactive elements are removed is needed to be perform that calculation.
+    */
+   unsigned aoa_size;
 
    ir_dereference_array *ir;