From 03671ccf9edde94297b729fa98627a580ba652d1 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 15 Apr 2025 10:39:09 +0200 Subject: [PATCH] radv/sdma: use the correct helper to get the number type field This wasn't technically incorrect because V_028C70_BU_NUM_xxx values are similar to V_028C70_NUMBER_xxx but it's better to use the corect helper. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_sdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_sdma.c b/src/amd/vulkan/radv_sdma.c index f9656a1a469..8c6b1c2b488 100644 --- a/src/amd/vulkan/radv_sdma.c +++ b/src/amd/vulkan/radv_sdma.c @@ -196,11 +196,10 @@ radv_sdma_get_metadata_config(const struct radv_device *const device, const stru const struct radv_physical_device *pdev = radv_device_physical(device); const VkFormat format = vk_format_get_aspect_format(image->vk.format, subresource.aspectMask); - const struct util_format_description *desc = radv_format_description(format); const uint32_t data_format = ac_get_cb_format(pdev->info.gfx_level, radv_format_to_pipe_format(format)); const uint32_t alpha_is_on_msb = ac_alpha_is_on_msb(&pdev->info, radv_format_to_pipe_format(format)); - const uint32_t number_type = radv_translate_buffer_numformat(desc, vk_format_get_first_non_void_channel(format)); + const uint32_t number_type = ac_get_cb_number_type(radv_format_to_pipe_format(format)); const uint32_t surface_type = radv_sdma_surface_type_from_aspect_mask(subresource.aspectMask); const uint32_t max_comp_block_size = surf->u.gfx9.color.dcc.max_compressed_block_size; const uint32_t pipe_aligned = radv_htile_enabled(image, subresource.mipLevel) || surf->u.gfx9.color.dcc.pipe_aligned;