aco: Remember VS/TCS output driver locations.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 30 Mar 2020 14:54:56 +0000 (16:54 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 11:51:04 +0000 (11:51 +0000)
commitfdbb2968533be9a1caca731cf11c2ed3b46e6043
tree22488c35f4524bc37085f98c0a9b83cec2e207c6
parentab07c4ea70897d8d8c4d40bd336aee38926278bf
aco: Remember VS/TCS output driver locations.

Instead of relying on calling shader_io_get_unique_index repeatedly,
remember the which output driver location corresponds to which
varying slot.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4388>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp