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:
Rafael Antognolli 2020-01-03 10:42:10 -08:00 committed by Marge Bot
parent b6a7400dfd
commit aa3775c8e4
1 changed files with 2 additions and 2 deletions

View File

@ -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);