mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 15:40:11 +01:00
radv: Expose 3d sparse images.
Tested-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18165>
This commit is contained in:
parent
c738c99a4a
commit
6e020dff99
3 changed files with 3 additions and 6 deletions
|
|
@ -1278,6 +1278,7 @@ radv_GetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice, VkPhysicalDevice
|
||||||
.sparseBinding = true,
|
.sparseBinding = true,
|
||||||
.sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10,
|
.sparseResidencyBuffer = pdevice->rad_info.family >= CHIP_POLARIS10,
|
||||||
.sparseResidencyImage2D = 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,
|
.sparseResidencyAliased = pdevice->rad_info.family >= CHIP_POLARIS10,
|
||||||
.variableMultisampleRate = true,
|
.variableMultisampleRate = true,
|
||||||
.shaderResourceMinLod = true,
|
.shaderResourceMinLod = true,
|
||||||
|
|
@ -2012,6 +2013,7 @@ radv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
|
||||||
{
|
{
|
||||||
.residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10,
|
.residencyNonResidentStrict = pdevice->rad_info.family >= CHIP_POLARIS10,
|
||||||
.residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10,
|
.residencyStandard2DBlockShape = pdevice->rad_info.family >= CHIP_POLARIS10,
|
||||||
|
.residencyStandard3DBlockShape = pdevice->rad_info.gfx_level >= GFX9,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1612,7 +1612,7 @@ radv_get_image_format_properties(struct radv_physical_device *physical_device,
|
||||||
if (physical_device->rad_info.gfx_level < GFX8)
|
if (physical_device->rad_info.gfx_level < GFX8)
|
||||||
goto unsupported;
|
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))
|
info->tiling != VK_IMAGE_TILING_OPTIMAL || vk_format_is_depth_or_stencil(format))
|
||||||
goto unsupported;
|
goto unsupported;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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.textureprojlodoffset.sampler2dshadow_vertex,Fail
|
||||||
dEQP-GLES3.functional.shaders.texture_functions.textureprojoffset.sampler2dshadow_vertex,Fail
|
dEQP-GLES3.functional.shaders.texture_functions.textureprojoffset.sampler2dshadow_vertex,Fail
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue