aco: use Info::definition_size instead of definition's regclass
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 15 May 2020 14:25:44 +0000 (15:25 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 15:05:11 +0000 (15:05 +0000)
commitedf863d1d29f7afbca2d53dca963e8fa0362b8a6
treeec863494d7d3c0bbacab6c6d7dd1d920fe833bcd
parent207c35cbe85db944d4c58b54f7f9a289bd50e18f
aco: use Info::definition_size instead of definition's regclass

16-bit abs/neg creates v_xor_b32/v_and_b32 with v2b definitions. These
instructions never do partial writes without SDWA.

No shader-db changes.

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/5040>
src/amd/compiler/aco_register_allocation.cpp
src/amd/compiler/aco_validate.cpp