Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SYNC-HAZARD-WRITE-AFTER-PRESENT when presenting a surface just after getting it. #6748

Open
Vecvec opened this issue Dec 15, 2024 · 0 comments
Labels
api: vulkan Issues with Vulkan area: correctness We're behaving incorrectly area: wsi Issues with swapchain management or windowing type: bug Something isn't working

Comments

@Vecvec
Copy link
Contributor

Vecvec commented Dec 15, 2024

Description
if one submits no work for a frame (e.g just requests a texture and then presents it with no calls in between) the vulkan validation layers raise lots of validation errors.

Repro steps
just comment out queue.submit in an example's render function call (I used ray_scene)

Expected vs observed behavior
I get lots of validation errors where there sould be none.

Extra materials
logs:

[2024-12-15T23:04:28Z ERROR wgpu_hal::vulkan::instance] VALIDATION [UNASSIGNED-VkPresentInfoKHR-pImageIndices-MissingAcquireWait (0x1b6b9ef2)]
        Validation Error: [ UNASSIGNED-VkPresentInfoKHR-pImageIndices-MissingAcquireWait ] Object 0: handle = 0x67022e000000004b, type = VK_OBJECT_TYPE_IMAGE; Object 1: handle = 0x7cd292000000004f, type = VK_OBJECT_TYPE_SEMAPHORE; | MessageID = 0x1b6b9ef2 | vkQueuePresentKHR(): pPresentInfo->pImageIndices[0] was acquired with a semaphore VkSemaphore 0x7cd292000000004f[] that has not since been waited on
[2024-12-15T23:04:28Z ERROR wgpu_hal::vulkan::instance]         objects: (type: IMAGE, hndl: 0x67022e000000004b, name: ?), (type: SEMAPHORE, hndl: 0x7cd292000000004f, name: ?)
[2024-12-15T23:04:28Z ERROR wgpu_hal::vulkan::instance] VALIDATION [SYNC-HAZARD-WRITE-AFTER-PRESENT (0x42f2f4ed)]
...

Platform
latest trunk

@cwfitzgerald cwfitzgerald added type: bug Something isn't working area: correctness We're behaving incorrectly api: vulkan Issues with Vulkan area: wsi Issues with swapchain management or windowing labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vulkan Issues with Vulkan area: correctness We're behaving incorrectly area: wsi Issues with swapchain management or windowing type: bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants