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

Remove supplementary contexts from swap chains #4314

Merged
merged 16 commits into from
Oct 4, 2024
Merged

Conversation

doitsujin
Copy link
Owner

@doitsujin doitsujin commented Oct 2, 2024

Basically does part of what #4269 did. Rendering code for the swap chain blitter and HUD were rewritten to use plain Vulkan in order to not mess with context state.

This will allow us to implement support for SEQUENTIAL present modes in D3D11 in a future PR. Added SWAP_EFFECT_{FLIP}_SEQUENTIAL support here since it's trivial now.

Needs a lot of testing since the swap chain code as a whole is quite brittle, tagging @K0bin mostly for the D3D9 part.

@doitsujin doitsujin requested a review from K0bin October 2, 2024 10:22
@doitsujin doitsujin force-pushed the swapchain-raw-vulkan branch 5 times, most recently from d659ebe to 5fd0da4 Compare October 2, 2024 17:07
Also provide the descriptor pool for convenience.
Temporarily disable the HUD until that is refactored too.
We want to be able to invoke compute shaders during init commands.
And change how rendering works in general so that we emit fewer
draw calls.
Mostly convenience, but we do want to get rid of Begin/EndRecording
at some point.
Do everything on the main context instead. Also only
present once regardless of sync interval.
Otherwise, layout tracking might track a dead image and get confused.
@doitsujin doitsujin merged commit a278d6b into master Oct 4, 2024
8 checks passed
@doitsujin doitsujin deleted the swapchain-raw-vulkan branch October 23, 2024 15:53
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