<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - tgsi_to_nir.c:2111: undefined reference to `gl_nir_lower_samplers_as_deref'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109929#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - tgsi_to_nir.c:2111: undefined reference to `gl_nir_lower_samplers_as_deref'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=109929">bug 109929</a>
from <span class="vcard"><a class="email" href="mailto:venemo@msn.com" title="Timur Kristóf <venemo@msn.com>"> <span class="fn">Timur Kristóf</span></a>
</span></b>
<pre>Jan, the commit you linked adds a dependency from the gallium auxiliary lib to
the glsl compiler. This is required by tgsi_to_nir for calling
gl_nir_lower_samplers and gl_nir_lower_samplers_as_deref, otherwise tgsi_to_nir
cannot produce NIR that works on either radeonsi or iris.
I realize this may be unfortunate, but the good thing is that (as far as I see)
mesa is linked with --gc-sections which means that the linker will remove the
unnecessary code from all binaries where it is not actually used.
Ideally though, only the drivers (and state trackers) that actually call
tgsi_to_nir should need the dependency. If you have a suggestion on how to
better organize the code to avoid this problem, please let me know.</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>