[Mesa-dev] [PATCH 22/32] glsl: Assert that interfaces, like structures, are not seen as leaf types

Ian Romanick idr at freedesktop.org
Tue Jan 22 00:52:13 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/glsl/link_uniforms.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 5edb69d..01e9238 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -204,6 +204,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;
 
@@ -311,6 +313,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;
 
-- 
1.7.11.7



More information about the mesa-dev mailing list