asahi: Refactor PBE upload routine
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Fri, 19 May 2023 18:09:17 +0000 (14:09 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 15:33:27 +0000 (15:33 +0000)
commitd33375bb052df0e9a4812ad15816bb2dd36d63fe
tree797c58bf88deb6eaa76dde32a65d522d7fd9962a
parent85c829d64f6ce8eaab4a07ab75815018d3c43d87
asahi: Refactor PBE upload routine

In general, PBE descriptors map pipe_image_views for the hardware. That we use a
writeable shader image internally for render targets is an implementation-detail
of the end-of-tile program. So, refactor the PBE upload routine to take a
pipe_image_view (not a pipe_surface), and translate the pipe_surface into an
internal pipe_image_view for end-of-tile programs.

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