asahi: Shuffle IOGPU structs
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 11 Sep 2022 16:03:01 +0000 (12:03 -0400)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 18 Sep 2022 14:34:25 +0000 (10:34 -0400)
commit58d138334d92c18d183873fd70a0481f4edf7535
treeff544b9b9187f13aa4845ddc1fc430a7307906e2
parent287a0d4f40aa1cd48901a085e1a2afb2fde79fda
asahi: Shuffle IOGPU structs

We need the header to be common between gfx and compute, but everything
else seems to be different. Shuffle so we can decode compute without any
terrible hacks.

I don't know the exact layout and don't care: the layout of the fields
here is all software defined in macOS, even though the *values* are
defined by hardware (or firmware in a few cases).

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18623>
src/asahi/lib/cmdbuf.xml
src/asahi/lib/decode.c
src/gallium/drivers/asahi/magic.c