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:
@@ -226,15 +226,15 @@ gl_system_value_name(gl_system_value sysval)
|
||||
}
|
||||
|
||||
const char *
|
||||
glsl_interp_qualifier_name(enum glsl_interp_qualifier qual)
|
||||
glsl_interp_mode_name(enum glsl_interp_mode qual)
|
||||
{
|
||||
static const char *names[] = {
|
||||
ENUM(INTERP_QUALIFIER_NONE),
|
||||
ENUM(INTERP_QUALIFIER_SMOOTH),
|
||||
ENUM(INTERP_QUALIFIER_FLAT),
|
||||
ENUM(INTERP_QUALIFIER_NOPERSPECTIVE),
|
||||
ENUM(INTERP_MODE_NONE),
|
||||
ENUM(INTERP_MODE_SMOOTH),
|
||||
ENUM(INTERP_MODE_FLAT),
|
||||
ENUM(INTERP_MODE_NOPERSPECTIVE),
|
||||
};
|
||||
STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_QUALIFIER_COUNT);
|
||||
STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_MODE_COUNT);
|
||||
return NAME(qual);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user