nir: Add an ALU lowering pass for mul_high.
authorEric Anholt <eric@anholt.net>
Tue, 8 May 2018 18:24:40 +0000 (11:24 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jun 2018 20:44:28 +0000 (13:44 -0700)
commit6e1597c2d9f5e14ffaf1c326985ee3203f995044
tree5e01c761ac0144b054680d3f529b93a06de999ad
parent6a0db5f08ffac7d43a5b937982262f357a21f95b
nir: Add an ALU lowering pass for mul_high.

This is based on the glsl/lower_instructions.cpp implementation, but
should be much more readable.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_alu.c [new file with mode: 0644]
src/mesa/state_tracker/st_glsl_to_nir.cpp