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

Chris Wilson ickle at kemper.freedesktop.org
Fri Jan 9 11:56:50 PST 2015


 src/sna/blt.c |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 836f9e11d67356babc80464f1183b907cb6cb2f2
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Jan 9 19:55:41 2015 +0000

    sna: Disable detiling for gen2
    
    gen2 use a different tile layout to all the other generations, and are
    not supported by the existing routines. Disable for now.
    
    References: https://bugs.freedesktop.org/show_bug.cgi?id=88112
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/sna/blt.c b/src/sna/blt.c
index b5bfee6..8cc97be 100644
--- a/src/sna/blt.c
+++ b/src/sna/blt.c
@@ -747,6 +747,11 @@ memcpy_from_tiled_x__swizzle_9_11(const void *src, void *dst, int bpp,
 
 void choose_memcpy_tiled_x(struct kgem *kgem, int swizzling)
 {
+	if (kgem->gen < 30) {
+		DBG(("%s: no detiling functions for gen2\n", __FUNCTION__));
+		return;
+	}
+
 	switch (swizzling) {
 	default:
 		DBG(("%s: unknown swizzling, %d\n", __FUNCTION__, swizzling));


More information about the xorg-commit mailing list