<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Xorg crashes with reverse PRIME (intel+nouveau) and OpenGL/VA-API"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92296#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Xorg crashes with reverse PRIME (intel+nouveau) and OpenGL/VA-API"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92296">bug 92296</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>If I am right, the gist of the issue is:

diff --git a/present/present.c b/present/present.c
index beb01dc..de37abc 100644
--- a/present/present.c
+++ b/present/present.c
@@ -724,7 +724,7 @@ present_pixmap(WindowPtr window,

     if (!screen_priv || !screen_priv->info)
         target_crtc = NULL;
-    else if (!target_crtc) {
+    else if (!target_crtc || target_crtc->pScreen != screen) {
         /* Update the CRTC if we have a pixmap or we don't have a CRTC
          */
         if (!pixmap)</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>