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;
}
}
* 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
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);
+ }
}