summaryrefslogtreecommitdiff
path: root/src/sna/gen6_common.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-04-22 14:08:17 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-04-22 16:03:31 +0100
commit4fdd3a714d380afd3d6425aedbbf2ae20180638b (patch)
tree99e681b2a664c53f84f3a2e003a986895b958774 /src/sna/gen6_common.h
parent83b8528773a0b1e6655fa87c9645a0062cee1359 (diff)
sna/gen6+: Discourage use of the BLT with Y-tiling
Somewhere, somehow the first glyph character upload into the Y-tiled glyph cache is corrupt since commit 75d87762471e195dddd73056fc6a06e17db1c8b0 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Apr 17 10:29:28 2015 +0100 sna: Enable blitting with Y-tiled surfaces I have not spotted whether it is a missing magic bit or a bad GTT path, but ideally we don't want to switch to BLT along that path anyway (since we are in the middle of rendering with the other engine). Reported-by: Andy Furniss <adf.lists@gmail.com> References: https://bugs.freedesktop.org/show_bug.cgi?id=90138 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen6_common.h')
-rw-r--r--src/sna/gen6_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/gen6_common.h b/src/sna/gen6_common.h
index 5da739e2..4bf69b11 100644
--- a/src/sna/gen6_common.h
+++ b/src/sna/gen6_common.h
@@ -52,6 +52,9 @@ inline static bool can_switch_to_blt(struct sna *sna,
if (bo && RQ_IS_BLT(bo->rq))
return true;
+ if (bo && bo->tiling == I915_TILING_Y)
+ return false;
+
if (sna->render_state.gt < 2)
return true;