aco: add emit_load helper
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 16 Apr 2020 18:51:02 +0000 (19:51 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 18:52:54 +0000 (18:52 +0000)
commit542733dbbf7ae49e2df81da6dde31aa2dcd9afe8
tree23f6273194d95cb2c37e1e7c248af83d59e658b2
parentb77d638e1bacfdaffd010b72264ab4c0a5745e73
aco: add emit_load helper

This helper is used for recombining split loads, passing the result to
p_as_uniform, aligning the offset down and shifting it right if needed and
handling large constant offsets.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4639>
src/amd/compiler/aco_instruction_selection.cpp