<p dir="ltr"><br>
On Nov 25, 2015 1:27 PM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
><br>
> Hello all,<br>
><br>
> Some of us have been thinking about moving nir out of glsl, and fleshing<br>
> out some common helper (static library) that is use by both. So here it<br>
> is - src/compiler.<br>
><br>
> The modules (libcompiler, libnir and libglsl) are unfortunately not<br>
> really independent.<br>
> - libcompiler - compile time (mesa ir, glsl ir, util), link - util<br>
> - libglsl - compile (compiler, mesa ir, util), link - compiler, util<br>
> - libnir - compile (compiler, mesa ir, glsl ir, util), link - compiler,<br>
> util</p>
<p dir="ltr">Thanks for working on this! Before I make comments, its worth noting that the biggest churn is just moving files. If we don't have the linking details figured out, that shouldn't block landing the file churn.</p>
<p dir="ltr">I was kind of hoping that we could have a libnir that doesn't require glsl. It would be good for freedreno and vc4 among other things. Maybe split things up differently?</p>
<p dir="ltr">- libcompilerutil: just glsl_types and shader_enums<br>
- libglsl<br>
- libnir<br>
- libcompiler</p>
<p dir="ltr">Neither libglsl nor libnir should depend on the other. If you want everything, you use libcompiler which would depend on both libglsl and libnir and also bring in glsl_to_nir.</p>
<p dir="ltr">Would that be practical? (I don't know autotools or libtool all that well.)</p>
<p dir="ltr">> With the above in mind the headers are extremely fragile. Despite that<br>
> things work fine based on my testing.<br>
><br>
> Note: the series depends (some some trivial dependencies) on the<br>
> no-extern-c patches send yesterday.<br>
><br>
> This lot (incl. the requirement) can be found in branch nir-glsl-move at<br>
> <a href="https://github.com/evelikov/Mesa/">https://github.com/evelikov/Mesa/</a><br>
><br>
> Comments, suggestions and ack/nak of the idea and approach are<br>
> appreciated.<br>
><br>
> Cheers,<br>
> Emil<br>
><br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</p>