freedreno/registers: use macro instead of inline function for array regs
authorJonathan Marek <jonathan@marek.ca>
Mon, 11 Jan 2021 17:49:57 +0000 (12:49 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Feb 2021 04:04:02 +0000 (04:04 +0000)
commit72f00fe72e602c736c407812c854198f8e2e7c11
tree0f8cdd03bcbf342b4e203ebee12be0dd309cb59f
parent79921b81bcf8377c41880b3c15bef163b5e8ff3f
freedreno/registers: use macro instead of inline function for array regs

This is to allow use in places where an inline function isn't allowed,
such as a static initializer.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8423>
src/freedreno/registers/gen_header.py