glsl: add builtin variables for EXT_gpu_shader4
[mesa.git] / src / compiler / glsl / link_uniform_blocks.cpp
index 0b8905862986615006822138585605cc2d906194..45f1c0fe98d7e7b457c13b14e9141a2ec674298c 100644 (file)
@@ -68,7 +68,7 @@ private:
                              bool row_major,
                              const enum glsl_interface_packing packing)
    {
-      assert(type->is_record());
+      assert(type->is_struct());
       if (packing == GLSL_INTERFACE_PACKING_STD430)
          this->offset = glsl_align(
             this->offset, type->std430_base_alignment(row_major));
@@ -81,7 +81,7 @@ private:
                              bool row_major,
                              const enum glsl_interface_packing packing)
    {
-      assert(type->is_record());
+      assert(type->is_struct());
 
       /* If this is the last field of a structure, apply rule #9.  The
        * ARB_uniform_buffer_object spec says: