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

Chris Wilson ickle at kemper.freedesktop.org
Wed Jan 20 03:08:28 PST 2016


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

New commits:
commit 26cc364d2eb078085ff4a6dd2968b426bf333b4f
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jan 20 11:06:56 2016 +0000

    sna: Allow for a Y-tiled shadow
    
    If the CRTC can use Y-tiling, why not try it for the shadow allocation
    and perhaps save a composited rotation (still requiring the copy onto the
    shadow)?
    
    Suggestd-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
    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 1a1bebb..511aa84 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -2394,6 +2394,10 @@ force_shadow:
 		}
 
 		tiling = I915_TILING_X;
+		if (crtc->rotation & (RR_Rotate_90 | RR_Rotate_270) &&
+		    sna->kgem.can_scanout_y)
+			tiling = I915_TILING_Y;
+
 		if (sna->kgem.gen == 071)
 			tiled_limit = 16 * 1024 * 8;
 		else if ((sna->kgem.gen >> 3) > 4)


More information about the xorg-commit mailing list