diff options
author | Timothy Arceri <[email protected]> | 2017-07-24 10:24:53 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-08-22 11:29:27 +1000 |
commit | 4c2422067b5c114977d228b38ee95077cd55b7e9 (patch) | |
tree | 6ce41113095e4e3b6429b569f4c20c09cf5c6708 /src/mesa/program | |
parent | 12e1f0c69676c256279f29309c36ece584f02c17 (diff) |
glsl: pass UseSTD430AsDefaultPacking to where it will be used
Here we also make use of the UseSTD430AsDefaultPacking constant
and call the new get_internal_ifc_packing() helper.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r-- | src/mesa/program/ir_to_mesa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 7499343a9a3..c168162b572 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2418,7 +2418,7 @@ class add_uniform_to_shader : public program_resource_visitor { public: add_uniform_to_shader(struct gl_shader_program *shader_program, struct gl_program_parameter_list *params) - : params(params), idx(-1) + : ctx(ctx), params(params), idx(-1) { /* empty */ } @@ -2427,7 +2427,8 @@ public: { this->idx = -1; this->var = var; - this->program_resource_visitor::process(var); + this->program_resource_visitor::process(var, + ctx->Const.UseSTD430AsDefaultPacking); var->data.param_index = this->idx; } @@ -2437,6 +2438,7 @@ private: const enum glsl_interface_packing packing, bool last_field); + struct gl_context *ctx; struct gl_program_parameter_list *params; int idx; ir_variable *var; |