i965: Add perf debug for a corner case.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Eric Anholt
2013-01-23 15:26:36 -08:00
parent 936a3ca6fd
commit 11766b1bbb
@@ -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,