<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 - DRI_PRIME causes X Error of failed request: BadAlloc (insufficient resources for operation)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102008">102008</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DRI_PRIME causes X Error of failed request:  BadAlloc (insufficient resources for operation)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>17.2
          </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>critical
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/radeonsi
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bartos.petr@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>dri-devel@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi,
I'm on Fedora using git mesa from  che/mesa Copr repository. From build based
on commit 5ffe0c9 I am encountering problem with using discrete Radeon R5 M240
via DRI_PRIME. When using wine, it crashes with message:

X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  148 ()
  Minor opcode of failed request:  2
  Serial number of failed request:  4615
  Current serial number in output stream:  4616

Steam via wine with DRI_PRIME starts, but crashes whenever any game is started
or when system information dialog is invoked (with above message).

Native Steam with DRI_PRIME does not start at all, some native games work
(Amnesia), some not (Serious Sam Fusion), however message printed when using
wine does not appear.

Last mesa built which works for me is based on commit 7250cba.

I'm using modesetting driver for both GPUs. Programs with DRI_PRIME starts when
DRI3 is disabled via LIBGL_DRI3_DISABLE, however in that case image is
distorted and thus unusable.

I thought it might be some problem related to 101867 or 101876, however these
should be fixed and latest mesa build based on commit b8bea9a still does not
work for me.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>