aco: add and use RegClass::get() helper
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 14 Apr 2020 19:32:39 +0000 (20:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Apr 2020 18:52:54 +0000 (18:52 +0000)
commitb77d638e1bacfdaffd010b72264ab4c0a5745e73
treed18be57b63fd6ec4c79a644a019cff2772d24944
parent69b92db131b00fcfb64d77f876e51770d2f0aa5b
aco: add and use RegClass::get() helper

Eventually, we'll probably want to replace the current
RegClass(type, size) constructor with this.

This has a functional change in that get_reg_class() now creates v1/v2
instead of v4b/v8b.

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_setup.cpp
src/amd/compiler/aco_ir.h