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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9850>
This commit is contained in:
Samuel Pitoiset 2021-03-09 09:58:38 +01:00 committed by Marge Bot
parent 05ecb6780c
commit 37d48de83e

View file

@ -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