aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_tex_subimage.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-04-09 23:14:56 -0700
committerKenneth Graunke <[email protected]>2017-04-10 14:33:18 -0700
commitbd84252be62608c0b8e46173a774ec372c9708cc (patch)
treeebd223579d669c49540c640d6146e41d1f26c681 /src/mesa/drivers/dri/i965/intel_tex_subimage.c
parentf053ee78ed2415a91d2960da50ea7c2ff9eddaa5 (diff)
i965/drm: Add stall warnings when mapping or waiting on BOs.
This restores the performance warnings removed in: i965: Drop brw_bo_map[_gtt] wrappers which issue perf warnings. but adds them for nearly all BO mapping, and also for wait_rendering. Because we add this to the core bufmgr, we automatically get stall warnings in all callers, unlike before where only a few callsites used the wrappers that gave stall warnings. We also do it a bit differently: we simply measure how long set_domain takes (the part that stalls), and complain if it's more than 0.01 ms. We don't bother calling brw_bo_busy(), and we don't measure the mmap time (which doesn't stall). This should be more accurate. Reviewed-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_tex_subimage.c')
-rw-r--r--src/mesa/drivers/dri/i965/intel_tex_subimage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index 1d20ac327e5..912622253a4 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@ -148,7 +148,7 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
intel_batchbuffer_flush(brw);
}
- error = brw_bo_map(bo, true /* write enable */);
+ error = brw_bo_map(brw, bo, true /* write enable */);
if (error || bo->virtual == NULL) {
DBG("%s: failed to map bo\n", __func__);
return false;