summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-09 19:55:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-09 19:55:41 +0000
commit836f9e11d67356babc80464f1183b907cb6cb2f2 (patch)
tree99ff7262e90674288b253e37390bc217f6b9bf07 /src
parent07096568e71fd1358a8920b15f40d38d10bce2c0 (diff)
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@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/blt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/blt.c b/src/sna/blt.c
index b5bfee69..8cc97bed 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));