Module: Mesa Branch: master Commit: 37d48de83e438aab3b3d523851c4e27fcb80ca97 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=37d48de83e438aab3b3d523851c4e27fcb80ca97
Author: Samuel Pitoiset <[email protected]> Date: Tue Mar 9 09:58:38 2021 +0100 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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9850> --- 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
