diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-14 23:05:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-14 23:06:17 +0000 |
commit | 2c492c0064e23457bffdf4f9ab1a7c9f1be93a87 (patch) | |
tree | 28299da1565442b38d30b796fcdb79f84e1acd10 | |
parent | 6890592cd2b2d6f0d06c530f5e770fdc98577d4f (diff) |
sna: Disable tiling for single row pixmaps (unless required for hw limits)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index a1ed6cac..daca7afd 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -2330,6 +2330,12 @@ int kgem_choose_tiling(struct kgem *kgem, int tiling, int width, int height, int if (tiling < 0) return tiling; + if (tiling && height == 1) { + DBG(("%s: disabling tiling [%d] for single row\n", + __FUNCTION__,height)); + tiling = I915_TILING_NONE; + goto done; + } if (tiling == I915_TILING_Y && height <= 16) { DBG(("%s: too short [%d] for TILING_Y\n", __FUNCTION__,height)); |