zink: use real A8_UNORM when possible
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 10 Aug 2023 13:48:01 +0000 (09:48 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Aug 2023 16:42:27 +0000 (16:42 +0000)
commit252bff0f487763d11f0e4a995be0c42070751d87
treecdc2baf32d7bef6a34ccc1b74f898dac7344aa9f
parentf501f9453adc7024584e9d9598754c55c36d20f3
zink: use real A8_UNORM when possible

this is tricky because drivers are exposing their native support, but
that support may not fit the specific needs of the format

as such, (almost) every use of format where alpha emulation workarounds are
present now need to add a second layer of workarounds in order to handle
the case of possibly-genuine A8 (which might also be emulated A8 even if
the driver supports A8 for some things)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24685>
src/gallium/drivers/zink/zink_blit.c
src/gallium/drivers/zink/zink_clear.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_resource.c
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_surface.c
src/gallium/drivers/zink/zink_types.h