Module: Mesa
Branch: master
Commit: 11766b1bbb730d2f22a23d8293c67b138b364fce
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=11766b1bbb730d2f22a23d8293c67b138b364fce

Author: Eric Anholt <[email protected]>
Date:   Wed Jan 23 15:26:36 2013 -0800

i965: Add perf debug for a corner case.

Reviewed-by: Kenneth Graunke <[email protected]>

---

 src/mesa/drivers/dri/i965/brw_draw_upload.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c 
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 29ec9bb..07f9f00 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -808,6 +808,9 @@ static void brw_upload_indices(struct brw_context *brw)
        * rebase it into a temporary.
        */
        if ((ib_type_size - 1) & offset) {
+          perf_debug("copying index buffer to a temporary to work around "
+                     "misaligned offset %d\n", offset);
+
           GLubyte *map = ctx->Driver.MapBufferRange(ctx,
                                                     offset,
                                                     ib_size,

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to