Skip to content

Queue presenting image not in PRESENT Layout #20

Description

@Ggjorven

Describe the bug
vkQueuePresent sometimes presents an image that is not in PRESENT_LAYOUT. The issue appears to be related to VkSubpassDependency2 not being set up properly.

To Reproduce

  1. Open the application using Vulkan.
  2. Rapidly move the cursor in and out of the window. (Can take up to 1 minute)
  3. Occasionally, the frame is presented while the image is not in PRESENT_LAYOUT.

Expected behavior
Images should always be in PRESENT_LAYOUT when presented via vkQueuePresent.

Environment:

  • OS: EndeavourOS (Arch-based)
  • Display Server: Wayland
  • GPU: NVIDIA
  • API: Vulkan

Additional context
The bug seems timing-dependent and is likely triggered by rapid focus changes or cursor movements. Suspected cause is improper VkSubpassDependency2 setup affecting layout transitions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions