diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 09:04:52 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-24 09:04:52 -0700 |
commit | f490ec9797a396da9d182f1ad4393f1c5c2df440 (patch) | |
tree | bec68727226bab7978e4e6c243c4ea3da679185d /src/mesa | |
parent | 08b825a77179a9e7ed902c9c57387f127cd007bc (diff) |
mesa: rename program parameter flags to match other Mesa conventions
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/prog_parameter.h | 8 | ||||
-rw-r--r-- | src/mesa/shader/prog_print.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/shader/prog_parameter.h b/src/mesa/shader/prog_parameter.h index a8ef0561f7..200f2c0045 100644 --- a/src/mesa/shader/prog_parameter.h +++ b/src/mesa/shader/prog_parameter.h @@ -39,10 +39,10 @@ * Program parameter flags */ /*@{*/ -#define PROG_PARAM_CENTROID_BIT 0x1 /**< for varying vars (GLSL 1.20) */ -#define PROG_PARAM_INVARIANT_BIT 0x2 /**< for varying vars (GLSL 1.20) */ -#define PROG_PARAM_FLAT_BIT 0x4 /**< for varying vars (GLSL 1.30) */ -#define PROG_PARAM_LINEAR_BIT 0x8 /**< for varying vars (GLSL 1.30) */ +#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) */ /*@}*/ diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index ded79b4959..9215ed7abf 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -803,13 +803,13 @@ _mesa_print_parameter_list(const struct gl_program_parameter_list *list) i, param->Size, file_string(list->Parameters[i].Type, mode), param->Name, v[0], v[1], v[2], v[3]); - if (param->Flags & PROG_PARAM_CENTROID_BIT) + if (param->Flags & PROG_PARAM_BIT_CENTROID) _mesa_printf(" Centroid"); - if (param->Flags & PROG_PARAM_INVARIANT_BIT) + if (param->Flags & PROG_PARAM_BIT_INVARIANT) _mesa_printf(" Invariant"); - if (param->Flags & PROG_PARAM_FLAT_BIT) + if (param->Flags & PROG_PARAM_BIT_FLAT) _mesa_printf(" Flat"); - if (param->Flags & PROG_PARAM_LINEAR_BIT) + if (param->Flags & PROG_PARAM_BIT_LINEAR) _mesa_printf(" Linear"); _mesa_printf("\n"); } |