summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-10-27 18:13:31 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-10-28 08:05:50 +0100
commit47da17fe745efeef61a6f5106f5b888fd7abfb06 (patch)
treed064dcfab2208f2bfabfe5167f2caf585a694bdb /src/sna/sna.h
parent714052fb32a3c521efb295f2c400a673d515fb77 (diff)
sna: Load DRI3 if try to load DRI2 and fail
As a backup in case DRI2 is disabled due to the presence of vgaarb, make sure we have DRI3 loaded. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 4f9fc89a..072c34f5 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -362,8 +362,9 @@ struct sna {
} cursor;
struct sna_dri2 {
- bool available;
- bool open;
+ bool available : 1;
+ bool enable : 1;
+ bool open : 1;
#if HAVE_DRI2
void *flip_pending;
@@ -372,8 +373,11 @@ struct sna {
} dri2;
struct sna_dri3 {
- bool available;
- bool open;
+ bool available :1;
+ bool override : 1;
+ bool enable : 1;
+ bool open :1;
+
#if HAVE_DRI3
SyncScreenCreateFenceFunc create_fence;
struct list pixmaps;