[Mesa-dev] [Bug 109929] tgsi_to_nir.c:2111: undefined reference to `gl_nir_lower_samplers_as_deref'

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 1 13:08:49 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=109929

--- Comment #12 from Timur Kristóf <venemo at msn.com> ---
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190401/56c83318/attachment.html>


More information about the mesa-dev mailing list