nir: add array lowering function that assumes there are no indirects
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 15 Nov 2017 03:28:01 +0000 (14:28 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 4 Dec 2017 01:52:18 +0000 (12:52 +1100)
commit2bc49ac3e6a6c8f93a2f32d62555bd653faf8d3e
tree9caed5a39297aac2b94d2105331dcff72edf123a
parentf13790c92ff1433a0fbff35788761b75df567c44
nir: add array lowering function that assumes there are no indirects

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.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io_arrays_to_elements.c