summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-20 15:32:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-20 15:32:30 +0100
commit186ac909ad2099f834e7b2c513a02cd4d041327c (patch)
tree3f6d65bbc63df3527962489980edf4a6eb1675eb /src
parent112fc5f370f8daf267d7241ca2d669194abaa183 (diff)
sna: Fix tiled scanout limits for Valleyview
It appears that Valleyview shares the same scanout limits as gen4. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_display.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index cd3d695d..a9cec121 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1153,7 +1153,9 @@ static bool use_shadow(struct sna *sna, xf86CrtcPtr crtc)
}
bo = sna_pixmap_get_bo(sna->front);
- if ((sna->kgem.gen >> 3) > 4)
+ if (sna->kgem.gen == 071)
+ pitch_limit = bo->tiling ? 16 * 1024 : 32 * 1024;
+ else if ((sna->kgem.gen >> 3) > 4)
pitch_limit = 32 * 1024;
else if ((sna->kgem.gen >> 3) == 4)
pitch_limit = bo->tiling ? 16 * 1024 : 32 * 1024;
@@ -1230,7 +1232,9 @@ static struct kgem_bo *sna_crtc_attach(xf86CrtcPtr crtc)
__FUNCTION__, crtc->mode.HDisplay, crtc->mode.VDisplay));
tiling = I915_TILING_X;
- if ((sna->kgem.gen >> 3) > 4)
+ if (sna->kgem.gen == 071)
+ tiled_limit = 16 * 1024 * 8;
+ else if ((sna->kgem.gen >> 3) > 4)
tiled_limit = 32 * 1024 * 8;
else if ((sna->kgem.gen >> 3) == 4)
tiled_limit = 16 * 1024 * 8;