From bd963e12ef6c9655f2319f813be412ea22763264 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 21 Jan 2013 23:43:25 -0500 Subject: glsl: Assert that interfaces, like structures, are not seen as leaf types Signed-off-by: Ian Romanick Reviewed-by: Carl Worth Reviewed-by: Kenneth Graunke --- src/glsl/link_uniforms.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 737e2ad48a6..d7116009ecd 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -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; -- cgit v1.2.3