summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-08-21 10:42:05 -0700
committerKenneth Graunke <[email protected]>2014-10-13 06:44:05 -0700
commita4fe727a5d77c6a20a4e6cceaad34c81cd49f0ec (patch)
tree5cc8f43acb46cfb8858363cafde3c6d1bff03306 /src/mesa
parent5d72a1c95662109b1338605da83329dd25e00859 (diff)
i965: Issue performance warnings on MapBufferRange stalls.
This is easy: we just need to use brw_map_bo instead of mapping it directly. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_buffer_objects.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
index 0e19e465c4c..82e07444550 100644
--- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c
+++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c
@@ -424,8 +424,8 @@ intel_bufferobj_map_range(struct gl_context * ctx,
intel_obj->map_extra[index],
alignment);
if (brw->has_llc) {
- drm_intel_bo_map(intel_obj->range_map_bo[index],
- (access & GL_MAP_WRITE_BIT) != 0);
+ brw_bo_map(brw, intel_obj->range_map_bo[index],
+ (access & GL_MAP_WRITE_BIT) != 0, "range-map");
} else {
drm_intel_gem_bo_map_gtt(intel_obj->range_map_bo[index]);
}
@@ -441,7 +441,8 @@ intel_bufferobj_map_range(struct gl_context * ctx,
drm_intel_gem_bo_map_gtt(intel_obj->buffer);
intel_bufferobj_mark_inactive(intel_obj);
} else {
- drm_intel_bo_map(intel_obj->buffer, (access & GL_MAP_WRITE_BIT) != 0);
+ brw_bo_map(brw, intel_obj->buffer, (access & GL_MAP_WRITE_BIT) != 0,
+ "MapBufferRange");
intel_bufferobj_mark_inactive(intel_obj);
}