summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-11-11 18:05:14 -0800
committerKenneth Graunke <[email protected]>2017-01-17 21:47:38 -0800
commitaa291c3ba9b1062d219276cef12b1b7c5380b423 (patch)
tree5be0a1f0cdcd2f1de574dc69cfacd90e5816d91b /src/mesa/drivers
parentce892392948e18241a872878873dbdd46e546fb2 (diff)
i965: Don't map/unmap in brw_print_program_cache on LLC platforms.
We have a persistent mapping. Don't map it a second time or try to unmap it. Just use the pointer. This most likely would wreak havoc except that this code is unused (it's only called from an if (0) debug block). Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program_cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program_cache.c b/src/mesa/drivers/dri/i965/brw_program_cache.c
index 8939fb110fd..44d9994de01 100644
--- a/src/mesa/drivers/dri/i965/brw_program_cache.c
+++ b/src/mesa/drivers/dri/i965/brw_program_cache.c
@@ -514,7 +514,8 @@ brw_print_program_cache(struct brw_context *brw)
const struct brw_cache *cache = &brw->cache;
struct brw_cache_item *item;
- drm_intel_bo_map(cache->bo, false);
+ if (!brw->has_llc)
+ drm_intel_bo_map(cache->bo, false);
for (unsigned i = 0; i < cache->size; i++) {
for (item = cache->items[i]; item; item = item->next) {
@@ -524,5 +525,6 @@ brw_print_program_cache(struct brw_context *brw)
}
}
- drm_intel_bo_unmap(cache->bo);
+ if (!brw->has_llc)
+ drm_intel_bo_unmap(cache->bo);
}