From 6e4d9729cc75957690a783b7880ad1cdfc54afd5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 4 May 2022 17:52:20 +0200 Subject: [PATCH] radv: use the new format table on GFX11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index e3ac129abfd..cd1a6376789 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -737,7 +737,7 @@ radv_make_buffer_descriptor(struct radv_device *device, struct radv_buffer *buff S_008F0C_DST_SEL_W(radv_map_swizzle(swizzle[3])); if (device->physical_device->rad_info.gfx_level >= GFX10) { - const struct gfx10_format *fmt = &gfx10_format_table[vk_format_to_pipe_format(vk_format)]; + const struct gfx10_format *fmt = &ac_get_gfx10_format_table(&device->physical_device->rad_info)[vk_format_to_pipe_format(vk_format)]; /* OOB_SELECT chooses the out-of-bounds check: * - 0: (index >= NUM_RECORDS) || (offset >= STRIDE) @@ -973,7 +973,7 @@ gfx10_make_texture_descriptor(struct radv_device *device, struct radv_image *ima desc = util_format_description(PIPE_FORMAT_R8G8B8X8_SRGB); } - img_format = gfx10_format_table[vk_format_to_pipe_format(vk_format)].img_format; + img_format = ac_get_gfx10_format_table(&device->physical_device->rad_info)[vk_format_to_pipe_format(vk_format)].img_format; radv_compose_swizzle(desc, mapping, swizzle);