nir/lower_io: Add "explicit" IO lowering
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Nov 2018 03:31:42 +0000 (21:31 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:30 +0000 (00:38 +0000)
commitf393b10b3f8713d658240bc889b7dbb455ef2d42
tree0e8870240b2d98dfe793d3975263b76e20da0434
parent52dd43c7ef39ab2432449a557660260e054f262a
nir/lower_io: Add "explicit" IO lowering

This new pass is for lowering explicitly laid out memory coming in from
SPIR-V or a similar source.  It's quite a bit more complicated than the
normal lower_io because we have to be able to handle matrices.  The
way the stride information is stored for matrices is awkward and dealing
with row-major matrices is especially painful.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io.c