Mesa (main): radv: enable comp-to-single for MSAA images
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 13 17:20:13 UTC 2021
Module: Mesa
Branch: main
Commit: b269f59ec56f8d596b8aacfc2981dd032cd8a0d6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b269f59ec56f8d596b8aacfc2981dd032cd8a0d6
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri Aug 20 08:56:10 2021 +0200
radv: enable comp-to-single for MSAA images
This allows fast clears for concurrent MSAA images.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12483>
---
src/amd/vulkan/radv_image.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 664882aa0f6..7e75649d36e 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -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)
More information about the mesa-commit
mailing list