asahi: Add agx_map_texture_{cpu,gpu} helpers
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 19 Jan 2022 00:00:08 +0000 (19:00 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 18 Feb 2022 23:48:32 +0000 (23:48 +0000)
commit062ca49ca7a252b281b98d1cd7540b454b3f0731
tree7c5e9165bd93f92fd0074028ea3a8a362479c4dd
parenta8bf729f8a528c893fa00440756658a50f703c09
asahi: Add agx_map_texture_{cpu,gpu} helpers

Streamline access to particular layer/levels. These patterns show up
across the driver and are easy to screw up, so add a helper.

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