radv: Use compute copy for emulated formats

These aren't supported by the hardware, so better to use the
compute copy implementation with these formats.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25594>
This commit is contained in:
Timur Kristóf 2025-12-27 07:33:36 -06:00 committed by Marge Bot
parent 0638fa5156
commit 3d803d7a2e

View file

@ -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); 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 && if (!pdev->info.sdma_supports_sparse &&
(image->vk.create_flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT)) (image->vk.create_flags & VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT))