glsl: Add support for default layout qualifiers for uniforms.
I ended up having to add rallocing of the ast_type_qualifier in order to avoid pulling in ast.h for glsl_parser_extras.h, because I wanted to track an ast_type_qualifier in the state. Fixes piglit ARB_uniform_buffer_object/row-major. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -107,6 +107,10 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
|
||||
|
||||
if (ctx->Const.ForceGLSLExtensionsWarn)
|
||||
_mesa_glsl_process_extension("all", NULL, "warn", NULL, this);
|
||||
|
||||
this->default_uniform_qualifier = new(this) ast_type_qualifier();
|
||||
this->default_uniform_qualifier->flags.q.shared = 1;
|
||||
this->default_uniform_qualifier->flags.q.column_major = 1;
|
||||
}
|
||||
|
||||
const char *
|
||||
|
||||
Reference in New Issue
Block a user