NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsrc/40939: nvidia driver can not deal with COMPOSITE/DAMAGE extensions



Please try the following patch from xorg trunk.

Index: xaaInitAccel.c
===================================================================
RCS file: 
/cvsroot/xsrc/external/mit/xorg-server/dist/hw/xfree86/xaa/xaaInitAccel.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 xaaInitAccel.c
--- xaaInitAccel.c      31 Jul 2008 19:49:48 -0000      1.1.1.1
+++ xaaInitAccel.c      1 Mar 2009 21:19:46 -0000
@@ -43,7 +43,8 @@ typedef enum {
     XAAOPT_WRITE_BITMAP,
     XAAOPT_WRITE_PIXMAP,
     XAAOPT_PIXMAP_CACHE,
-    XAAOPT_OFFSCREEN_PIXMAPS
+    XAAOPT_OFFSCREEN_PIXMAPS,
+    XAAOPT_HAS_DUMB_INVERTED_OPTION_SENSE
 } XAAOpts;
 
 static const OptionInfoRec XAAOptions[] = {
@@ -89,6 +90,8 @@ static const OptionInfoRec XAAOptions[] 
                                OPTV_BOOLEAN,   {0}, FALSE },
     {XAAOPT_OFFSCREEN_PIXMAPS,         "XaaNoOffscreenPixmaps",
                                OPTV_BOOLEAN,   {0}, FALSE },
+    {XAAOPT_HAS_DUMB_INVERTED_OPTION_SENSE,    "XaaOffscreenPixmaps",
+                               OPTV_BOOLEAN,   {0}, FALSE },
     { -1,                              NULL,
                                OPTV_NONE,      {0}, FALSE }
 };
@@ -542,7 +545,8 @@ XAAInitAccel(ScreenPtr pScreen, XAAInfoR
 #define XAAMSG(s) do { if (serverGeneration == 1) xf86ErrorF(s); } while (0)
 
     if((infoRec->Flags & OFFSCREEN_PIXMAPS) && HaveScreenToScreenCopy &&
-               !xf86IsOptionSet(options, XAAOPT_OFFSCREEN_PIXMAPS)) {
+            xf86IsOptionSet(options, XAAOPT_HAS_DUMB_INVERTED_OPTION_SENSE))
+    {
        XAAMSG("\tOffscreen Pixmaps\n");
     } else {
        infoRec->Flags &= ~OFFSCREEN_PIXMAPS;


Home | Main Index | Thread Index | Old Index