<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - "high fidelity": Segfault in _mesa_program_resource_find_name"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90925#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - "high fidelity": Segfault in _mesa_program_resource_find_name"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=90925">bug 90925</a>
              from <span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span></b>
        <pre>OK, now I know what is going on. This is actually major issue with the current
implementation. Like said in <a href="show_bug.cgi?id=90925#c4">comment #4</a>, we are creating ProgramResourceList
too early. Backend driver will still do optimization and is still able to
remove dead code, thus removing variables that are in the resource list.

The solution is to move resource list creation up in the linking to happen only
after backend LinkShader hook and remove symbol table usage from the list
creation (symbol table usage was just optimization instead of iterating whole
IR to find variables).</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>