<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Flickering Shadows in The Talos Principle"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93594#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Flickering Shadows in The Talos Principle"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93594">bug 93594</a>
              from <span class="vcard"><a class="email" href="mailto:maraeo@gmail.com" title="Marek Olšák <maraeo@gmail.com>"> <span class="fn">Marek Olšák</span></a>
</span></b>
        <pre>(In reply to Michel Dänzer from <a href="show_bug.cgi?id=93594#c9">comment #9</a>)
<span class="quote">> Note that AFAIK using things like derivatives in non-uniform control flow
> isn't supported by GLSL. What's the original GLSL shader?</span >

True.

The GLSL shader is using discard followed by fwidth. This is undefined
behavior.

Therefore, it's an application bug.

The easy workaround would be to disable register allocation in st/mesa to get a
quasi-SSA form and trivially move KILL_IF to the end of the shader if the app
is detected to be Talos Principle.</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>