rhi: vulkan: Add missing VK_QUERY_RESULT_WAIT_BIT
Mainly to get the validation layer from newer Vulkan SDKs to shut up. Change-Id: I3a00d2e7b5617eb1656625b1b2a919bb3c07feb9 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
This commit is contained in:
parent
4e97c4061e
commit
0077e0f88c
@ -1525,7 +1525,8 @@ QRhi::FrameOpResult QRhiVulkan::beginFrame(QRhiSwapChain *swapChain, QRhi::Begin
|
||||
if (frame.timestampQueryIndex >= 0) {
|
||||
quint64 timestamp[2] = { 0, 0 };
|
||||
VkResult err = df->vkGetQueryPoolResults(dev, timestampQueryPool, frame.timestampQueryIndex, 2,
|
||||
2 * sizeof(quint64), timestamp, sizeof(quint64), VK_QUERY_RESULT_64_BIT);
|
||||
2 * sizeof(quint64), timestamp, sizeof(quint64),
|
||||
VK_QUERY_RESULT_64_BIT | VK_QUERY_RESULT_WAIT_BIT);
|
||||
timestampQueryPoolMap.clearBit(frame.timestampQueryIndex / 2);
|
||||
frame.timestampQueryIndex = -1;
|
||||
if (err == VK_SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user