From 396195e8f1aac339cac85c0b1b554caab73f8abe Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 25 Oct 2019 10:26:50 +0200 Subject: radv: Enable VK_KHR_timeline_semaphore. Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_device.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/amd/vulkan/radv_device.c') diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index f5ce68e5ffd..8a008b527da 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -1087,6 +1087,12 @@ void radv_GetPhysicalDeviceFeatures2( features->texelBufferAlignment = true; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHR: { + VkPhysicalDeviceTimelineSemaphoreFeaturesKHR *features = + (VkPhysicalDeviceTimelineSemaphoreFeaturesKHR *) ext; + features->timelineSemaphore = true; + break; + } default: break; } @@ -1569,6 +1575,12 @@ void radv_GetPhysicalDeviceProperties2( properties->shaderSignedZeroInfNanPreserveFloat64 = pdevice->rad_info.chip_class >= GFX8; break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES_KHR: { + VkPhysicalDeviceTimelineSemaphorePropertiesKHR *props = + (VkPhysicalDeviceTimelineSemaphorePropertiesKHR *) ext; + props->maxTimelineSemaphoreValueDifference = UINT64_MAX; + break; + } default: break; } -- cgit v1.2.3