diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2016-07-07 02:02:38 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2016-07-17 19:26:48 -0700 |
commit | ac1181ffbef5250cb3b651e047cce5116727c34c (patch) | |
tree | b6aa32932d99fa3dcb15d2435ff63b662b939488 /src/mesa/drivers/dri/i965/brw_sf_emit.c | |
parent | e7d96e7685e911b91ce048c6639a4c290faf5d06 (diff) | |
download | external_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_sf_emit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf_emit.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index f03b741..fe05d54 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -162,7 +162,7 @@ static void copy_flatshaded_attributes(struct brw_sf_compile *c, int i; for (i = 0; i < c->vue_map.num_slots; i++) { - if (c->key.interpolation_mode.mode[i] == INTERP_QUALIFIER_FLAT) { + if (c->key.interpolation_mode.mode[i] == INTERP_MODE_FLAT) { brw_MOV(p, get_vue_slot(c, dst, i), get_vue_slot(c, src, i)); @@ -176,7 +176,7 @@ static int count_flatshaded_attributes(struct brw_sf_compile *c) int count = 0; for (i = 0; i < c->vue_map.num_slots; i++) - if (c->key.interpolation_mode.mode[i] == INTERP_QUALIFIER_FLAT) + if (c->key.interpolation_mode.mode[i] == INTERP_MODE_FLAT) count++; return count; @@ -336,17 +336,17 @@ calculate_masks(struct brw_sf_compile *c, GLushort *pc_linear) { bool is_last_attr = (reg == c->nr_setup_regs - 1); - enum glsl_interp_qualifier interp; + enum glsl_interp_mode interp; *pc_persp = 0; *pc_linear = 0; *pc = 0xf; interp = c->key.interpolation_mode.mode[vert_reg_to_vue_slot(c, reg, 0)]; - if (interp == INTERP_QUALIFIER_SMOOTH) { + if (interp == INTERP_MODE_SMOOTH) { *pc_linear = 0xf; *pc_persp = 0xf; - } else if (interp == INTERP_QUALIFIER_NOPERSPECTIVE) + } else if (interp == INTERP_MODE_NOPERSPECTIVE) *pc_linear = 0xf; /* Maybe only processs one attribute on the final round: @@ -355,10 +355,10 @@ calculate_masks(struct brw_sf_compile *c, *pc |= 0xf0; interp = c->key.interpolation_mode.mode[vert_reg_to_vue_slot(c, reg, 1)]; - if (interp == INTERP_QUALIFIER_SMOOTH) { + if (interp == INTERP_MODE_SMOOTH) { *pc_linear |= 0xf0; *pc_persp |= 0xf0; - } else if (interp == INTERP_QUALIFIER_NOPERSPECTIVE) + } else if (interp == INTERP_MODE_NOPERSPECTIVE) *pc_linear |= 0xf0; } |