From 7d67324fa3a5b5cf0227550316c366752fe4abfb Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 23 Oct 2006 17:29:17 +0100 Subject: [PATCH] Add some MergedFB checks for accelerator limitations --- src/i830_driver.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/i830_driver.c b/src/i830_driver.c index 3cee1c8b..432f0cb2 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -5468,6 +5468,16 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags) #endif pI830->disableTiling = TRUE; /* no DRI - so disableTiling */ + if (pScrn->displayWidth >= 4096) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Cannot support > 1024x768 in leftof/rightof configurations. disabling DRI.\n"); + pI830->directRenderingDisabled = TRUE; + } + + if (pScrn->virtualY > 2048) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Cannot support > 2048 vertical lines. disabling acceleration.\n"); + pI830->noAccel = TRUE; + } + pI830->displayWidth = pScrn->displayWidth; SetPipeAccess(pScrn);