diff options
-rw-r--r-- | docs/relnotes/19.2.0.html | 1 | ||||
-rw-r--r-- | src/amd/vulkan/radv_device.c | 7 | ||||
-rw-r--r-- | 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. <li>EGL_EXT_platform_device</li> <li>VK_EXT_queue_family_foreign for radv</li> <li>VK_EXT_shader_demote_to_helper_invocation on Intel.</li> +<li>VK_KHR_shader_atomic_int64 for radv</li> </ul> <h2>Bug fixes</h2> 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), |