[Mesa-dev] [PATCH 1/2] intel: Mention how much data we're trying to subdata in perf debug.

Eric Anholt eric at anholt.net
Fri Apr 19 11:35:26 PDT 2013


---
 src/mesa/drivers/dri/intel/intel_buffer_objects.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_buffer_objects.c b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
index 2342f19..996518b 100644
--- a/src/mesa/drivers/dri/intel/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/intel/intel_buffer_objects.c
@@ -211,8 +211,9 @@ intel_bufferobj_subdata(struct gl_context * ctx,
 	 intel_bufferobj_alloc_buffer(intel, intel_obj);
 	 drm_intel_bo_subdata(intel_obj->buffer, 0, size, data);
       } else {
-         perf_debug("Using a blit copy to avoid stalling on glBufferSubData() "
-                    "to a busy buffer object.\n");
+         perf_debug("Using a blit copy to avoid stalling on %ldb "
+                    "glBufferSubData() to a busy buffer object.\n",
+                    (long)size);
 	 drm_intel_bo *temp_bo =
 	    drm_intel_bo_alloc(intel->bufmgr, "subdata temp", size, 64);
 
-- 
1.7.10.4



More information about the mesa-dev mailing list