summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2016-02-15 18:38:29 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-02-17 07:25:10 +1100
commite70ece4eea4c1e8fb6c3b3995baa36ad6634b690 (patch)
tree0b739fadabc1a21b0698f28eb5380b1fdf7a285a /src/compiler/glsl/ir.cpp
parent07e6a37332d2d3908ee1f1160ee25ed9c127b770 (diff)
downloadexternal_mesa3d-e70ece4eea4c1e8fb6c3b3995baa36ad6634b690.zip
external_mesa3d-e70ece4eea4c1e8fb6c3b3995baa36ad6634b690.tar.gz
external_mesa3d-e70ece4eea4c1e8fb6c3b3995baa36ad6634b690.tar.bz2
glsl: remove unused helper
Seems to have become unused when i965 moved to NIR. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/compiler/glsl/ir.cpp')
-rw-r--r--src/compiler/glsl/ir.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp
index c7a2496..750f617 100644
--- a/src/compiler/glsl/ir.cpp
+++ b/src/compiler/glsl/ir.cpp
@@ -1696,21 +1696,6 @@ interpolation_string(unsigned interpolation)
return "";
}
-
-glsl_interp_qualifier
-ir_variable::determine_interpolation_mode(bool flat_shade)
-{
- if (this->data.interpolation != INTERP_QUALIFIER_NONE)
- return (glsl_interp_qualifier) this->data.interpolation;
- int location = this->data.location;
- bool is_gl_Color =
- location == VARYING_SLOT_COL0 || location == VARYING_SLOT_COL1;
- if (flat_shade && is_gl_Color)
- return INTERP_QUALIFIER_FLAT;
- else
- return INTERP_QUALIFIER_SMOOTH;
-}
-
const char *const ir_variable::warn_extension_table[] = {
"",
"GL_ARB_shader_stencil_export",