nir: promote intrinsic_get_var() to helper
authorRob Clark <robdclark@gmail.com>
Thu, 5 Apr 2018 00:40:33 +0000 (20:40 -0400)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
commit95683bdce347cb706453479b660b05cda738ade4
treed239a4350a933b84951917a51e61642df764f413
parent5a02ffb733eccb03fdfa568cc33a231d9210c4ae
nir: promote intrinsic_get_var() to helper

Useful in a few other places.. let's not copy-pasta

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h
src/compiler/nir/nir_propagate_invariant.c