diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_vp_build.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/tnl/t_vp_build.c b/src/mesa/tnl/t_vp_build.c index e306fc89964..97bf5b6c01d 100644 --- a/src/mesa/tnl/t_vp_build.c +++ b/src/mesa/tnl/t_vp_build.c @@ -155,8 +155,8 @@ static struct state_key *make_state_key( GLcontext *ctx ) key->unit[i].light_spotcutoff_is_180 = 1; if (light->ConstantAttenuation != 1.0 || - light->LinearAttenuation != 1.0 || - light->QuadraticAttenuation != 1.0) + light->LinearAttenuation != 0.0 || + light->QuadraticAttenuation != 0.0) key->unit[i].light_attenuated = 1; } } @@ -225,7 +225,7 @@ static struct state_key *make_state_key( GLcontext *ctx ) * generated program with line/function references for each * instruction back into this file: */ -#define DISASSEM 0 +#define DISASSEM (MESA_VERBOSE&VERBOSE_DISASSEM) /* Should be tunable by the driver - do we want to do matrix * multiplications with DP4's or with MUL/MAD's? SSE works better @@ -476,17 +476,17 @@ static void emit_dst( struct vp_dst_register *dst, static void debug_insn( struct vp_instruction *inst, const char *fn, GLuint line ) { -#if DISASSEM - static const char *last_fn; + if (DISASSEM) { + static const char *last_fn; - if (fn != last_fn) { - last_fn = fn; - _mesa_printf("%s:\n", fn); - } + if (fn != last_fn) { + last_fn = fn; + _mesa_printf("%s:\n", fn); + } - _mesa_printf("%d:\t", line); - _mesa_debug_vp_inst(1, inst); -#endif + _mesa_printf("%d:\t", line); + _mesa_debug_vp_inst(1, inst); + } } |