From: Bas Nieuwenhuizen Date: Sat, 20 Aug 2022 18:19:19 +0000 (+0200) Subject: radv: Expose 3d sparse images. X-Git-Tag: upstream/22.3.5~3466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e020dff99e5f3fd6e059d158c46e16dc69ecc3e;p=platform%2Fupstream%2Fmesa.git radv: Expose 3d sparse images. Tested-By: Mike Blumenkrantz Reviewed-by: Samuel Pitoiset Part-of: --- diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index e2a66da..c1dcedb 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1278,6 +1278,7 @@ radv_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDevice .sparseBinding = true, .sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10, .sparseResidencyImage2D = pdevice->rad_info.family >= CHIP_POLARIS10, + .sparseResidencyImage3D = pdevice->rad_info.family >= CHIP_POLARIS10, .sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10, .variableMultisampleRate = true, .shaderResourceMinLod = true, @@ -2012,6 +2013,7 @@ radv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice, { .residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10, .residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10, + .residencyStandard3DBlockShape = pdevice->rad_info.gfx_level >= GFX9, }, }; diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c index dfca8d9..5251916 100644 --- a/src/amd/vulkan/radv_formats.c +++ b/src/amd/vulkan/radv_formats.c @@ -1612,7 +1612,7 @@ radv_get_image_format_properties(struct radv_physical_device *physical_device, if (physical_device->rad_info.gfx_level < GFX8) goto unsupported; - if (vk_format_get_plane_count(format) > 1 || info->type != VK_IMAGE_TYPE_2D || + if (vk_format_get_plane_count(format) > 1 || info->type == VK_IMAGE_TYPE_1D || info->tiling != VK_IMAGE_TILING_OPTIMAL || vk_format_is_depth_or_stencil(format)) goto unsupported; } diff --git a/src/gallium/drivers/zink/ci/zink-radv-fails.txt b/src/gallium/drivers/zink/ci/zink-radv-fails.txt index ede8f36..08813fe 100644 --- a/src/gallium/drivers/zink/ci/zink-radv-fails.txt +++ b/src/gallium/drivers/zink/ci/zink-radv-fails.txt @@ -1,8 +1,3 @@ -# 3D isn't supported by radv yet: #5822 -KHR-GL46.sparse_texture_tests.InternalFormatQueries,Fail -KHR-GL46.sparse_texture_tests.SparseTextureAllocation,Fail -KHR-GL46.sparse_texture_tests.SparseTextureCommitment,Fail - dEQP-GLES3.functional.shaders.texture_functions.textureprojlodoffset.sampler2dshadow_vertex,Fail dEQP-GLES3.functional.shaders.texture_functions.textureprojoffset.sampler2dshadow_vertex,Fail