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 <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 10:39:09 +02:00 committed by Marge Bot
parent b44dc98cde
commit 03671ccf9e

View file

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