mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
iris: Map with WC on non-LLC platforms.
Reworks:
* Jordan: Required rework following
f62724ccac ("iris: Pick a single mmap mode (WB/WC) at BO allocation time")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5599>
This commit is contained in:
parent
b6a7400dfd
commit
aa3775c8e4
1 changed files with 2 additions and 2 deletions
|
|
@ -595,9 +595,9 @@ iris_bo_alloc(struct iris_bufmgr *bufmgr,
|
|||
uint64_t bo_size =
|
||||
bucket ? bucket->size : MAX2(ALIGN(size, page_size), page_size);
|
||||
|
||||
bool is_coherent = bufmgr->has_llc || (flags & BO_ALLOC_COHERENT);
|
||||
enum iris_mmap_mode desired_mmap_mode =
|
||||
(bufmgr->has_llc || (flags & BO_ALLOC_COHERENT)) ? IRIS_MMAP_WB
|
||||
: IRIS_MMAP_WC;
|
||||
!local && is_coherent ? IRIS_MMAP_WB : IRIS_MMAP_WC;
|
||||
|
||||
mtx_lock(&bufmgr->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue