<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - [regression] DRI2 races"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78992#c32">Comment # 32</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED --- - [regression] DRI2 races"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=78992">bug 78992</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>Hmm. How about?

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index 85492b5..597bc1d 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -1999,7 +1999,7 @@ sna_dri2_schedule_flip(ClientPtr client, DrawablePtr
draw, xf86CrtcPtr crtc,
                DBG(("%s: performing immediate swap on pipe %d, pending? %d,
mode: %d\n",
                     __FUNCTION__, pipe, info != NULL, info ? info->mode : 0));

-               if (info && info->draw == draw) {
+               if (info && info->draw == draw && 0) {
                        assert(info->type != FLIP);
                        assert(info->front == front);</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>