<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Trine 2's fragment normal buffer is mixtextured on Radeon HD 6770 (Juniper)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66067#c28">Comment # 28</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Trine 2's fragment normal buffer is mixtextured on Radeon HD 6770 (Juniper)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66067">bug 66067</a>
              from <span class="vcard"><a class="email" href="mailto:daniel@constexpr.org" title="Daniel Scharrer <daniel@constexpr.org>"> <span class="fn">Daniel Scharrer</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=110801" name="attach_110801" title="LD_PRELOAD library to fix Trine's ARB shaders">attachment 110801</a> <a href="attachment.cgi?id=110801&action=edit" title="LD_PRELOAD library to fix Trine's ARB shaders">[details]</a></span>
LD_PRELOAD library to fix Trine's ARB shaders

Trine Enchanted Edition (port/remake of Trine 1 in the Trine 2 engine) has the
same lighting problem.

Since the attached radeonsi patch no longer applies, I have created a small
LD_PRELOAD library to change all instances of " SHADOW2D;" to "       2D;" in
ARB shaders. Using this confirms that it's still the same bug.

Obviously fglrx somehow silently falls back to non-shadow samplers. Is this
also the case for the nvidia driver with ARB shaders or does that just get fed
Cg shaders directly? If so, would it be feasible for Mesa to include something
like the "Handle sampler depth compare mode" but for ARB shaders only? Or at
least a drirc option - either to decide based on the compare mode or to disable
shadow samplers completely?</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>