mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
i965: Always use CPU mappings for BOs on LLC platforms.
It looks like there's no big difference for write-only workloads, but using a CPU map means that if they happen to read without having set the MAP_READ_BIT, they get 100x the performance for those reads. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
bb63df0c2d
commit
1990da2568
1 changed files with 1 additions and 1 deletions
|
|
@ -429,7 +429,7 @@ intel_bufferobj_map_range(struct gl_context * ctx,
|
|||
|
||||
if (access & GL_MAP_UNSYNCHRONIZED_BIT)
|
||||
drm_intel_gem_bo_map_unsynchronized(intel_obj->buffer);
|
||||
else if (!(access & GL_MAP_READ_BIT)) {
|
||||
else if (!brw->has_llc && !(access & GL_MAP_READ_BIT)) {
|
||||
drm_intel_gem_bo_map_gtt(intel_obj->buffer);
|
||||
intel_bufferobj_mark_inactive(intel_obj);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue