<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 - Crash in vkCmdPipelineBarrier on ANV vulkan driver"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=104346">104346</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash in vkCmdPipelineBarrier on ANV vulkan driver
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>17.3
          </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/Vulkan/intel
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>jason@jlekstrand.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=136315" name="attach_136315" title="Stack trace of crash">attachment 136315</a> <a href="attachment.cgi?id=136315&action=edit" title="Stack trace of crash">[details]</a></span>
Stack trace of crash

My PSP emulator PPSSPP has supported Vulkan for a while, working successfully
on many GPUs on Android and Windows. Recently started implementing support for
using Vulkan on Linux, which is of course just a matter of initializing it
properly, and then using the same code.

Only, it appears to crash on Intel ANV:
<a href="https://github.com/hrydgard/ppsspp/pull/10413#issuecomment-352527802">https://github.com/hrydgard/ppsspp/pull/10413#issuecomment-352527802</a> 

The emulator manages to render the UI correctly but crashes when trying to go
in-game.

It crashes directly when calling vkCmdPipelineBarrier, transitioning an image
from UNDEFINED to TRANSFER_DST_OPTIMAL which should be a pretty standard
operation, so it's quite strange.

I've also attached that full stack trace to this bug as an attachment. Top 2
frames are:

#0  anv_reloc_list_add (list=list@entry=0x555556d62338, alloc=<optimized out>, 
    offset=16420, target_bo=0x0, delta=0) at vulkan/anv_batch_chain.c:159
#1  0x00007fffddaf9f6c in blorp_surface_reloc (batch=0x7fffffffc860, delta=0, 
    ss_offset=<optimized out>, address=...) at vulkan/genX_blorp_exec.c:60

To reproduce, clone (recursively) ppsspp from the branch referred to in the
pull request above, build, and run, on a machine with the Intel ANV vulkan
driver. Free homebrew games to try can be installed from the "Homebrew & Demos"
tab once the emulator is running.

Driver version in the bug report is 17.3.99.</pre>
        </div>
      </p>


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

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