asahi: Augment PBE descriptor for software access
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 28 Jun 2023 19:39:57 +0000 (15:39 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jul 2023 15:33:28 +0000 (15:33 +0000)
commita77facd4599f5dbc530c3a769c9d2345885467d2
treea7a4fad518181971e72b257c46cd3297e23cccd6
parentee83453f69f8ef5c82c7e2b5cc90e9779c638b6d
asahi: Augment PBE descriptor for software access

For implementing image atomics (and multisample image writes), we need
information about the image layout in the shader. It's a lot nicer to determine
the image layouts on the CPU (where we have ail) and stash the results in the
PBE descriptor, where we have a convenient hole to do so, rather than trying to
do all the layout calculations on the GPU on the fly. Add a data structure that
the driver will fill out and the image atomic lowering will consider as part of
the hardware.

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