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

renderer_vulkan: Cleanup and improve barriers in caches #1865

Merged
merged 5 commits into from
Jan 2, 2025
Merged

Conversation

raphaelthegreat
Copy link
Collaborator

Makes some barriers more strict to solve sync validation warnings

const vk::BufferMemoryBarrier2 buf_barrier = {
const vk::BufferMemoryBarrier2 pre_barrier = {
.srcStageMask = vk::PipelineStageFlagBits2::eAllCommands,
.srcAccessMask = vk::AccessFlagBits2::eMemoryRead,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reads in the srcAccessMask are a no-op according to Vulkan spec https://stackoverflow.com/a/64757475 KhronosGroup/Vulkan-Docs#131

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm correct, so either need to guard for writes or make this eNone

@psucien psucien merged commit 77d2172 into main Jan 2, 2025
20 checks passed
@psucien psucien deleted the barriers branch January 2, 2025 18:44
Xcedf added a commit to Xcedf/shadPS4 that referenced this pull request Jan 3, 2025
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.

3 participants