diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-06-01 08:59:30 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-06-01 08:59:30 +0100 |
commit | 085efe68177e252af127a9e7f1186c51e9d68c80 (patch) | |
tree | 0594c410f8a8322c3d232cc7e78f8911fdb7e16c /src/sna/sna_driver.c | |
parent | e08589de09b2e27b86321473efd4f29e57a18371 (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/sna/sna_driver.c')
-rw-r--r-- | src/sna/sna_driver.c | 2 |
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; |