glsl: store the image format in glsl_struct_field
[mesa.git] / src / compiler / glsl_types.cpp
index 3930029180d52d7c2b257a7d9586670c5ba67038..43c0188e47f3450e8381e355a96ec0f2331647b8 100644 (file)
@@ -965,6 +965,9 @@ glsl_type::record_compare(const glsl_type *b, bool match_locations) const
       if (this->fields.structure[i].memory_restrict
           != b->fields.structure[i].memory_restrict)
          return false;
+      if (this->fields.structure[i].image_format
+          != b->fields.structure[i].image_format)
+         return false;
       if (this->fields.structure[i].precision
           != b->fields.structure[i].precision)
          return false;