summaryrefslogtreecommitdiff
path: root/src/g80_driver.c
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2007-07-10 00:41:21 -0700
committerAaron Plattner <aaron@weasel.nvidia.com>2007-07-10 00:41:21 -0700
commite77a2d9b62bc65062e7e2167642be5ab75ac4864 (patch)
treeec85c9457a0550dc6a7fe2616e1239fbf2e826d6 /src/g80_driver.c
parentc1503c864d495f8a3e5380fed5cb8ca5e21a3750 (diff)
G80: Add a dithering property and corresponding config file option.
Diffstat (limited to 'src/g80_driver.c')
-rw-r--r--src/g80_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/g80_driver.c b/src/g80_driver.c
index 7801602..8a494b9 100644
--- a/src/g80_driver.c
+++ b/src/g80_driver.c
@@ -105,12 +105,14 @@ typedef enum {
OPTION_HW_CURSOR,
OPTION_NOACCEL,
OPTION_ACCEL_METHOD,
+ OPTION_FP_DITHER,
} 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 }
};
@@ -313,6 +315,8 @@ G80PreInit(ScrnInfoPtr pScrn, int flags)
goto fail;
}
+ pNv->Dither = xf86ReturnOptValBool(pNv->Options, OPTION_FP_DITHER, FALSE);
+
/* Set the bits per RGB for 8bpp mode */
if(pScrn->depth == 8)
pScrn->rgbBits = 8;