nir: add array lowering function that assumes there are no indirects

Graphics / Mesa 3D Graphics Library / Mesa - Timothy Arceri [itsqueeze.com] - 4 December 2017 01:52 EST

The gallium glsl->nir pass currently lowers away all indirects on both inputs and outputs. This fuction allows us to lower vs inputs and fs outputs and also lower things one stage at a time as we don't need to worry about indirects on the other side of the shaders interface.

2bc49ac3e6 nir: add array lowering function that assumes there are no indirects
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_lower_io_arrays_to_elements.c | 44 +++++++++++++++++++++-
2 files changed, 44 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share