radv: add VK_KHR_shader_atomic_int64 but disable it for now
No support for 64-bit compare&swap atomic operations. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
@@ -909,6 +909,16 @@ void radv_GetPhysicalDeviceFeatures2(
|
|||||||
features->shaderInt8 = true;
|
features->shaderInt8 = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
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;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -81,6 +81,7 @@ EXTENSIONS = [
|
|||||||
Extension('VK_KHR_push_descriptor', 1, True),
|
Extension('VK_KHR_push_descriptor', 1, True),
|
||||||
Extension('VK_KHR_relaxed_block_layout', 1, True),
|
Extension('VK_KHR_relaxed_block_layout', 1, True),
|
||||||
Extension('VK_KHR_sampler_mirror_clamp_to_edge', 1, True),
|
Extension('VK_KHR_sampler_mirror_clamp_to_edge', 1, True),
|
||||||
|
Extension('VK_KHR_shader_atomic_int64', 1, False),
|
||||||
Extension('VK_KHR_shader_draw_parameters', 1, True),
|
Extension('VK_KHR_shader_draw_parameters', 1, True),
|
||||||
Extension('VK_KHR_shader_float16_int8', 1, True),
|
Extension('VK_KHR_shader_float16_int8', 1, True),
|
||||||
Extension('VK_KHR_storage_buffer_storage_class', 1, True),
|
Extension('VK_KHR_storage_buffer_storage_class', 1, True),
|
||||||
|
@@ -235,6 +235,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
|
|||||||
.int8 = true,
|
.int8 = true,
|
||||||
.int16 = true,
|
.int16 = true,
|
||||||
.int64 = true,
|
.int64 = true,
|
||||||
|
.int64_atomics = true,
|
||||||
.multiview = true,
|
.multiview = true,
|
||||||
.physical_storage_buffer_address = true,
|
.physical_storage_buffer_address = true,
|
||||||
.runtime_descriptor_array = true,
|
.runtime_descriptor_array = true,
|
||||||
|
Reference in New Issue
Block a user