Shamelessly ripped off from Eric Anholt's tgsi_to_nir pass.
This is not built on SCons, like the rest of NIR.
v2:- Delete redundant c->s, c->impl, and c->cf_node_list pointers (Ken)- Use nir_builder directly instead of ptn_compile in more places (Ken)- Drop 'struct' keyword in front of nir_builder (ken)- Add a file level Doxygen comment (Ken)- Use scalar constants instead of splatting (Eric)- Use nir_builder helpers for constants, moves, and swizzles (Connor)
v3: Minor indentation improvements.
faf6106 nir: Implement a Mesa IR -> NIR translator.
src/mesa/Makefile.am | 2 +
src/mesa/Makefile.sources | 5 +
src/mesa/program/prog_instruction.h | 2 +
src/mesa/program/prog_to_nir.c | 1097 +++++++++++++++++++++++++++++++++++
src/mesa/program/prog_to_nir.h | 37 ++
5 files changed, 1143 insertions(+)
Upstream: cgit.freedesktop.org