<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 --- - [UXA] Rendering to screen-sized pbuffer affects actual screen"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=73282">73282</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>[UXA] Rendering to screen-sized pbuffer affects actual screen
          </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>All
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>amonakov@gmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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=91488" name="attach_91488" title="reproducer">attachment 91488</a> <a href="attachment.cgi?id=91488&action=edit" title="reproducer">[details]</a></span>
reproducer

The attached testcase fills a GLX Pbuffer with 0x80 gray.  It never creates a
window and thus should not affect the screen.

However, passing actual screen dimensions in arguments:

    ./a.out 1920 1080

causes the screen to become gray (as if the pbuffer's contents became visible).
 It also "works" to pass actual screen width and a fraction of actual height,
in which case the top fraction of the screen becomes gray.  Passing 4096 4096
in my case caused the test to be killed with "bus error".  The window manager
(xfwm4, fluxbox) becomes non-functional after triggering the issue.

This is reproducible on IVB with UXA, but not SNA.

Is UXA, um, somehow misallocating buffers for the pbuffer or swapping Mesa's
offscreen buffers onscreen?  I'd try to debug it myself, but I have no idea how
to approach it.  Please let me know if additional info is required.</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>