nir: add bit_size_src for when the destination bit size matches a source
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 7 Sep 2020 12:25:59 +0000 (13:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 26 Nov 2020 17:50:38 +0000 (17:50 +0000)
commit3ec217a849896a469ceb8afc5a3caa811f0df214
tree589bb02be984f8c2b6e66c5ed04c8c9f990e9252
parent898d7c1f493b8d06168c2256404d448888183bd9
nir: add bit_size_src for when the destination bit size matches a source

If bit_size_src is not -1, then it's the index of the source the
destination bit size can be expected to match. This will be useful for
generating intrinsic builders

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6587>
src/compiler/nir/nir.h
src/compiler/nir/nir_intrinsics.py
src/compiler/nir/nir_intrinsics_c.py
src/compiler/nir/nir_validate.c