From: Eric Anholt Date: Wed, 23 Jan 2013 23:26:36 +0000 (-0800) Subject: i965: Add perf debug for a corner case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11766b1bbb730d2f22a23d8293c67b138b364fce;p=mesa.git i965: Add perf debug for a corner case. Reviewed-by: Kenneth Graunke --- 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,