Module: Mesa Branch: main Commit: 00faefa08e78b5af370851bb2cd888002598d9c7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=00faefa08e78b5af370851bb2cd888002598d9c7
Author: Bas Nieuwenhuizen <b...@basnieuwenhuizen.nl> Date: Wed Jun 8 00:37:50 2022 +0200 radv: Remove the sparse binding queue from coherent images. Never access the image on the queue family, so no need. (Technically not sure if this is needed for Vulkan, somewhat of a backstop in case apps do it) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16935> --- src/amd/vulkan/radv_image.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 66c0cde8fbb..511a6bb166a 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -1933,6 +1933,9 @@ radv_image_create(VkDevice _device, const struct radv_image_create_info *create_ else image->queue_family_mask |= 1u << vk_queue_to_radv(device->physical_device, pCreateInfo->pQueueFamilyIndices[i]); + + /* This queue never really accesses the image. */ + image->queue_family_mask &= ~(1u << RADV_QUEUE_SPARSE); } const VkExternalMemoryImageCreateInfo *external_info =