Present fence: state that it is signaled when vkQueuePresentKHR returns VK_ERROR_OUT_OF_DATE_KHR or VK_ERROR_SURFACE_LOST_KHR
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- computer-graphics, documentation
Direzione di ricerca
Start in chapters/VK_KHR_surface/wsi.adoc at the vkQueuePresentKHR error paragraph and the common_present_fence text transcluded into VkSwapchainPresentFenceInfoKHR; read both together to see where the fence consequence is unstated. Then check the referenced CTS resize loop in vktWsiMaintenance1Tests.cpp and Mesa's wsi_common_queue_present for current practice. Done means the spec says whether the present fence is signaled for out-of-date/surface-lost and for the other present errors, with a CTS case noted if needed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
An application using VK_KHR_swapchain_maintenance1 (or VK_EXT_swapchain_maintenance1) that chains VkSwapchainPresentFenceInfoKHR to every present, and waits for those fences before destroying a swapchain or reusing its resources, needs to know whether the fence of a present that vkQueuePresentKHR rejects with VK_ERROR_OUT_OF_DATE_KHR or VK_ERROR_SURFACE_LOST_KHR is still signaled. If it is not, an unbounded wait on that fence never returns.
As far as I can tell the answer is "yes", but only by reading two passages together (chapters/VK_KHR_surface/wsi.adoc at 825e9b7):
vkQueuePresentKHR: "However, if the presentation request is rejected by the presentation engine with an errorVK_ERROR_OUT_OF_DATE_KHR, [...] orVK_ERROR_SURFACE_LOST_KHR, the set of queue operations is still considered to be enqueued and thus any semaphore wait operation specified inVkPresentInfoKHRwill execute when the corresponding queue operation is complete."- The present fence (
common_present_fence, transcluded intoVkSwapchainPresentFenceInfoKHR): "The application can provide a fence that the implementation will signal after all such queue operations have completed, and after the presentation engine has taken a reference to the payloads of all objects provided inVkPresentInfoKHRthat the presentation engine accesses as part of the present operation." And: "[...] can destroy the swapchain when the fences associated with all past presentation requests referring to that swapchain have signaled."
The first passage draws only the semaphore consequence explicitly; no sentence names the present fence on these errors.
Observed behavior agrees with the reading: the CTS (external/vulkancts/modules/vulkan/wsi/vktWsiMaintenance1Tests.cpp, the resize loop) chains a present fence, handles VK_ERROR_OUT_OF_DATE_KHR from that present, and then waits on the fence unconditionally; Mesa's common WSI (src/vulkan/wsi/wsi_common.c, wsi_common_queue_present) submits the present fence with the per-image signal operations before the backend returns VK_ERROR_OUT_OF_DATE_KHR. I could not find a CTS case for VK_ERROR_SURFACE_LOST_KHR.
Requests:
- Add one sentence to the present-fence text, for example: "If a presentation request is rejected with
VK_ERROR_OUT_OF_DATE_KHR,VK_ERROR_SURFACE_LOST_KHR(or the other errors for which the set of queue operations is still considered to be enqueued), any present fence specified for that request is still signaled as described above." - State the fence's state for the other error codes
vkQueuePresentKHRcan return (e.g.VK_ERROR_OUT_OF_HOST_MEMORY,VK_ERROR_OUT_OF_DEVICE_MEMORY,VK_ERROR_DEVICE_LOST), where the queue operations are not said to be enqueued: is the fence left unsignaled, or is its state undefined? - If (1) is the intent, a CTS case for
VK_ERROR_SURFACE_LOST_KHRwould make it binding in practice.
Related: #1533, #152 (resolved in 1.3.239), and #2007 (the case without the extension, which this issue does not cover).
This issue was prepared with the help of an AI assistant; I checked the quoted passages against the current main.
- Lingua principale
- JavaScript
- Stelle
- 3.4k
- Fork
- 555
- Merge medio
- 3g 10h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di KhronosGroup/Vulkan-Docs
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
KhronosGroup/Vulkan-Docs#2823 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 44/100
KhronosGroup/Vulkan-Docs#2863 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
KhronosGroup/Vulkan-Docs#2860 · 1 commento ·
-
VUID-vkCmdBindResourceHeapEXT-pBindInfo-12558Forse già presa @spencer-lunarg l’ha presa 2 giorni fa. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
KhronosGroup/Vulkan-Docs#2857 · 4 commenti · 1 assegnatario ·
-
VkCopyDescriptorSet::dstSet is annotated with externsync="maybe", which seems invalid?Forse già presa @ShabbyX l’ha presa 3 giorni fa. ApertaResolving Inside Khronos
Difficoltà 2/5 1-3 ore Idoneità per principianti 54/100
KhronosGroup/Vulkan-Docs#2856 · 4 commenti · 2 assegnatari ·
Tutte le issue di KhronosGroup/Vulkan-Docs
Issue simili
-
[ordering-review] workshop order graph: 1 confirmed ordering issue, cycles are false positivesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
githubnext/gh-aw-workshop#6247 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue type/ci
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
c-w-z/commit-decision-record#20 ·
I maintainer di solito rispondono entro 1 giorno
-
Add: China en Vivo (CN)Apertachannels:add check:passed
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
web-platform-tests/wpt#65844 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JuliusBrussee/caveman#1606 ·
I maintainer di solito rispondono entro 1 giorno