nir: add nir_num_variable_modes and nir_var_mem_push_const
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 19 Mar 2019 20:24:35 +0000 (20:24 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 25 Nov 2019 13:59:11 +0000 (13:59 +0000)
commitc14f823ee5e109a0051225a24685e3fa015abb49
tree41e89f97a76d7301188329c3b3ce06efa3c3d456
parent01eb6ef8700fa850ea63cdf0e6a4be1af2b26e9a
nir: add nir_num_variable_modes and nir_var_mem_push_const

These will be useful in the upcoming load/store vectorizer.

v11: rebase

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.c
src/compiler/nir/nir.h