nir: gather all IO info from IO intrinsics
authorMarek Olšák <marek.olsak@amd.com>
Fri, 14 Aug 2020 23:31:46 +0000 (19:31 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 24 Aug 2020 19:07:18 +0000 (19:07 +0000)
commit17af07024dfc8302b37a270cea4ef3eae06fe5e2
tree5f9600b31a19d47bd2a5bb34a8ee6ef842007195
parent502abfce7f5df1811b619657e2e973916699dbc0
nir: gather all IO info from IO intrinsics

nir_io_add_const_offset_to_base will shrink num_slots, so it's better to
call it before nir_shader_gather_info.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6442>
src/compiler/nir/nir_gather_info.c