Fix 32-bit Vulkan build
In 32-bit land, VkFence is uint64_t, so reinterpret_cast (between two identical integral types) is illegal. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3143 Change-Id: Iba9507f5678f647710f4abd35023c192bf6eed66 Reviewed-on: https://skia-review.googlesource.com/3143 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
31d097e865
commit
bbdf45e34f
@ -77,18 +77,18 @@ public:
|
||||
submitInfo.pSignalSemaphores = nullptr;
|
||||
GR_VK_CALL_ERRCHECK(fVk, QueueSubmit(fQueue, 1, &submitInfo, fence));
|
||||
SkDEBUGCODE(++fUnfinishedSyncs;)
|
||||
return reinterpret_cast<sk_gpu_test::PlatformFence>(fence);
|
||||
return (sk_gpu_test::PlatformFence)fence;
|
||||
}
|
||||
|
||||
bool waitFence(sk_gpu_test::PlatformFence opaqueFence) const override {
|
||||
VkFence fence = reinterpret_cast<VkFence>(opaqueFence);
|
||||
VkFence fence = (VkFence)opaqueFence;
|
||||
static constexpr uint64_t kForever = ~((uint64_t)0);
|
||||
auto result = GR_VK_CALL(fVk, WaitForFences(fDevice, 1, &fence, true, kForever));
|
||||
return result != VK_TIMEOUT;
|
||||
}
|
||||
|
||||
void deleteFence(sk_gpu_test::PlatformFence opaqueFence) const override {
|
||||
VkFence fence = reinterpret_cast<VkFence>(opaqueFence);
|
||||
VkFence fence = (VkFence)opaqueFence;
|
||||
GR_VK_CALL(fVk, DestroyFence(fDevice, fence, nullptr));
|
||||
SkDEBUGCODE(--fUnfinishedSyncs;)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user