radv: enable comp-to-single for MSAA images

This allows fast clears for concurrent MSAA images.

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/12483>
This commit is contained in:
Samuel Pitoiset 2021-08-20 08:56:10 +02:00 committed by Marge Bot
parent de8865df56
commit b269f59ec5

View file

@ -1449,10 +1449,6 @@ radv_image_use_comp_to_single(const struct radv_device *device, const struct rad
if (!radv_image_has_dcc(image))
return false;
/* TODO: DCC fast clears with MSAA aren't fully supported. */
if (image->info.samples > 1)
return false;
/* It seems 8bpp and 16bpp require RB+ to work. */
unsigned bytes_per_pixel = vk_format_get_blocksize(image->vk_format);
if (bytes_per_pixel <= 2 && !device->physical_device->rad_info.rbplus_allowed)