mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
iris: Use bo->mmap_mode in transfer map read check
The scenario we want to avoid is reading from WC or UC mappings, so this is an easier to follow check. Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10941>
This commit is contained in:
parent
f62724ccac
commit
ccfde5089e
1 changed files with 1 additions and 1 deletions
|
|
@ -2079,7 +2079,7 @@ iris_transfer_map(struct pipe_context *ctx,
|
|||
*/
|
||||
if (!map_would_stall &&
|
||||
!isl_aux_usage_has_compression(res->aux.usage) &&
|
||||
!((usage & PIPE_MAP_READ) && !res->bo->cache_coherent)) {
|
||||
!((usage & PIPE_MAP_READ) && res->bo->mmap_mode != IRIS_MMAP_WB)) {
|
||||
usage |= PIPE_MAP_DIRECTLY;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue