diff options
author | Samuel Pitoiset <[email protected]> | 2020-01-03 11:51:14 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2020-01-09 07:58:34 +0100 |
commit | e298e78a012c18ef535c6400543ec278b254a0cd (patch) | |
tree | b0aa09ed8ef792508af0d5b3a479079ef903d4d9 /src | |
parent | 4d49a7ac737f298b136ab6447e18c6e4654f8ad5 (diff) |
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 <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_extensions.py | 1 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader.c | 1 |
2 files changed, 2 insertions, 0 deletions
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, |