From: Samuel Pitoiset Date: Fri, 3 Jan 2020 10:51:14 +0000 (+0100) Subject: radv: advertise VK_AMD_shader_image_load_store_lod X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e298e78a012c18ef535c6400543ec278b254a0cd;p=mesa.git radv: advertise VK_AMD_shader_image_load_store_lod This extension allows to use LOD with image read/write operations. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt index a1e23a02eb3..a37b28db132 100644 --- a/docs/relnotes/new_features.txt +++ b/docs/relnotes/new_features.txt @@ -4,6 +4,7 @@ GL_ARB_spirv_extensions on radeonsi. GL_EXT_direct_state_access for compatibility profile. VK_AMD_device_coherent_memory on RADV. VK_AMD_mixed_attachment_samples on RADV. +VK_AMD_shader_image_load_store_lod on RADV. VK_EXT_subgroup_size_control on RADV. VK_KHR_separate_depth_stencil_layouts on Intel, RADV. VK_KHR_shader_subgroup_extended_types on RADV. diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index df257544690..f41bda1c368 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -157,6 +157,7 @@ EXTENSIONS = [ Extension('VK_AMD_shader_ballot', 1, 'device->use_shader_ballot'), Extension('VK_AMD_shader_core_properties', 1, True), Extension('VK_AMD_shader_core_properties2', 1, True), + Extension('VK_AMD_shader_image_load_store_lod', 1, True), Extension('VK_AMD_shader_info', 1, True), Extension('VK_AMD_shader_trinary_minmax', 1, True), Extension('VK_GOOGLE_decorate_string', 1, True), diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index dd3494b9e3e..bbf5cd746c4 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -362,6 +362,7 @@ radv_shader_compile_to_nir(struct radv_device *device, .lower_ubo_ssbo_access_to_offsets = true, .caps = { .amd_gcn_shader = true, + .amd_image_read_write_lod = true, .amd_shader_ballot = device->physical_device->use_shader_ballot, .amd_trinary_minmax = true, .demote_to_helper_invocation = device->physical_device->use_aco,