diff options
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r-- | hw/xfree86/common/xf86Config.c | 5 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Privstr.h | 1 |
2 files changed, 6 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); diff --git a/hw/xfree86/common/xf86Privstr.h b/hw/xfree86/common/xf86Privstr.h index 0842e1ebb..21c2e1fe4 100644 --- a/hw/xfree86/common/xf86Privstr.h +++ b/hw/xfree86/common/xf86Privstr.h @@ -97,6 +97,7 @@ typedef struct { MessageType dri2From; Bool autoAddGPU; + const char *debug; } xf86InfoRec, *xf86InfoPtr; /* ISC's cc can't handle ~ of UL constants, so explicitly type cast them. */ |