* Program parameter flags
*/
/*@{*/
-#define PROG_PARAM_CENTROID_BIT 0x1
+#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) */
/*@}*/
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");
}
}