diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-05 17:45:03 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-07-06 10:35:20 +0100 |
commit | 74b786f7cee5723468bba251a2155a65770b2ad4 (patch) | |
tree | 7a52daff995f3d2cb021763cba6bec31ed5f70cd /hw/xfree86/common/xf86Globals.c | |
parent | ef6686480ad1de6582b9ef5d13e5d4ffb3b3918c (diff) |
xfree86: add autoAddGPU option (v2)
This option is to stop the X server adding non-primary devices as
gpu screens.
v2: fix per Keith's suggestion.
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'hw/xfree86/common/xf86Globals.c')
-rw-r--r-- | hw/xfree86/common/xf86Globals.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c index bb089175d..7df7a80c4 100644 --- a/hw/xfree86/common/xf86Globals.c +++ b/hw/xfree86/common/xf86Globals.c @@ -126,11 +126,16 @@ xf86InfoRec xf86Info = { #if defined(CONFIG_HAL) || defined(CONFIG_UDEV) || defined(CONFIG_WSCONS) .forceInputDevices = FALSE, .autoAddDevices = TRUE, - .autoEnableDevices = TRUE + .autoEnableDevices = TRUE, #else .forceInputDevices = TRUE, .autoAddDevices = FALSE, - .autoEnableDevices = FALSE + .autoEnableDevices = FALSE, +#endif +#if defined(CONFIG_UDEV_KMS) + .autoAddGPU = TRUE, +#else + .autoAddGPU = FALSE, #endif }; |