summaryrefslogtreecommitdiff
path: root/src/sna/kgem.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-04 13:52:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-04 13:52:55 +0100
commitc7ad655359b746917deeac3efb9eb843465cf4b9 (patch)
tree0f48ba245e78f889bcf4732213297acd0a29c04e /src/sna/kgem.h
parent0a2c5eb7669c249194b41d624ca05654a8d7035b (diff)
sna/gen2: Prevent using the GTT maps with I915_TILING_Y on 855gm
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem.h')
-rw-r--r--src/sna/kgem.h3
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;
}