From 8f39e3a0f3aff238e3e4cd9960f957ce78da1580 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 20 May 2024 15:17:56 +0200 Subject: [PATCH] radv: stop checking the return value of ac_get_cb_number_type() It can't be ~0U. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index b76d6b9f091..2577b422d37 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -456,7 +456,7 @@ radv_is_colorbuffer_format_supported(const struct radv_physical_device *pdev, Vk } else *blendable = true; - return color_format != V_028C70_COLOR_INVALID && color_swap != ~0U && color_num_format != ~0; + return color_format != V_028C70_COLOR_INVALID && color_swap != ~0U; } static bool