asm: Try to fix sparc assembly for inverse matrix operations
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 2 Dec 2020 22:38:07 +0000 (14:38 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Dec 2020 19:39:47 +0000 (11:39 -0800)
commit1e4cd12c8bf5c7ecf829f203b0162f7268da03cc
tree83f94811c30c6d2e56807a1df7c364e9e85cbcac
parent70762b826b6d2781de9e06f1dad5d5e741876704
asm: Try to fix sparc assembly for inverse matrix operations

This is completely untested!

In commit 3175b63a0dfa290430f9f7eb651387788933a02b, Marek stopped
allocating the GLmatrix::inv field with malloc, instead embedding
it directly in the structure.  So, we need to drop a level of
indirection here and use (matrix pointer + MATRIX_INV) as the
inverse matrix array directly, rather than reading a pointer at
that offset and chasing it.

Fixes: 3175b63a0df ("mesa: don't allocate matrices with malloc")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7889>
src/mesa/sparc/norm.S