<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [DRI2][PRIME] display black window when enable GPU offloading"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95069#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [DRI2][PRIME] display black window when enable GPU offloading"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95069">bug 95069</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Try with just:

diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 48dcb58..1e9546d 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1098,6 +1098,8 @@ static unsigned small_copy(const RegionRec *region)
 }

 #ifdef CREATE_PIXMAP_USAGE_SHARED
+#undef DBG
+#define DBG(x) ErrorF x
 static Bool
 sna_share_pixmap_backing(PixmapPtr pixmap, ScreenPtr slave, void **fd_handle)
 {
@@ -1290,6 +1292,8 @@ sna_create_pixmap_shared(struct sna *sna, ScreenPtr
screen,

        return pixmap;
 }
+#undef DBG
+#define DBG(x)
 #endif

 static PixmapPtr sna_create_pixmap(ScreenPtr screen,</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>