[Intel-gfx] [PATCH] DRI2: Don't swap pipes under DRI2

Li Peng peng.li at linux.intel.com
Thu Jan 8 03:11:21 CET 2009


Don't swap pipes under DRI2, it fixes VT switch failure on 945GM
---
 src/i830_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/i830_driver.c b/src/i830_driver.c
index beb134d..5489890 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2960,6 +2960,7 @@ I830SwapPipes(ScrnInfoPtr pScrn)
     * Also make sure the DRM can handle the swap.
     */
    if (I830LVDSPresent(pScrn) && !IS_I965GM(pI830) && !IS_GM45(pI830)
&&
+       (pI830->directRenderingType != DRI_DRI2) &&
        (pI830->directRenderingType != DRI_XF86DRI ||
 	(pI830->directRenderingType == DRI_XF86DRI && pI830->drmMinor >= 10)))
{
        xf86DrvMsg(pScrn->scrnIndex, X_INFO, "adjusting plane->pipe
mappings "
-- 
1.5.5.1






More information about the Intel-gfx mailing list