diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-28 17:38:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-29 06:57:05 +0100 |
commit | 0955f12ae04011593b71817e3151b8fb7c228899 (patch) | |
tree | 688a037323d84df57d173d1bb91d5743bda6c641 | |
parent | 3ef966f4c5bae07108ce2720f4da3c3c4e41e1aa (diff) |
sna: Prefer linear if below tile_width
Be stricter in order to allow greater use of CPU bo.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/kgem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 22aef258..3f56c32b 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -4194,13 +4194,13 @@ int kgem_choose_tiling(struct kgem *kgem, int tiling, int width, int height, int goto done; } - if (tiling == I915_TILING_X && width * bpp <= 8*8*512/10) { + if (tiling == I915_TILING_X && width * bpp <= 8*512) { DBG(("%s: too thin [width %d, %d bpp] for TILING_X\n", __FUNCTION__, width, bpp)); tiling = I915_TILING_NONE; goto done; } - if (tiling == I915_TILING_Y && width * bpp <= 8*8*128/10) { + if (tiling == I915_TILING_Y && width * bpp < 8*128) { DBG(("%s: too thin [%d] for TILING_Y\n", __FUNCTION__, width)); tiling = I915_TILING_NONE; |