From 11766b1bbb730d2f22a23d8293c67b138b364fce Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 23 Jan 2013 15:26:36 -0800 Subject: i965: Add perf debug for a corner case. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 29ec9bb49dc..07f9f004fb8 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, -- cgit v1.2.3