radv/sdma: remove redundant check for compression when getting metadata

It's already checked by the caller.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34517>
This commit is contained in:
Samuel Pitoiset 2025-04-15 08:49:38 +02:00 committed by Marge Bot
parent d3d5d2fe86
commit b44dc98cde

View file

@ -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);