diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-08 06:45:43 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-05-08 13:48:43 +0100 |
commit | e78a00c5da922024ac64270fae0797d98d1d6e57 (patch) | |
tree | d040920103a73f509891b067db5271194c21ee8e /src/sna/sna.h | |
parent | a93157587a82c699e7df76fb482c49569f0686b9 (diff) |
sna: Add an xorg.conf option for removing unused outputs
Clients are not yet ready for outputs that disappear at runtime, often
unexpectedly dieing with asynchronous BadOutput errors. A simple
workaround is to not remove any output just yet - but allow users to opt
in via xorg.conf, i.e.
Section "Device"
Option "DeleteUnusedDP12Displays" "true"
EndSection
The name chosen is to be consistent with the nvidia driver, which did
MST first and encountered all of these issues first, and has also been
adopted for -modesetting. If this is combined with persistent output
naming (i.e. based on DisplayPort branch topology), the number of
outputs presented to the user should be static.
Instead of removing the outputs, we have to mark them detached instead
to avoid throwing errors from the kernel.
Based on the patch for -modesetting by Dave Airlie.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 75a0e36c..3a45924f 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -244,6 +244,7 @@ struct sna { #define SNA_IS_HOSTED 0x80 #define SNA_PERFORMANCE 0x100 #define SNA_POWERSAVE 0x200 +#define SNA_REMOVE_OUTPUTS 0x400 #define SNA_REDISCOVER 0x40000000 #define SNA_REPROBE 0x80000000 |