This extra validation is very useful when working on the built-ins, but
in general overkill - the results should stay the same unless the
built-ins or ir_validate have changed.
Also, validating all the built-in functions in every test case makes
piglit run unacceptably slow.
#include "glsl_types.h"
#include "s_expression.h"
+const static bool debug = false;
+
static void ir_read_error(_mesa_glsl_parse_state *, s_expression *,
const char *fmt, ...);
static const glsl_type *read_type(_mesa_glsl_parse_state *, s_expression *);
read_instructions(state, instructions, expr, NULL);
talloc_free(expr);
- validate_ir_tree(instructions);
+ if (debug)
+ validate_ir_tree(instructions);
}
static void