From 3d803d7a2e0e7d46c04381896168c344d59d88e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Sat, 27 Dec 2025 07:33:36 -0600 Subject: [PATCH] radv: Use compute copy for emulated formats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These aren't supported by the hardware, so better to use the compute copy implementation with these formats. Signed-off-by: Timur Kristóf Reviewed-by: Konstantin Seurer Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_sdma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_sdma.c b/src/amd/vulkan/radv_sdma.c index 74f85234a61..47abe912b55 100644 --- a/src/amd/vulkan/radv_sdma.c +++ b/src/amd/vulkan/radv_sdma.c @@ -714,7 +714,8 @@ radv_sdma_supports_image(const struct radv_device *device, const struct radv_ima { const struct radv_physical_device *pdev = radv_device_physical(device); - /* TODO: Handle emulated formats and verify sparse image support. */ + if (radv_is_format_emulated(pdev, image->vk.format)) + return false; if (!pdev->info.sdma_supports_sparse && (image->vk.create_flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT))