Reworks:
* Jordan: Required rework following
f62724ccacf ("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>
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);