glsl: Initialize ubo_binding_mask flags to zero.
authorMatt Turner <mattst88@gmail.com>
Mon, 3 Feb 2014 19:51:51 +0000 (11:51 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 6 Feb 2014 18:36:54 +0000 (10:36 -0800)
Missed in commit e63bb298. Caused sporadic test failures, like
incorrect-in-layout-qualifier-repeated-prim.geom.

Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/ast_type.cpp

index fe11508a0a48f76f4e7cdf6c2f93cea13c962252..bbc430808014b803a79278ff560ab43ab3066624 100644 (file)
@@ -118,6 +118,7 @@ ast_type_qualifier::merge_qualifier(YYLTYPE *loc,
    ubo_layout_mask.flags.q.shared = 1;
 
    ast_type_qualifier ubo_binding_mask;
+   ubo_binding_mask.flags.i = 0;
    ubo_binding_mask.flags.q.explicit_binding = 1;
    ubo_binding_mask.flags.q.explicit_offset = 1;