[Mesa-dev] [PATCH 10/14] intel: Add missing perf debug for a stall on mapping a BO.

Eric Anholt eric at anholt.net
Fri Feb 22 19:52:19 PST 2013


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.
---
 src/mesa/drivers/dri/intel/intel_buffer_objects.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 34eb7c9..ac265db 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) &&
-- 
1.7.10.4



More information about the mesa-dev mailing list