radv: advertise VK_AMD_shader_image_load_store_lod
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 3 Jan 2020 10:51:14 +0000 (11:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 9 Jan 2020 06:58:34 +0000 (07:58 +0100)
This extension allows to use LOD with image read/write operations.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
docs/relnotes/new_features.txt
src/amd/vulkan/radv_extensions.py
src/amd/vulkan/radv_shader.c

index a1e23a02eb37c172ce513277a63dd84be28607c4..a37b28db1325c21afd4c1fd1f1169999cb769518 100644 (file)
@@ -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.
index df25754469095a80c724694e32c1c40ec186ecfa..f41bda1c368d72951a92070e1f6e9688662adbd8 100644 (file)
@@ -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),
index dd3494b9e3e8557b16bd7a95c0893a9f17d394e1..bbf5cd746c474de746387d8b0638e4f0501d25dc 100644 (file)
@@ -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,