diff options
author | Adam Jackson <ajax@redhat.com> | 2018-03-28 12:46:00 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-03-28 16:33:52 -0400 |
commit | df13ea7da9174d2e1c732985d9b7a9a35a6916bc (patch) | |
tree | e37b74ea93c7fc797ae92e9da20c965b7eabc9d8 /hw/xfree86/common/xf86Config.c | |
parent | c95361465ee98dd97a99778d8a31be88fe9e4c4f (diff) |
xfree86: Add Option "Debug" to ServerFlags
This provides a generic way to control obscure runtime behavior knobs
without making interface promises.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'hw/xfree86/common/xf86Config.c')
-rw-r--r-- | hw/xfree86/common/xf86Config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index 05991d319..2c1d335dc 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -645,6 +645,7 @@ typedef enum { FLAG_AUTO_ADD_GPU, FLAG_MAX_CLIENTS, FLAG_IGLX, + FLAG_DEBUG, } FlagValues; /** @@ -702,6 +703,8 @@ static OptionInfoRec FlagOptions[] = { {0}, FALSE }, {FLAG_IGLX, "IndirectGLX", OPTV_BOOLEAN, {0}, FALSE}, + {FLAG_DEBUG, "Debug", OPTV_STRING, + {0}, FALSE}, {-1, NULL, OPTV_NONE, {0}, FALSE}, }; @@ -850,6 +853,8 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts) } #endif + xf86Info.debug = xf86GetOptValString(FlagOptions, FLAG_DEBUG); + /* if we're not hotplugging, force some input devices to exist */ xf86Info.forceInputDevices = !(xf86Info.autoAddDevices && xf86Info.autoEnableDevices); |