glsl: fix max binding validation for uniform blocks
authorTimothy Arceri <timothy.arceri@collabora.com>
Sun, 22 Nov 2015 23:07:30 +0000 (10:07 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 23 Nov 2015 02:47:19 +0000 (13:47 +1100)
Regression as of 64710db66461e

We can't use the type returned by get_interface_type() as
the interface type has arrays removed.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/glsl/ast_to_hir.cpp

index df6dd9b4759069fd2e486da7f15bab917b1ffdaf..81cde73798a82d574721995774c6683e60eefb74 100644 (file)
@@ -6962,8 +6962,8 @@ ast_interface_block::hir(exec_list *instructions,
          delete var;
       } else {
          if (this->layout.flags.q.explicit_binding) {
-            apply_explicit_binding(state, &loc, var,
-                                   var->get_interface_type(), &this->layout);
+            apply_explicit_binding(state, &loc, var, var->type,
+                                   &this->layout);
          }
 
          var->data.stream = qual_stream;