asahi: Add some magic IOGPU routines
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 27 Apr 2021 22:48:11 +0000 (18:48 -0400)
committerAlyssa Rosenzweig <none>
Sun, 2 May 2021 21:41:22 +0000 (17:41 -0400)
commit13f5b17078b31f68d742f55fd1fa993a8f1529b0
treeb0a55fe4c74cdf75975341d95b168d361233103c
parent7949fa4f9f9b891c7eb4038e42a852e8dd9e643e
asahi: Add some magic IOGPU routines

These turned out to be software defined structures consumed by the macOS
kernel (specifically, by IOGPUCommandQueue). I'm a bit bothered by the
sheer amount of random hex flying about, though Hector made some
progress on deciphering the structure. Nevertheless there's some comfort
knowing it's not actual hardware magic.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10582>
src/gallium/drivers/asahi/magic.c [new file with mode: 0644]
src/gallium/drivers/asahi/magic.h [new file with mode: 0644]
src/gallium/drivers/asahi/meson.build