[Mesa-dev] [PATCH 3/6] i965: add debug in brw_draw_upload

Chris Forbes chrisf at ijw.co.nz
Tue Oct 9 02:33:39 PDT 2012


---
 src/mesa/drivers/dri/i965/brw_draw_upload.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 0a563ed..aba1559 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -406,6 +406,11 @@ static void brw_prepare_vertices(struct brw_context *brw)
       int type_size = get_size(glarray->Type);
 
       input->element_size = type_size * glarray->Size;
+      if (unlikely(INTEL_DEBUG & DEBUG_VERTS))
+         printf("element %d type=%s size=%d type_size=%d element_size=%d\n",
+            i, _mesa_lookup_enum_by_nr(glarray->Type), glarray->Size, type_size,
+            input->element_size);
+
 
       if (_mesa_is_bufferobj(glarray->BufferObj)) {
 	 struct intel_buffer_object *intel_buffer =
-- 
1.7.12.2



More information about the mesa-dev mailing list