<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [DRI2][PRIME] display black window when enable GPU offloading"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95069">95069</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[DRI2][PRIME] display black window when enable GPU offloading
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>xorg
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

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

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

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

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

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

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

        <tr>
          <th>Reporter</th>
          <td>qiang.yu@amd.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-gfx-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=123154" name="attach_123154" title="Xorg log">attachment 123154</a> <a href="attachment.cgi?id=123154&action=edit" title="Xorg log">[details]</a></span>
Xorg log

Laptop: DELL
OS: Ubuntu 16.04
CPU + iGPU: Intel i5-6300U
dGPU: AMD R5 M255

Reproduce:
fresh install Ubuntu 16.04
$ DRI_PRIME=1 glxgears
the output window is black. change focus to other window will make
the window content.

But two situation works fine:
1. use modesetting DDX for intel iGPU
2. recompile Intel DDX with "--enable-debug=full"

GDB into DDX:
in sna_share_pixmap_backing(), priv->pinned is set, so return FALSE.
But when I step through sna_pixmap_move_to_gpu(), the priv->pinned is
not set. It seems some race condition happens.</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>