mesa: Remove GLSL-related PROG_PARAM_BIT flags.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Oct 2012 23:52:23 +0000 (16:52 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 16 Oct 2012 18:35:24 +0000 (11:35 -0700)
GLSL doesn't use the program code anymore.  Accordingly, there were no
consumers of these flags, so there's no need to define them.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_parameter.h
src/mesa/program/prog_print.c

index d17069090efc5311384ad5eb44865daf7632722d..ef6731ee0db860b4e2d38a865faf4387cdacb188 100644 (file)
@@ -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 */
 /*@}*/
 
index 26191baa6e5c22fbe4bc1eb8d54543b1312044f7..bb506ea87c05763d90f3860f43745dbd6813e9f7 100644 (file)
@@ -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");
    }
 }