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

Massive staging and barrier refactoring #747

Merged
merged 16 commits into from
Dec 10, 2024
Merged

Conversation

w23
Copy link
Owner

@w23 w23 commented Dec 6, 2024

In its own branch until it can render at least one frame

w23 added 16 commits December 6, 2024 14:19
It's an incomplete intermediary change. This commit doesn't work.

It compiles tho.

Changes:
- Move buffer staging tracking to vk_buffer
- Sketch automatic buffer barriers tied to vk_combuf
- Remove all combuf handling from staging. That was just gross.

Breaks:
- Everything.
- RT AS building is commented out for now
it render quite a few traditional frames
but then fails with cross-cmdbuf sync validation errors
- print out vkQueueSubmit with its semaphores
- print out buffer barriers
- print out when buffer copy submission happens
- print various ref_vk initialization stages
Validation was complaining about odd SYNC-HAZARD-WRITE-AFTER-READ lack of buffer barrier at the very beginning of a frame, while I thought that command buffers are properly serialized by semaphores.
Turns out, `VkSubmitInfo::pWaitDstStageMask` should accompany each wait semaphore with its corresponding stage.
Properly setting TOP_OF_PIPE for the wait semaphore of a previous submission fixes the complaint.
This is likely no the right way to do this. Address this when focusing on correct gamma overall for traditional renderer. Currently this is here just to make it have some non-zero values early.
Previous 20.04 doesn't have the latest Vulkan SDK.
Also print deps script commands verbosely for easier CI debugging.
@w23 w23 changed the title [WIP] massive staging and barrier refactoring Massive staging and barrier refactoring Dec 10, 2024
@w23 w23 marked this pull request as ready for review December 10, 2024 16:29
@w23 w23 merged commit 8afa9e7 into stream-E379-staging Dec 10, 2024
8 checks passed
@w23 w23 deleted the wip-cucumbuf-staging branch December 10, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant