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 <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25681>
This commit is contained in:
Samuel Pitoiset 2023-10-12 12:03:21 +02:00 committed by Marge Bot
parent 8a25a9f4dd
commit fb64f7c676
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
New features
------------
VK_EXT_image_compression_control on RADV

View file

@ -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,
};
}