zink: handle mutable swapchain images with dmabuf
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 27 Jul 2022 18:57:06 +0000 (14:57 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 Aug 2022 17:25:27 +0000 (17:25 +0000)
commit28ee911ad67192bc7a0683b6061b89e372482faf
tree5d55ddf99849b7c28c12b9e22f1e600a0e9f970d
parent0a4e599918c779385616479c3cb9604d8ebabd64
zink: handle mutable swapchain images with dmabuf

if a non-kopper swapchain image supports srgb, add a VkImageFormatListCreateInfo
to permit srgb mutability and avoid violating spec

cc: mesa-stable

Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17773>
src/gallium/drivers/zink/zink_resource.c