asahi: Add device abstraction
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 2 May 2021 16:30:22 +0000 (12:30 -0400)
committerAlyssa Rosenzweig <none>
Sun, 2 May 2021 21:41:21 +0000 (17:41 -0400)
commit26b19bda3068ecee3b10ff2eed6b5c4f027abcba
treed01674900d147ecc87b12ca5afaafb12666663d8
parent67dd70395f053470a54e917bb770ee131dfa8cf6
asahi: Add device abstraction

Over IOKit or DRM, primarily for memory allocation. Common between
Gallium and Vulkan.

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/asahi/lib/agx_device.c [new file with mode: 0644]
src/asahi/lib/agx_device.h [new file with mode: 0644]
src/asahi/lib/meson.build