radv: enable DCC for concurrent images on GFX10

The driver now supports DCC stores on GFX10 that means that we can
keep DCC compressed on all layouts/queues.

This should help games which use aync compute or which declare
all images as concurrent like Youngblood.

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 10:16:18 +01:00
committed by Marge Bot
parent 37d48de83e
commit da166f648f

View File

@@ -149,7 +149,12 @@ radv_image_use_fast_clear_for_image(const struct radv_device *device,
}
return image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT &&
image->exclusive;
(image->exclusive ||
/* Enable DCC for concurrent images if stores are
* supported because that means we can keep DCC compressed on
* all layouts/queues.
*/
radv_image_use_dcc_image_stores(device, image));
}
bool