summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-06-01 08:59:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2015-06-01 08:59:30 +0100
commit085efe68177e252af127a9e7f1186c51e9d68c80 (patch)
tree0594c410f8a8322c3d232cc7e78f8911fdb7e16c /src
parente08589de09b2e27b86321473efd4f29e57a18371 (diff)
sna: Force Linear FB when swizzling is unknown and fencing disabled
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
index b1011b74..de2bb770 100644
--- a/src/sna/sna_driver.c
+++ b/src/sna/sna_driver.c
@@ -619,6 +619,8 @@ static Bool sna_pre_init(ScrnInfoPtr scrn, int probe)
if (xf86ReturnOptValBool(sna->Options, OPTION_TILING_FB, FALSE))
sna->flags |= SNA_LINEAR_FB;
+ if (!sna->kgem.can_fence)
+ sna->flags |= SNA_LINEAR_FB;
if (!xf86ReturnOptValBool(sna->Options, OPTION_SWAPBUFFERS_WAIT, TRUE))
sna->flags |= SNA_NO_WAIT;