From e227f2cc721de0c915df065b772a3d89dec79167 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 20 May 2024 15:40:38 +0200 Subject: [PATCH] radv: remove redundant check for VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 on GFX6-10 ac_get_cb_format() already returns V_028C70_COLOR_INVALID. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index 543c5497c8e..b76d6b9f091 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -456,9 +456,6 @@ radv_is_colorbuffer_format_supported(const struct radv_physical_device *pdev, Vk } else *blendable = true; - if (format == VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 && pdev->info.gfx_level < GFX10_3) - return false; - return color_format != V_028C70_COLOR_INVALID && color_swap != ~0U && color_num_format != ~0; }