broadcom/qpu: add pack/unpack support for v71
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 7 Aug 2021 00:20:39 +0000 (02:20 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:41 +0000 (22:37 +0000)
commit3b20208f03f69bab3dd22d28344cc3a01c321d28
treedd4e3d3c8b6c4eb069a3789e5082471b06463fba
parentc07eb1bae5ef45a33a939f1ab2f9a6775627925c
broadcom/qpu: add pack/unpack support for v71

Note that we provide new v71 alu pack/unpack methods. As there are a
lot that it is equivalent, initially we tried to use existing methods
as template and add version checks on the existing methods. At some
early point that become just really unreadable, so it become better to
just provide new methods, even if v42 and v71 methods have a really
similar structure.

Note that we have splitted the op tables, and created a two (add/mul)
for v71. As the description struct include versioning info, we could
have just used one table. But, specially with the add table, there are
a lot of differences with v71. So it is slightly tidier this
way. Also, taking into account that we do a linear search on the
tables, this can be even justified by performance.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/qpu/qpu_pack.c