<p dir="ltr"><br>
On Nov 27, 2015 10:16 AM, "Emil Velikov" <<a href="mailto:emil.l.velikov@gmail.com">emil.l.velikov@gmail.com</a>> wrote:<br>
><br>
> On 27 November 2015 at 17:54, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> ><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<br>
> ><br>
> > Thanks for working on this! Before I make comments, its worth noting that<br>
> > the biggest churn is just moving files. If we don't have the linking<br>
> > details figured out, that shouldn't block landing the file churn.<br>
> ><br>
> > I was kind of hoping that we could have a libnir that doesn't require glsl.<br>
> > It would be good for freedreno and vc4 among other things. Maybe split<br>
> > things up differently?<br>
> ><br>
> One of us is getting confused here.<br>
><br>
> NIR does _not_ depend during link time on glsl and vice-versa (as per<br>
> above list).</p>
<p dir="ltr">OK, that wasn't clear. Where does glsl_to_nir go then? Does it not actually need to link against libglsl? I could believe it but it does have to link against NIR.</p>
<p dir="ltr">> To remove the compile-time dependency, I've spent a fair bit of time<br>
> trying to flesh things out. Yet that's not possible without rewriting<br>
> substantial hunks of glsl, nir and mesa.</p>
<p dir="ltr">That's fine. I know that's a lot of work so don't worry about it for now.</p>
<p dir="ltr">> > - libcompilerutil: just glsl_types and shader_enums<br>
> > - libglsl<br>
> > - libnir<br>
> > - libcompiler<br>
> ><br>
> > Neither libglsl nor libnir should depend on the other. If you want<br>
> > everything, you use libcompiler which would depend on both libglsl and<br>
> > libnir and also bring in glsl_to_nir.<br>
> ><br>
> > Would that be practical? (I don't know autotools or libtool all that well.)<br>
> ><br>
> With the above said I'm not sure how I can comment on this. Sorry :-(<br>
><br>
> Thanks<br>
> Emil<br>
</p>