diff options
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r-- | src/sna/kgem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem.h b/src/sna/kgem.h index cdbb7cbf..06f39992 100644 --- a/src/sna/kgem.h +++ b/src/sna/kgem.h @@ -519,6 +519,9 @@ static inline bool kgem_bo_can_map(struct kgem *kgem, struct kgem_bo *bo) if (!bo->tiling && kgem->has_llc) return true; + if (kgem->gen == 21 && bo->tiling == I915_TILING_Y) + return false; + return kgem_bo_size(bo) <= kgem->aperture_mappable / 4; } |