aco: Clean up emit_mbcnt.
authorTimur Kristóf <timur.kristof@gmail.com>
Sat, 12 Sep 2020 11:18:23 +0000 (13:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Sep 2020 12:19:24 +0000 (12:19 +0000)
commitf3780e7b8cfcc14580ace508ea1e9d197a1377c6
tree3f20fca8a5d954bfe9e3504987444619ce5e0e03
parentefa1c760d15fb645bed9d6c83e73a770b2fe0bd6
aco: Clean up emit_mbcnt.

Make it less error-prone and more consistent with other helpers.
Pass the masks as a single argument rather than two.
In wave64 mode, split the argument into low and high halves in
emit_mbcnt rather than where it is called.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6699>
src/amd/compiler/aco_instruction_selection.cpp