[Mesa-dev] [PATCH 31/42] compiler: don't bother setting INTERP_MODE_NONE to 0

Timothy Arceri timothy.arceri at collabora.com
Wed Oct 19 23:09:48 UTC 2016


Now that the InterpQualifier array has been removed we don't need to
bother with this.
---
 src/compiler/shader_enums.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/compiler/shader_enums.h b/src/compiler/shader_enums.h
index b6e048e..aa97691 100644
--- a/src/compiler/shader_enums.h
+++ b/src/compiler/shader_enums.h
@@ -489,13 +489,10 @@ const char *gl_system_value_name(gl_system_value sysval);
 /**
  * The possible interpolation qualifiers that can be applied to a fragment
  * shader input in GLSL.
- *
- * Note: INTERP_MODE_NONE must be 0 so that memsetting the
- * gl_fragment_program data structure to 0 causes the default behavior.
  */
 enum glsl_interp_mode
 {
-   INTERP_MODE_NONE = 0,
+   INTERP_MODE_NONE,
    INTERP_MODE_SMOOTH,
    INTERP_MODE_FLAT,
    INTERP_MODE_NOPERSPECTIVE,
-- 
2.7.4



More information about the mesa-dev mailing list