On Tue, May 23, 2017 at 12:07 AM, Timothy Arceri <tarc...@itsqueeze.com> wrote:
> 3. The GLSL IR opts are both slow and not always optimal (possibly
> transforming the code to something that's harder to opt later), but due to
> uniform/varying optimisation requirements some optimisations are required
> *before* we can do validation. With NIR we have an opportunity to do these
> optimisations in NIR either by building a nir based linker for the final
> linking stage (uniform/varying validation/location assignment) or by a
> little bit of back and forth of information between NIR and GLSL IR. This is
> something that can't really be done with LLVM/Gallium. I was working towards
> this while at Collabora.

If you really want to have a NIR-based linker for all drivers, the
easiest way to get there is to add NIR-to-TGSI (for Gallium) and
NIR-to-MESA-IR (for old classic drivers).

Marek
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to