gfxstream: Use proper log format for 32-bit Vulkan
On i686, where VK_USE_64_BIT_PTR_DEFINES is unset and Vulkan handles are
represented as 64-bit integers instead, the code used the wrong format
specifier, causing a build error.
Fixes: 7fb31361f4 ("Handle external fences in vkGetFenceStatus()")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34124>
This commit is contained in:
committed by
Marge Bot
parent
335cc96069
commit
1deb0536a1
@@ -24,6 +24,7 @@
|
||||
#include <vndk/hardware_buffer.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
@@ -4914,7 +4915,11 @@ VkResult ResourceTracker::on_vkGetFenceStatus(void* context, VkResult input_resu
|
||||
|
||||
auto fenceInfoIt = info_VkFence.find(fence);
|
||||
if (fenceInfoIt == info_VkFence.end()) {
|
||||
#if VK_USE_64_BIT_PTR_DEFINES
|
||||
mesa_loge("Failed to find VkFence:%p", fence);
|
||||
#else
|
||||
mesa_loge("Failed to find VkFence:0x%" PRIx64, fence);
|
||||
#endif
|
||||
return VK_NOT_READY;
|
||||
}
|
||||
auto& fenceInfo = fenceInfoIt->second;
|
||||
|
||||
Reference in New Issue
Block a user