1 /* 2 * Copyright © 2021 Valve Corporation 3 * 4 * SPDX-License-Identifier: MIT 5 */ 6 7 #include "radv_device.h" 8 #include "radv_entrypoints.h" 9 #include "vk_common_entrypoints.h" 10 11 VKAPI_ATTR VkResult VKAPI_CALL metro_exodus_GetSemaphoreCounterValue(VkDevice _device,VkSemaphore _semaphore,uint64_t * pValue)12metro_exodus_GetSemaphoreCounterValue(VkDevice _device, VkSemaphore _semaphore, uint64_t *pValue) 13 { 14 /* See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5119. */ 15 if (_semaphore == VK_NULL_HANDLE) { 16 fprintf(stderr, "RADV: Ignoring vkGetSemaphoreCounterValue() with NULL semaphore (game bug)!\n"); 17 return VK_SUCCESS; 18 } 19 20 VK_FROM_HANDLE(radv_device, device, _device); 21 return device->layer_dispatch.app.GetSemaphoreCounterValue(_device, _semaphore, pValue); 22 } 23