mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 05:30:24 +01:00
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:
parent
05ecb6780c
commit
37d48de83e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue