[Mesa-dev] [PATCH 0/4] Make glsl-to-nir use the builder

Connor Abbott cwabbott0 at gmail.com
Sat Oct 31 15:32:27 PDT 2015

As glsl_to_nir was one of the first things written while getting NIR
working, it has a number of quirks, the chief one being that it (partly)
reimplements functionality that has been in nir_builder for a while now.
This patch series fixes that up, letting us use some of the nice helpers
that the builder has accumulated. In addition to being a nice cleanup,
this should make support for different bit-widths easier, since we don't
have to fix the half-baked builder in glsl_to_nir or do a hack like I
did in my fp64 series.

This series is also available at:

git://people.freedesktop.org/~cwabbott0/mesa glsl-to-nir-builder

Connor Abbott (4):
  nir/glsl: make evaluate_rvalue() return a nir_ssa_def *
  nir/glsl: convert nir_visitor::result to a nir_ssa_def *
  nir/glsl: make emit() take nir_ssa_def * sources
  nir/glsl: switch to using the builder

 src/glsl/nir/glsl_to_nir.cpp | 805 +++++++++++++++++--------------------------
 1 file changed, 320 insertions(+), 485 deletions(-)


More information about the mesa-dev mailing list