asahi: Move a bunch of helpers to common
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 6 Jul 2023 12:26:09 +0000 (08:26 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 20:31:27 +0000 (20:31 +0000)
commitaeac45c188b08746ab22b287e62c118f7465135b
tree482af96ca360e5bed2f1fe936bd64d3c91226035
parente5f76821f1eeefae34b1c0f8241e0615625252b3
asahi: Move a bunch of helpers to common

These have no real Vulkan or Gallium dependence and are (as such) useful for
both VK and GL without any real change in level of abstraction. Do the code
motion.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24635>
src/asahi/lib/agx_helpers.h
src/gallium/drivers/asahi/agx_state.c