From e1c5d8a36490642dfa3891a3273f3830f3ac8161 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 2 Aug 2019 02:16:23 +0200 Subject: radv: Enable VK_KHR_shader_atomic_int64 Reviewed-by: Samuel Pitoiset --- docs/relnotes/19.2.0.html | 1 + src/amd/vulkan/radv_device.c | 7 ++----- src/amd/vulkan/radv_extensions.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/relnotes/19.2.0.html b/docs/relnotes/19.2.0.html index 2d1c39a81af..45ec8034aed 100644 --- a/docs/relnotes/19.2.0.html +++ b/docs/relnotes/19.2.0.html @@ -44,6 +44,7 @@ TBD.
  • EGL_EXT_platform_device
  • VK_EXT_queue_family_foreign for radv
  • VK_EXT_shader_demote_to_helper_invocation on Intel.
  • +
  • VK_KHR_shader_atomic_int64 for radv
  • Bug fixes

    diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index fc961040b6e..0065b15dfdf 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -973,11 +973,8 @@ void radv_GetPhysicalDeviceFeatures2( case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES_KHR: { VkPhysicalDeviceShaderAtomicInt64FeaturesKHR *features = (VkPhysicalDeviceShaderAtomicInt64FeaturesKHR *)ext; - /* TODO: Enable this once the driver supports 64-bit - * compare&swap atomic operations. - */ - features->shaderBufferInt64Atomics = false; - features->shaderSharedInt64Atomics = false; + features->shaderBufferInt64Atomics = HAVE_LLVM >= 0x0900; + features->shaderSharedInt64Atomics = HAVE_LLVM >= 0x0900; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: { diff --git a/src/amd/vulkan/radv_extensions.py b/src/amd/vulkan/radv_extensions.py index ec3735c55b8..aaedad554b3 100644 --- a/src/amd/vulkan/radv_extensions.py +++ b/src/amd/vulkan/radv_extensions.py @@ -83,7 +83,7 @@ EXTENSIONS = [ Extension('VK_KHR_relaxed_block_layout', 1, True), Extension('VK_KHR_sampler_mirror_clamp_to_edge', 1, True), Extension('VK_KHR_sampler_ycbcr_conversion', 1, True), - Extension('VK_KHR_shader_atomic_int64', 1, False), + Extension('VK_KHR_shader_atomic_int64', 1, 'HAVE_LLVM >= 0x0900'), Extension('VK_KHR_shader_draw_parameters', 1, True), Extension('VK_KHR_shader_float16_int8', 1, True), Extension('VK_KHR_storage_buffer_storage_class', 1, True), -- cgit v1.2.3