glsl: Assert that interfaces, like structures, are not seen as leaf types
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Jan 2013 04:43:25 +0000 (23:43 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 25 Jan 2013 14:07:35 +0000 (09:07 -0500)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Carl Worth <cworth@cworth.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/link_uniforms.cpp

index 737e2ad48a6e7db971fd49daad98aad6428b7c50..d7116009ecd3c0734734c16f3408c3f2fcfc3c97 100644 (file)
@@ -209,6 +209,8 @@ private:
    {
       assert(!type->is_record());
       assert(!(type->is_array() && type->fields.array->is_record()));
+      assert(!type->is_interface());
+      assert(!(type->is_array() && type->fields.array->is_interface()));
 
       (void) row_major;
 
@@ -316,6 +318,8 @@ private:
    {
       assert(!type->is_record());
       assert(!(type->is_array() && type->fields.array->is_record()));
+      assert(!type->is_interface());
+      assert(!(type->is_array() && type->fields.array->is_interface()));
 
       (void) row_major;