<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - VkRunner tests assert when run with nir test environment variables"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108957#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - VkRunner tests assert when run with nir test environment variables"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=108957">bug 108957</a>
              from <span class="vcard"><a class="email" href="mailto:jason@jlekstrand.net" title="Jason Ekstrand <jason@jlekstrand.net>"> <span class="fn">Jason Ekstrand</span></a>
</span></b>
        <pre>This is entirely due to the way we handle hanging onto the entrypoint we get
out of SPIR-V.  The spirv_to_nir pass returns a nir_function_impl instead of a
nir_shader and we hang on to it while we do a couple of passes such as function
inlining.  We then go to delete all but the main entrypoint assuming that the
nir_function_impl pointer we're hanging on to is still valid.  If
NIR_TEST_CLONE is set, it won't be valid because it will have been cloned out
from under us.  This isn't an actual issue in production, but we should
probably sort out what to do about it one of these days.</pre>
        </div>
      </p>


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

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