aco: reorder calls to aco_validate() and cleanup aco_compile_shader()
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 16 Jun 2020 09:03:00 +0000 (10:03 +0100)
committerDaniel Schürmann <daniel@schuermann.dev>
Tue, 16 Jun 2020 13:46:19 +0000 (14:46 +0100)
commit0e47fe3fa216e5ce76b3e3a289c986539d7d34c6
tree609139e2fe478a4f3fda5e420ffa24a4cc60bc7b
parentec628aba76e3526d85938ec12870267c34806a1d
aco: reorder calls to aco_validate() and cleanup aco_compile_shader()

The first call of aco_validate should happen after phi lowering.
Otherwise, subdword restrictions might be violated

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5496>
src/amd/compiler/aco_interface.cpp