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
|
@ -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…
Reference in New Issue