nir: Add a nir_src_as_intrinsic() helper
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 17 Apr 2019 22:18:19 +0000 (17:18 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 18 Apr 2019 17:12:44 +0000 (17:12 +0000)
commitc6463f8ac2a9f85874c882fd5307eefb29f86bc1
tree63a286384c4e9ffa41d3001bc1b308b7571cb07e
parent85c35885b383477ac4f92a11695fc85c6d45c98c
nir: Add a nir_src_as_intrinsic() helper

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_find_array_copies.c
src/compiler/nir/nir_split_vars.c
src/compiler/nir/tests/vars_tests.cpp
src/intel/compiler/brw_fs_nir.cpp