xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Jun 19 08:29:13 PDT 2013


 src/sna/sna_display.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ba642d9ff86fcf8b0b758d65565e3b5b6293b667
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jun 19 16:27:36 2013 +0100

    sna: Fix the pitch limits for gen3 scanout
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index f7fe533..cd3d695 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1157,6 +1157,8 @@ static bool use_shadow(struct sna *sna, xf86CrtcPtr crtc)
 		pitch_limit = 32 * 1024;
 	else if ((sna->kgem.gen >> 3) == 4)
 		pitch_limit = bo->tiling ? 16 * 1024 : 32 * 1024;
+	else if ((sna->kgem.gen >> 3) == 3)
+		pitch_limit = bo->tiling ? 8 * 1024 : 16 * 1024;
 	else
 		pitch_limit = 8 * 1024;
 	if (bo->pitch > pitch_limit)


More information about the xorg-commit mailing list