summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_print.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-24 08:43:38 -0700
committerBrian Paul <[email protected]>2008-11-24 08:43:38 -0700
commit777a5c4f2e7c6c6ec0227a239b1af6c6b86dfab2 (patch)
tree3b53321d147341ee5076ca2fa05fc3ddf9646db9 /src/mesa/shader/prog_print.c
parent0f228d7ab3b7c03328df369b8db50c469ac5dcd6 (diff)
mesa: added PROG_PARAM_ bits for invariant, flat/linear interpolation
Plus, update the print/debug code.
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r--src/mesa/shader/prog_print.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index baa4ef85e92..ded79b49599 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -799,9 +799,18 @@ _mesa_print_parameter_list(const struct gl_program_parameter_list *list)
for (i = 0; i < list->NumParameters; i++){
struct gl_program_parameter *param = list->Parameters + i;
const GLfloat *v = list->ParameterValues[i];
- _mesa_printf("param[%d] sz=%d %s %s = {%.3g, %.3g, %.3g, %.3g};\n",
+ _mesa_printf("param[%d] sz=%d %s %s = {%.3g, %.3g, %.3g, %.3g}",
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)
+ _mesa_printf(" Centroid");
+ if (param->Flags & PROG_PARAM_INVARIANT_BIT)
+ _mesa_printf(" Invariant");
+ if (param->Flags & PROG_PARAM_FLAT_BIT)
+ _mesa_printf(" Flat");
+ if (param->Flags & PROG_PARAM_LINEAR_BIT)
+ _mesa_printf(" Linear");
+ _mesa_printf("\n");
}
}