compiler: Rename INTERP_QUALIFIER_* to INTERP_MODE_*.
Likewise, rename the enum type to glsl_interp_mode. Beyond the GLSL front-end, talking about "interpolation modes" seems more natural than "interpolation qualifiers" - in the IR, we're removed from how exactly the source language specifies how to interpolate an input. Also, SPIR-V calls these "decorations" rather than "qualifiers". Generated by: $ find . -regextype egrep -regex '.*\.(c|cpp|h)' -type f -exec sed -i \ -e 's/INTERP_QUALIFIER_/INTERP_MODE_/g' \ -e 's/glsl_interp_qualifier/glsl_interp_mode/g' {} \; Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Acked-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
@@ -1388,13 +1388,13 @@ varying_matches::record(ir_variable *producer_var, ir_variable *consumer_var)
|
||||
if (producer_var) {
|
||||
producer_var->data.centroid = false;
|
||||
producer_var->data.sample = false;
|
||||
producer_var->data.interpolation = INTERP_QUALIFIER_FLAT;
|
||||
producer_var->data.interpolation = INTERP_MODE_FLAT;
|
||||
}
|
||||
|
||||
if (consumer_var) {
|
||||
consumer_var->data.centroid = false;
|
||||
consumer_var->data.sample = false;
|
||||
consumer_var->data.interpolation = INTERP_QUALIFIER_FLAT;
|
||||
consumer_var->data.interpolation = INTERP_MODE_FLAT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1612,7 +1612,7 @@ varying_matches::compute_packing_class(const ir_variable *var)
|
||||
(var->data.patch << 2);
|
||||
packing_class *= 4;
|
||||
packing_class += var->is_interpolation_flat()
|
||||
? unsigned(INTERP_QUALIFIER_FLAT) : var->data.interpolation;
|
||||
? unsigned(INTERP_MODE_FLAT) : var->data.interpolation;
|
||||
return packing_class;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user