summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2017-09-16 00:24:41 -0700
committerKenneth Graunke <[email protected]>2017-09-18 09:49:10 -0700
commitf3f42fd867c7b2844378118db08a8095593d81a2 (patch)
tree950beaaf4dd8d8a91a547299e8a376c01e96ed2e /src/mesa
parenta2ef69a21d4089ee57272f789b809c771e1937df (diff)
i965: Warn for GTT fallbacks when mapping the batch/state buffers.
This shouldn't really happen in practice, but I hit it a couple of times when running a driver with a bad memory leak. We may as well hook up the warning, because if it ever triggers, we'll know something is wrong. Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_batchbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
index ae9351499aa..7d5a8947e8f 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c
@@ -184,7 +184,7 @@ intel_batchbuffer_reset(struct brw_context *brw)
batch->bo = brw_bo_alloc(bufmgr, "batchbuffer", BATCH_SZ, 4096);
if (!batch->batch_cpu_map) {
- batch->map = brw_bo_map(NULL, batch->bo, MAP_READ | MAP_WRITE);
+ batch->map = brw_bo_map(brw, batch->bo, MAP_READ | MAP_WRITE);
}
batch->map_next = batch->map;
@@ -193,7 +193,7 @@ intel_batchbuffer_reset(struct brw_context *brw)
can_do_exec_capture(screen) ? EXEC_OBJECT_CAPTURE : 0;
if (!batch->state_cpu_map) {
batch->state_map =
- brw_bo_map(NULL, batch->state_bo, MAP_READ | MAP_WRITE);
+ brw_bo_map(brw, batch->state_bo, MAP_READ | MAP_WRITE);
}
/* Avoid making 0 a valid state offset - otherwise the decoder will try