Skip to content

Commit

Permalink
Helpers: fence is not a pointer type, use %lld
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrain34 authored and zlatinski committed Oct 3, 2024
1 parent f489dbb commit 357a621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/libs/VkCodecUtils/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ inline VkResult WaitAndResetFence(const VkInterfaceFunctions* vkIf, VkDevice dev

result = vkIf->WaitForFences(device, 1, &fence, true, fenceWaitTimeout);
if (result != VK_SUCCESS) {
fprintf(stderr, "\t **** WARNING: fence %s(%p) is not done after %llu nSec with result 0x%x ****\n",
fenceName, fence, (long long unsigned int)fenceWaitTimeout, result);
fprintf(stderr, "\t **** WARNING: fence %s(%llu) is not done after %llu nSec with result 0x%x ****\n",
fenceName, (long long unsigned int)fence, (long long unsigned int)fenceWaitTimeout, result);
assert(!"Fence is not signaled yet after more than 100 mSec wait");
}

Expand All @@ -253,8 +253,8 @@ inline VkResult WaitAndResetFence(const VkInterfaceFunctions* vkIf, VkDevice dev
}

if (result != VK_SUCCESS) {
fprintf(stderr, "\t **** ERROR: fence %s(%p) is not done after %llu nSec with result 0x%x ****\n",
fenceName, fence, (long long unsigned int)fenceTotalWaitTimeout, vkIf->GetFenceStatus(device, fence));
fprintf(stderr, "\t **** ERROR: fence %s(%llu) is not done after %llu nSec with result 0x%x ****\n",
fenceName, (long long unsigned int)fence, (long long unsigned int)fenceTotalWaitTimeout, vkIf->GetFenceStatus(device, fence));
assert(!"Fence is not signaled yet after more than 100 mSec wait");
}

Expand Down

0 comments on commit 357a621

Please sign in to comment.