mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
radv: do not use the common entrypoint for the Metro Exodus layer
This is incorrect, it will calls the function recursively.
It seems there is random build failures with common runtime code
and MSVC but that's a different issue.
Closes: #5815
Fixes: 46c59e8fd6 ("radv: Remove dependencies on vk_common entrypoints.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14374>
This commit is contained in:
parent
c1f8bc67e2
commit
a255f6f823
1 changed files with 2 additions and 3 deletions
|
|
@ -22,17 +22,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "radv_private.h"
|
#include "radv_private.h"
|
||||||
|
#include "vk_common_entrypoints.h"
|
||||||
|
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL
|
VKAPI_ATTR VkResult VKAPI_CALL
|
||||||
metro_exodus_GetSemaphoreCounterValue(VkDevice _device, VkSemaphore _semaphore, uint64_t *pValue)
|
metro_exodus_GetSemaphoreCounterValue(VkDevice _device, VkSemaphore _semaphore, uint64_t *pValue)
|
||||||
{
|
{
|
||||||
VK_FROM_HANDLE(vk_device, device, _device);
|
|
||||||
|
|
||||||
/* See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5119. */
|
/* See https://gitlab.freedesktop.org/mesa/mesa/-/issues/5119. */
|
||||||
if (_semaphore == VK_NULL_HANDLE) {
|
if (_semaphore == VK_NULL_HANDLE) {
|
||||||
fprintf(stderr, "RADV: Ignoring vkGetSemaphoreCounterValue() with NULL semaphore (game bug)!\n");
|
fprintf(stderr, "RADV: Ignoring vkGetSemaphoreCounterValue() with NULL semaphore (game bug)!\n");
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return device->dispatch_table.GetSemaphoreCounterValue(_device, _semaphore, pValue);
|
return vk_common_GetSemaphoreCounterValue(_device, _semaphore, pValue);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue