Mesa (master): i965: Use brw_bo_map() in intel_texsubimage_tiled_memcpy().
Kenneth Graunke
kwg at kemper.freedesktop.org
Tue Feb 4 00:21:34 UTC 2014
Module: Mesa
Branch: master
Commit: e396674d5fb06ef467c7b66cf14ff89df64f2101
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e396674d5fb06ef467c7b66cf14ff89df64f2101
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Wed Jan 29 09:24:32 2014 -0800
i965: Use brw_bo_map() in intel_texsubimage_tiled_memcpy().
This additionally measures the time stalled, while also simplifying the
code.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Carl Worth <cworth at cworth.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/mesa/drivers/dri/i965/intel_tex_subimage.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_tex_subimage.c b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
index ce8bbe1..6942039 100644
--- a/src/mesa/drivers/dri/i965/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/i965/intel_tex_subimage.c
@@ -610,13 +610,7 @@ intel_texsubimage_tiled_memcpy(struct gl_context * ctx,
intel_batchbuffer_flush(brw);
}
- if (unlikely(brw->perf_debug)) {
- if (drm_intel_bo_busy(bo)) {
- perf_debug("Mapping a busy BO, causing a stall on the GPU.\n");
- }
- }
-
- error = drm_intel_bo_map(bo, true /*write_enable*/);
+ error = brw_bo_map(brw, bo, true /* write enable */, "miptree");
if (error || bo->virtual == NULL) {
DBG("%s: failed to map bo\n", __FUNCTION__);
return false;
More information about the mesa-commit
mailing list