nir: Move intel's intrinsic_image_coordinate_components() to core nir.
authorEric Anholt <eric@anholt.net>
Wed, 5 Feb 2020 23:46:40 +0000 (15:46 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Feb 2020 18:25:02 +0000 (18:25 +0000)
commit3e16434acdd549f2721efc4ec80dc11fca1321f6
tree09dc1b4424eb1cedf3cebba8986094180ae76afd
parenta7038403204b7f2017cdd390a911f2393a8f6513
nir: Move intel's intrinsic_image_coordinate_components() to core nir.

This is a query that both Intel and freedreno need to do.  We can simplify
it a lot with the new glsl_get_sampler_dim_coordinate_components()

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3728>
src/compiler/nir/nir.c
src/compiler/nir/nir.h
src/intel/compiler/brw_fs_nir.cpp