diff --git a/src/mesa/drivers/dri/i965/intel_debug.h b/src/mesa/drivers/dri/i965/intel_debug.h index f754be2..41b2032 100644 --- a/src/mesa/drivers/dri/i965/intel_debug.h +++ b/src/mesa/drivers/dri/i965/intel_debug.h @@ -87,7 +87,7 @@ extern uint64_t INTEL_DEBUG; static GLuint msg_id = 0; \ if (unlikely(INTEL_DEBUG & DEBUG_PERF)) \ dbg_printf(__VA_ARGS__); \ - if (brw->perf_debug) \ + if (unlikely(brw->perf_debug)) \ _mesa_gl_debug(&brw->ctx, &msg_id, \ MESA_DEBUG_SOURCE_API, \ MESA_DEBUG_TYPE_PERFORMANCE, \