projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
936a3ca
)
i965: Add perf debug for a corner case.
author
Eric Anholt
<eric@anholt.net>
Wed, 23 Jan 2013 23:26:36 +0000
(15:26 -0800)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw_upload.c
b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 29ec9bb49dc7a86d04e2522ff8c7efb37cfb4ad0..07f9f004fb82f42becdebe6eea98be71465a4b56 100644
(file)
--- 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,