nvk: Rework descriptor writes
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:49 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000 (21:31 +0000)
commitee50fe7d8510638e86a6ecc8bbd9ed207e030282
treee34902b86d875a61cd9709f207dadd818f33fc20
parent7d6ea3fcf539a3cdafcb7d86d09f670d68c3728c
nvk: Rework descriptor writes

In particular, this makes us only touch the descriptor UBO memory as a
memcpy destination unless we're doing a descriptor copy.  This should be
much better for mapped GPU memory than the read-modify-write required by
our previous implementation of image descriptor writes with their 12:20
configuration.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_descriptor_set.c