[Mesa-dev] [PATCH 16/23] mesa: Remove GLSL-related PROG_PARAM_BIT flags.
Kenneth Graunke
kenneth at whitecape.org
Sun Oct 14 17:43:16 PDT 2012
GLSL doesn't use the program code anymore. Accordingly, there were no
consumers of these flags, so there's no need to define them.
---
src/mesa/program/prog_parameter.h | 4 ----
src/mesa/program/prog_print.c | 8 --------
2 files changed, 12 deletions(-)
diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h
index d170690..ef6731e 100644
--- a/src/mesa/program/prog_parameter.h
+++ b/src/mesa/program/prog_parameter.h
@@ -44,10 +44,6 @@ extern "C" {
* Program parameter flags
*/
/*@{*/
-#define PROG_PARAM_BIT_CENTROID 0x1 /**< for varying vars (GLSL 1.20) */
-#define PROG_PARAM_BIT_INVARIANT 0x2 /**< for varying vars (GLSL 1.20) */
-#define PROG_PARAM_BIT_FLAT 0x4 /**< for varying vars (GLSL 1.30) */
-#define PROG_PARAM_BIT_LINEAR 0x8 /**< for varying vars (GLSL 1.30) */
#define PROG_PARAM_BIT_CYL_WRAP 0x10 /**< XXX gallium debug */
/*@}*/
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 26191ba..bb506ea 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -977,14 +977,6 @@ _mesa_fprint_parameter_list(FILE *f,
i, param->Size,
_mesa_register_file_name(list->Parameters[i].Type),
param->Name, v[0], v[1], v[2], v[3]);
- if (param->Flags & PROG_PARAM_BIT_CENTROID)
- fprintf(f, " Centroid");
- if (param->Flags & PROG_PARAM_BIT_INVARIANT)
- fprintf(f, " Invariant");
- if (param->Flags & PROG_PARAM_BIT_FLAT)
- fprintf(f, " Flat");
- if (param->Flags & PROG_PARAM_BIT_LINEAR)
- fprintf(f, " Linear");
fprintf(f, "\n");
}
}
--
1.7.12.2
More information about the mesa-dev
mailing list