diff options
author | Eric Anholt <[email protected]> | 2013-01-23 15:26:36 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2013-02-11 13:14:51 -0800 |
commit | 11766b1bbb730d2f22a23d8293c67b138b364fce (patch) | |
tree | 78e0b1466004d4142874b76ddd36e07f8a0c4358 | |
parent | 936a3ca6fdbf166ee89d410653f7948de3282bdc (diff) |
i965: Add perf debug for a corner case.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | 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 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, |