Module: Mesa Branch: main Commit: fb64f7c676e1e48a23603ff148e7ce4e7c7c6d6e URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fb64f7c676e1e48a23603ff148e7ce4e7c7c6d6e
Author: Samuel Pitoiset <[email protected]> Date: Thu Oct 12 12:03:21 2023 +0200 radv: advertise VK_EXT_image_compression_control This will be used by vkd3d-proton to disable eg. DCC per image in order to workaround game bugs. Signed-off-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25681> --- docs/relnotes/new_features.txt | 3 +++ src/amd/vulkan/radv_physical_device.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index e69de29bb2d..68c40f6bf97 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -0,0 +1,3 @@ +New features +------------ +VK_EXT_image_compression_control on RADV diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index 3402415c3cd..541e13da935 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -498,6 +498,7 @@ radv_physical_device_get_supported_extensions(const struct radv_physical_device .EXT_graphics_pipeline_library = !device->use_llvm && !(device->instance->debug_flags & RADV_DEBUG_NO_GPL), .EXT_host_query_reset = true, .EXT_image_2d_view_of_3d = true, + .EXT_image_compression_control = true, .EXT_image_drm_format_modifier = device->rad_info.gfx_level >= GFX9, .EXT_image_robustness = true, .EXT_image_sliced_view_of_3d = device->rad_info.gfx_level >= GFX10, @@ -1043,6 +1044,9 @@ radv_physical_device_get_features(const struct radv_physical_device *pdevice, st /* VK_KHR_cooperative_matrix */ .cooperativeMatrix = pdevice->rad_info.gfx_level >= GFX11 && !pdevice->use_llvm, .cooperativeMatrixRobustBufferAccess = pdevice->rad_info.gfx_level >= GFX11 && !pdevice->use_llvm, + + /* VK_EXT_image_compression_control */ + .imageCompressionControl = true, }; }
