summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_interpolation_map.c
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2016-07-07 02:02:38 -0700
committerKenneth Graunke <kenneth@whitecape.org>2016-07-17 19:26:48 -0700
commitac1181ffbef5250cb3b651e047cce5116727c34c (patch)
treeb6aa32932d99fa3dcb15d2435ff63b662b939488 /src/mesa/drivers/dri/i965/brw_interpolation_map.c
parente7d96e7685e911b91ce048c6639a4c290faf5d06 (diff)
downloadexternal_mesa3d-ac1181ffbef5250cb3b651e047cce5116727c34c.zip
external_mesa3d-ac1181ffbef5250cb3b651e047cce5116727c34c.tar.gz
external_mesa3d-ac1181ffbef5250cb3b651e047cce5116727c34c.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_interpolation_map.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_interpolation_map.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_interpolation_map.c b/src/mesa/drivers/dri/i965/brw_interpolation_map.c
index 87b35d8..6d0a813 100644
--- a/src/mesa/drivers/dri/i965/brw_interpolation_map.c
+++ b/src/mesa/drivers/dri/i965/brw_interpolation_map.c
@@ -26,10 +26,10 @@
static char const *get_qual_name(int mode)
{
switch (mode) {
- case INTERP_QUALIFIER_NONE: return "none";
- case INTERP_QUALIFIER_FLAT: return "flat";
- case INTERP_QUALIFIER_SMOOTH: return "smooth";
- case INTERP_QUALIFIER_NOPERSPECTIVE: return "nopersp";
+ case INTERP_MODE_NONE: return "none";
+ case INTERP_MODE_FLAT: return "flat";
+ case INTERP_MODE_SMOOTH: return "smooth";
+ case INTERP_MODE_NOPERSPECTIVE: return "nopersp";
default: return "???";
}
}
@@ -49,7 +49,7 @@ brw_setup_vue_interpolation(struct brw_context *brw)
BRW_NEW_VUE_MAP_GEOM_OUT))
return;
- memset(&brw->interpolation_mode, INTERP_QUALIFIER_NONE, sizeof(brw->interpolation_mode));
+ memset(&brw->interpolation_mode, INTERP_MODE_NONE, sizeof(brw->interpolation_mode));
brw->ctx.NewDriverState |= BRW_NEW_INTERPOLATION_MAP;
@@ -64,7 +64,7 @@ brw_setup_vue_interpolation(struct brw_context *brw)
/* HPOS always wants noperspective. setting it up here allows
* us to not need special handling in the SF program. */
if (varying == VARYING_SLOT_POS) {
- brw->interpolation_mode.mode[i] = INTERP_QUALIFIER_NOPERSPECTIVE;
+ brw->interpolation_mode.mode[i] = INTERP_MODE_NOPERSPECTIVE;
continue;
}
@@ -75,17 +75,17 @@ brw_setup_vue_interpolation(struct brw_context *brw)
if (!(fprog->Base.InputsRead & BITFIELD64_BIT(frag_attrib)))
continue;
- enum glsl_interp_qualifier mode = fprog->InterpQualifier[frag_attrib];
+ enum glsl_interp_mode mode = fprog->InterpQualifier[frag_attrib];
/* If the mode is not specified, the default varies: Color values
* follow GL_SHADE_MODEL; everything else is smooth.
*/
- if (mode == INTERP_QUALIFIER_NONE) {
+ if (mode == INTERP_MODE_NONE) {
if (frag_attrib == VARYING_SLOT_COL0 || frag_attrib == VARYING_SLOT_COL1)
mode = brw->ctx.Light.ShadeModel == GL_FLAT
- ? INTERP_QUALIFIER_FLAT : INTERP_QUALIFIER_SMOOTH;
+ ? INTERP_MODE_FLAT : INTERP_MODE_SMOOTH;
else
- mode = INTERP_QUALIFIER_SMOOTH;
+ mode = INTERP_MODE_SMOOTH;
}
brw->interpolation_mode.mode[i] = mode;