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 <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri
2017-07-24 10:24:53 +10:00
parent 12e1f0c696
commit 4c2422067b
9 changed files with 94 additions and 44 deletions

View File

@@ -122,7 +122,7 @@ public:
* matter. For example, enumerating the names of members of the block, but
* not for determining the offsets of members.
*/
void process(ir_variable *var);
void process(ir_variable *var, bool use_std430_as_default);
/**
* Begin processing a variable of a structured type.
@@ -139,7 +139,8 @@ public:
* \c type must be \c GLSL_TYPE_RECORD, \c GLSL_TYPE_INTERFACE, or an array
* there of.
*/
void process(const glsl_type *type, const char *name);
void process(const glsl_type *type, const char *name,
bool use_std430_as_default);
protected:
/**