i965: Add perf debug for a corner case.
authorEric Anholt <eric@anholt.net>
Wed, 23 Jan 2013 23:26:36 +0000 (15:26 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 11 Feb 2013 21:14:51 +0000 (13:14 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index 29ec9bb49dc7a86d04e2522ff8c7efb37cfb4ad0..07f9f004fb82f42becdebe6eea98be71465a4b56 100644 (file)
@@ -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,