<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNA] segfault in git master (b3d3c0e8e75)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=80325#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNA] segfault in git master (b3d3c0e8e75)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=80325">bug 80325</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>I think the right fix is:

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index c540799..d05305e 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -1410,7 +1410,10 @@ sna_crtc_disable(xf86CrtcPtr crtc)
                sna->mode.dirty = true;
        }

+       sna_crtc->transform = false;
+
        assert(sna_crtc->dpms_mode == DPMSModeOff);
+       assert(!sna_crtc->shadow);
 }</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>