diff options
author | Eric Anholt <eric@anholt.net> | 2010-03-19 12:27:38 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-22 15:04:46 -0700 |
commit | 864f2bd61d2bad31b49a680a168fc6d7c04d1de1 (patch) | |
tree | 91dd4832c46816db6f7c6314841a6d5695b9e7b1 /src/mesa/drivers/dri/i965 | |
parent | 8a998342c6bf591f1969b432bdda1732d480ee56 (diff) |
i965: Add INTEL_DEBUG=glsl_force to force brw_wm_glsl.c.
I keep finding the desire to force this path to debug it instead of
cooking up goofy-looking testcases to do so.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index 0b66cc6c9f..d9d6ddae8c 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -23,6 +23,9 @@ GLboolean brw_wm_is_glsl(const struct gl_fragment_program *fp) { int i; + if (INTEL_DEBUG & DEBUG_GLSL_FORCE) + return GL_TRUE; + for (i = 0; i < fp->Base.NumInstructions; i++) { const struct prog_instruction *inst = &fp->Base.Instructions[i]; switch (inst->Opcode) { |