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

vk: fix broken gltf renderings #7680

Merged
merged 2 commits into from
Mar 19, 2024
Merged

vk: fix broken gltf renderings #7680

merged 2 commits into from
Mar 19, 2024

Conversation

poweifeng
Copy link
Contributor

This is due to color attachments being set to store=discard when they are multi-sampled. It's unclear why that condition exists. For now, removing it will fix the rendering issues with transparent object + MSAA. We'll keep it as such until an issue surfaces.

Fixes #7674

This is due to color attachments being set to store=discard when
they are multi-sampled. It's unclear why that condition exists. For
now, removing it will fix the rendering issues with transparent
object + MSAA. We'll keep it as such until an issue surfaces.

Fixes #7674
@poweifeng poweifeng added the internal Issue/PR does not affect clients label Mar 19, 2024
Copy link
Member

@bejado bejado left a comment

Choose a reason for hiding this comment

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

At least with Metal, for MSAA passes we use "memoryless" textures (which don't store their contents). These then get resolved to a "real" non-MSAA texture. Maybe Vulkan was doing the same?

@poweifeng
Copy link
Contributor Author

poweifeng commented Mar 19, 2024

At least with Metal, for MSAA passes we use "memoryless" textures (which don't store their contents). These then get resolved to a "real" non-MSAA texture. Maybe Vulkan was doing the same?

Thanks for the useful background. I think that was the intention here, but wasn't implemented completly (as per ARM's example). I'll file an issue for tracking implementing it correctly.

@poweifeng poweifeng enabled auto-merge (squash) March 19, 2024 21:55
@poweifeng poweifeng merged commit dfa821d into main Mar 19, 2024
11 checks passed
@poweifeng poweifeng deleted the pf/vk-fix-broken-gltf branch March 19, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some GLTF files do not render on Vulkan
4 participants