From 183ed8046c261c75563b54ac4b1edbad6701835e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 7 Oct 2025 21:42:43 +0200 Subject: [PATCH] radv: allow VK_FORMAT_S8_UINT with host image copy Depth/stencil formats still need to be properly implemented. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/ci/radv-gfx1201-fails.txt | 1 - src/amd/vulkan/radv_formats.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/ci/radv-gfx1201-fails.txt b/src/amd/ci/radv-gfx1201-fails.txt index dd9f42c318d..c1f01548b57 100644 --- a/src/amd/ci/radv-gfx1201-fails.txt +++ b/src/amd/ci/radv-gfx1201-fails.txt @@ -11,7 +11,6 @@ dEQP-VK.api.copy_and_blit.dedicated_allocation.resolve_image.whole_copy_before_r # RADV_PERFTEST=hic failures dEQP-VK.image.host_image_copy.identical_memory_layout.optimal.b8g8r8a8_sint,Fail -dEQP-VK.image.host_image_copy.identical_memory_layout.optimal.r16_sfloat,Fail dEQP-VK.image.host_image_copy.identical_memory_layout.optimal.r16_unorm,Fail dEQP-VK.image.host_image_copy.identical_memory_layout.optimal.r16g16_uint,Fail dEQP-VK.image.host_image_copy.identical_memory_layout.optimal.r8g8b8a8_unorm,Fail diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index bda15796194..913b7ac1f4e 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -483,8 +483,9 @@ radv_physical_device_get_format_properties(struct radv_physical_device *pdev, Vk buffer = 0; } - /* No depth/stencil support yet due to VKCTS issues. */ - if (radv_host_image_copy_enabled(pdev) && !vk_format_is_depth_or_stencil(format)) { + /* No depth and stencil support yet. */ + if (radv_host_image_copy_enabled(pdev) && + (format != VK_FORMAT_D32_SFLOAT_S8_UINT && format != VK_FORMAT_D16_UNORM_S8_UINT)) { if (linear & VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_BIT) linear |= VK_FORMAT_FEATURE_2_HOST_IMAGE_TRANSFER_BIT_EXT;