summaryrefslogtreecommitdiff
path: root/src/sna/sna.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-23 10:53:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-23 11:04:54 +0100
commitd6830190bc9956f485db6c3420f7a4a79793a693 (patch)
tree8ef1f73549f4d9cf14aada566177d5b12a0a8402 /src/sna/sna.h
parent70868c7aa881b15b7478f7ee4543fde0268a4ba6 (diff)
sna: Disable all outputs when initializing as a slaved output provider
When we are constructed as a slaved device, we need to disable all outputs or else they are not correctly hooked into the master device upon startup. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r--src/sna/sna.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index 6e70c56e..281418be 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -241,17 +241,18 @@ struct sna {
ScrnInfoPtr scrn;
unsigned flags;
-#define SNA_NO_WAIT 0x1
-#define SNA_NO_FLIP 0x2
-#define SNA_NO_VSYNC 0x4
-#define SNA_TRIPLE_BUFFER 0x8
-#define SNA_TEAR_FREE 0x10
-#define SNA_FORCE_SHADOW 0x20
-#define SNA_FLUSH_GTT 0x40
-#define SNA_IS_HOSTED 0x80
-#define SNA_PERFORMANCE 0x100
-#define SNA_POWERSAVE 0x200
-#define SNA_REMOVE_OUTPUTS 0x400
+#define SNA_IS_SLAVED 0x1
+#define SNA_IS_HOSTED 0x2
+#define SNA_NO_WAIT 0x10
+#define SNA_NO_FLIP 0x20
+#define SNA_NO_VSYNC 0x40
+#define SNA_TRIPLE_BUFFER 0x80
+#define SNA_TEAR_FREE 0x100
+#define SNA_FORCE_SHADOW 0x200
+#define SNA_FLUSH_GTT 0x400
+#define SNA_PERFORMANCE 0x1000
+#define SNA_POWERSAVE 0x2000
+#define SNA_REMOVE_OUTPUTS 0x4000
#define SNA_HAS_FLIP 0x10000
#define SNA_HAS_ASYNC_FLIP 0x20000
#define SNA_LINEAR_FB 0x40000