summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_queryobj.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-02-22 13:15:20 -0800
committerEric Anholt <eric@anholt.net>2013-03-05 14:25:00 -0800
commit14cec07177f438717cc6fb9252525e16d6b3d8dd (patch)
treeef3f489d5391a0a861a47e4ed60f976d8d94cff0 /src/mesa/drivers/dri/i965/brw_queryobj.c
parent0a1c6bcfb0ecca2ad7d3e1ecaa2c2f49b2a5a50c (diff)
downloadexternal_mesa3d-14cec07177f438717cc6fb9252525e16d6b3d8dd.zip
external_mesa3d-14cec07177f438717cc6fb9252525e16d6b3d8dd.tar.gz
external_mesa3d-14cec07177f438717cc6fb9252525e16d6b3d8dd.tar.bz2
i965: Make perf_debug() output to GL_ARB_debug_output in a debug context.
I tried to ensure that performance in the non-debug case doesn't change (we still just check one condition up front), and I think the impact is small enough in the debug context case to warrant including all of it. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_queryobj.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_queryobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c
index 0065513..de3be83 100644
--- a/src/mesa/drivers/dri/i965/brw_queryobj.c
+++ b/src/mesa/drivers/dri/i965/brw_queryobj.c
@@ -152,7 +152,7 @@ brw_queryobj_get_results(struct gl_context *ctx,
if (drm_intel_bo_references(intel->batch.bo, query->bo))
intel_batchbuffer_flush(intel);
- if (unlikely(INTEL_DEBUG & DEBUG_PERF)) {
+ if (unlikely(intel->perf_debug)) {
if (drm_intel_bo_busy(query->bo)) {
perf_debug("Stalling on the GPU waiting for a query object.\n");
}