From 37d48de83e438aab3b3d523851c4e27fcb80ca97 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 9 Mar 2021 09:58:38 +0100 Subject: [PATCH] radv: simplify a check when enabling DCC for concurrent images If the image is marked as concurrent, each element of pQueueFamilyIndices must be unique, so queue_family_mask is different than 1. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index b8d0590a80f..fc3df77611e 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -149,7 +149,7 @@ radv_image_use_fast_clear_for_image(const struct radv_device *device, } return image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT && - (image->exclusive || image->queue_family_mask == 1); + image->exclusive; } bool