<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [SNA TearFree] SDL fullscreen switch causes persistent display corruption"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=68777">68777</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[SNA TearFree] SDL fullscreen switch causes persistent display corruption
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xlinuxro@yahoo.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Driver/intel
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=84944" name="attach_84944" title="Xorg log">attachment 84944</a> <a href="attachment.cgi?id=84944&action=edit" title="Xorg log">[details]</a></span>
Xorg log

When SDL has a window open which is the same size as the screen and it switches
to fullscreen mode it sometimes breaks the driver and an Xorg restart is
required.  After the SDL application exits the whole screen continues to have
corrupted display.  It seems like old data from the window is sometimes
displayed.  Or sometimes just random image corruption appears.  It only happens
if the non-fullscreen SDL window is exactly 1920x1080 (the size of my screen). 
I noticed this problem when watching 1080p video with ffplay (from ffmpeg), but
I have created a small program to reproduce the bug have attached it to this
report.

Program versions (all from git):
Xorg: 1.14.2.902
xf86-video-intel: 2.21.15
libdrm: 2.4.46
pixman: 0.30.2
libXdamage: 1.1.4

$ uname -a
Linux namdle 3.10.10-namdle+ #5 SMP Fri Aug 30 21:12:29 EDT 2013 x86_64
GNU/Linux</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>