summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-08-02 02:16:23 +0200
committerBas Nieuwenhuizen <[email protected]>2019-08-02 12:26:32 +0200
commite1c5d8a36490642dfa3891a3273f3830f3ac8161 (patch)
tree0f2f99148d81834d033ce84dad2807e7334ad255
parenta17f2206d3cc89e5284934054ba18f3ee74c2ac6 (diff)
radv: Enable VK_KHR_shader_atomic_int64
Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--docs/relnotes/19.2.0.html1
-rw-r--r--src/amd/vulkan/radv_device.c7
-rw-r--r--src/amd/vulkan/radv_extensions.py2
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),