summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-02-22 14:39:15 -0800
committerEric Anholt <[email protected]>2013-03-05 14:25:00 -0800
commitf0a191ca0ff197f0f0c00be0b4b94169ec81f71f (patch)
tree2d5352a0dc6ae5be05acdd3aae2f8241cce39263 /src
parent14cec07177f438717cc6fb9252525e16d6b3d8dd (diff)
intel: Add missing perf debug for a stall on mapping a BO.
I was testing the ARB_debug_output code and wrote an obvious sample that should have hit this, and got confused that my ARB_debug_output was broken. Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_buffer_objects.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 34eb7c9ea2c..ac265db4a66 100644
--- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
@@ -330,6 +330,8 @@ intel_bufferobj_map_range(struct gl_context * ctx,
drm_intel_bo_unreference(intel_obj->buffer);
intel_bufferobj_alloc_buffer(intel, intel_obj);
} else {
+ perf_debug("Stalling on the GPU for mapping a busy buffer "
+ "object\n");
intel_flush(ctx);
}
} else if (drm_intel_bo_busy(intel_obj->buffer) &&