asahi: Put meta shader keys into the meta shader itself
authorAsahi Lina <lina@asahilina.net>
Wed, 14 Dec 2022 04:28:26 +0000 (13:28 +0900)
committerMarge Bot <emma+marge@anholt.net>
Sat, 17 Dec 2022 18:10:28 +0000 (18:10 +0000)
commit9fc2c0f341049ab752117a6162d3443d6a7cd69f
tree32191c1dd8ed69451e35cba6c9ebf16130ec5745
parentc12153cd89254102e3dd2422d5b4ec4d1b63c8bf
asahi: Put meta shader keys into the meta shader itself

The hash table needs a key pointer with at least the lifetime of the
hash entry, which the key pointer we get does not have (since it is
stack-allocated by agx_build_meta). Copy it into the shader struct
itself and use that for the hash table.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20365>
src/asahi/lib/agx_meta.c
src/asahi/lib/agx_meta.h