From b44dc98cde52c409fb7bc82d2972f8f5dfbdc099 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 15 Apr 2025 08:49:38 +0200 Subject: [PATCH] radv/sdma: remove redundant check for compression when getting metadata It's already checked by the caller. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_sdma.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/amd/vulkan/radv_sdma.c b/src/amd/vulkan/radv_sdma.c index fb827497345..f9656a1a469 100644 --- a/src/amd/vulkan/radv_sdma.c +++ b/src/amd/vulkan/radv_sdma.c @@ -195,11 +195,6 @@ radv_sdma_get_metadata_config(const struct radv_device *const device, const stru { const struct radv_physical_device *pdev = radv_device_physical(device); - if (!pdev->info.sdma_supports_compression || - !(radv_dcc_enabled(image, subresource.mipLevel) || radv_htile_enabled(image, subresource.mipLevel))) { - return 0; - } - const VkFormat format = vk_format_get_aspect_format(image->vk.format, subresource.aspectMask); const struct util_format_description *desc = radv_format_description(format);