Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
5.12.0
-
None
-
-
f0057f0269 (qt/qtbase/dev) f0057f0269 (qt/tqtc-qtbase/dev) e0d0905cff (qt/qtbase/6.3) e0d0905cff (qt/tqtc-qtbase/6.3) ac782945fc (qt/qtbase/6.2) ac782945fc (qt/tqtc-qtbase/6.2) 8f69c4ba5c (qt/tqtc-qtbase/5.15)
Description
According to spec:
https://www.khronos.org/registry/vulkan/specs/1.1-extensions/pdf/vkspec.pdf
VkResult vkQueuePresentKHR( VkQueue queue, const VkPresentInfoKHR* pPresentInfo);
• queue is a queue that is capable of presentation to the target surface’s platform on the same device as the image’s swapchain.
problem in your code is in line:
err = vkQueuePresentKHR(gfxQueue, &presInfo);
should be:
err = vkQueuePresentKHR(presQueue, &presInfo);
Probability that gfxQueue will not has capable to present something is very low but not equal zero.
Attachments
For Gerrit Dashboard: QTBUG-73470 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
391015,5 | Fix queue passed to vkQueuePresent | dev | qt/qtbase | Status: MERGED | +2 | 0 |
391126,2 | Fix queue passed to vkQueuePresent | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
391127,2 | Fix queue passed to vkQueuePresent | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |
391128,2 | Fix queue passed to vkQueuePresent | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |