diff options
author | Thomas Hellström <thomas@shipmail.org> | 2006-12-05 12:58:39 +0000 |
---|---|---|
committer | Thomas Hellström <thomas@shipmail.org> | 2006-12-05 12:58:39 +0000 |
commit | 73195f43d84a8c27a4c57d0dc13a44a77f41e890 (patch) | |
tree | a6e6f400994a73a88857f133319f42dfdeec01a2 | |
parent | 4dc95bf62aa8305d50167331066c863f3ec7b2e3 (diff) |
Fix the dma2d option setting.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | unichrome/via_driver.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-12-05 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> + + * unichrome/via_driver.c: (VIAPreInit): + + Fix the dma2d option setting. + 2006-12-05 Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> * unichrome/via_bandwidth.c: (ViaSetPrimaryFIFO): diff --git a/unichrome/via_driver.c b/unichrome/via_driver.c index e73310b..3e580cb 100644 --- a/unichrome/via_driver.c +++ b/unichrome/via_driver.c @@ -991,6 +991,8 @@ static Bool VIAPreInit(ScrnInfoPtr pScrn, int flags) if (pVia->agpEnable) { from = xf86GetOptValBool(VIAOptions, OPTION_2D_DMA, &pVia->dma2d) ? X_CONFIG : X_DEFAULT; + if (from == X_CONFIG) + pVia->dma2d = !pVia->dma2d; xf86DrvMsg(pScrn->scrnIndex, from, "AGP DMA will %sbe used for 2D " "acceleration.\n", (pVia->dma2d) ? "" : "not "); |