diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-06-10 12:04:47 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-06-10 12:04:47 +0000 |
commit | 729cccba5d20e3b34e7168ffff7515f52c72c26e (patch) | |
tree | 1c4c350024319b5a6c9c70c6394dcc682c02b984 /src/mesa/tnl | |
parent | 7e8e4c500eaa8fea530065717a80118a1c34c602 (diff) |
Correct test for attenuation.
DISSASEM changes.
Diffstat (limited to 'src/mesa/tnl')
-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 e306fc8996..97bf5b6c01 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); + } } |