aco: Use context variables instead of calculating TCS inputs/outputs.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 30 Mar 2020 14:11:14 +0000 (16:11 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Apr 2020 11:51:04 +0000 (11:51 +0000)
commitab07c4ea70897d8d8c4d40bd336aee38926278bf
tree3c3807f16f90cb0d10d854cc661be050073f3700
parentfd0248c37bfaa0dabbab11fc3060ebe52443eb05
aco: Use context variables instead of calculating TCS inputs/outputs.

VS needs the number of TCS inputs, and TES needs the number of TCS
outputs.

It is error-prone to repeat those calculations in both instruction
selection and setup. Just set them in one place instead.

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