glsl: remove unused helper
authorTimothy Arceri <timothy.arceri@collabora.com>
Mon, 15 Feb 2016 07:38:29 +0000 (18:38 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Tue, 16 Feb 2016 20:25:10 +0000 (07:25 +1100)
Seems to have become unused when i965 moved to NIR.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir.h

index c7a2496b6c8804fd61d04271b177ccdf48c4dcba..750f61744e76d0e3f01e2f3373a754f534bb9018 100644 (file)
@@ -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",
index bf9b7caffaed471d63e96690fbed35d4240b193c..93c893d36fe3116ca21a399d307170a9ff10807e 100644 (file)
@@ -431,17 +431,6 @@ public:
    virtual ir_visitor_status accept(ir_hierarchical_visitor *);
 
 
-   /**
-    * Determine how this variable should be interpolated based on its
-    * interpolation qualifier (if present), whether it is gl_Color or
-    * gl_SecondaryColor, and whether flatshading is enabled in the current GL
-    * state.
-    *
-    * The return value will always be either INTERP_QUALIFIER_SMOOTH,
-    * INTERP_QUALIFIER_NOPERSPECTIVE, or INTERP_QUALIFIER_FLAT.
-    */
-   glsl_interp_qualifier determine_interpolation_mode(bool flat_shade);
-
    /**
     * Determine whether or not a variable is part of a uniform or
     * shader storage block.