diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2008-05-09 18:31:07 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2008-05-09 18:31:07 -0700 |
commit | cb83fbdfa22aa408e6692256cd44b78fef53e801 (patch) | |
tree | 209c126fcd04c841f39190ca24288d840016501f /src/g80_driver.c | |
parent | 8db2d4e63508f59299098e092ae85e543cf61d03 (diff) |
Add an option to allow validation of dual-link DVI modes.
These modes don't work at bootup (i.e. power saving) configuration on all GPUs,
so they're still disabled by default. This option allows users to enable them
in case they actually work.
Diffstat (limited to 'src/g80_driver.c')
-rw-r--r-- | src/g80_driver.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c index 99ea737..a0182a1 100644 --- a/src/g80_driver.c +++ b/src/g80_driver.c @@ -106,14 +106,16 @@ typedef enum { OPTION_NOACCEL, OPTION_ACCEL_METHOD, OPTION_FP_DITHER, + OPTION_ALLOW_DUAL_LINK, } G80Opts; static const OptionInfoRec G80Options[] = { - { OPTION_HW_CURSOR, "HWCursor", OPTV_BOOLEAN, {0}, FALSE }, - { OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE }, - { OPTION_ACCEL_METHOD, "AccelMethod", OPTV_STRING, {0}, FALSE }, - { OPTION_FP_DITHER, "FPDither", OPTV_BOOLEAN, {0}, FALSE }, - { -1, NULL, OPTV_NONE, {0}, FALSE } + { OPTION_HW_CURSOR, "HWCursor", OPTV_BOOLEAN, {0}, FALSE }, + { OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE }, + { OPTION_ACCEL_METHOD, "AccelMethod", OPTV_STRING, {0}, FALSE }, + { OPTION_FP_DITHER, "FPDither", OPTV_BOOLEAN, {0}, FALSE }, + { OPTION_ALLOW_DUAL_LINK, "AllowDualLinkModes", OPTV_BOOLEAN, {0}, FALSE }, + { -1, NULL, OPTV_NONE, {0}, FALSE } }; static Bool @@ -331,6 +333,7 @@ G80PreInit(ScrnInfoPtr pScrn, int flags) } pNv->Dither = xf86ReturnOptValBool(pNv->Options, OPTION_FP_DITHER, FALSE); + pNv->AllowDualLink = xf86ReturnOptValBool(pNv->Options, OPTION_ALLOW_DUAL_LINK, FALSE); /* Set the bits per RGB for 8bpp mode */ if(pScrn->depth == 8) |