radeonsi: lower IO intrinsics - complete rewrite of input/output scanning
authorMarek Olšák <marek.olsak@amd.com>
Fri, 14 Aug 2020 22:09:39 +0000 (18:09 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Sep 2020 02:45:38 +0000 (22:45 -0400)
commit81d106d6ecab326c96fb9f8db8e7f39621c9816e
tree25cf4b265fe45d3e494528bc385ab058e9e63087
parent408fc4e3ac9aea0188c385b89ad888ba0f13bd94
radeonsi: lower IO intrinsics - complete rewrite of input/output scanning

Input and output info is gathered from intrinsics. nir_variables are
ignored (and we'll remove them anyway).

This is a prerequisite for ACO, but also makes the IR prettier.
The ac_nir_to_llvm change has to be in this commit.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6445>
src/amd/llvm/ac_nir_to_llvm.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm_tess.c
src/gallium/drivers/radeonsi/si_shader_nir.c
src/gallium/drivers/radeonsi/si_state_shaders.c