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

GPU: Respect stencil write mask for 5551 buffers #13972

Merged
merged 2 commits into from
Jan 25, 2021

Conversation

unknownbrackets
Copy link
Collaborator

If the mask is 0x7F on 5551, that's equivalent to allowing the clear entirely. See #13391, hoping this fixes it based on the dump.

Also see #11902. I don't think that dxstate.colorMask applies to clears, so I set it the same way as everything but GLES.

It's a shame that games do a separate clear for color/stencil and then depth sometimes...

-[Unknown]

If the mask is 0x7F on 5551, that's equivalent to allowing the clear
entirely.  See hrydgard#13391.
Doesn't seem like the color mask applies to clears.
@hrydgard hrydgard added this to the v1.11.0 milestone Jan 25, 2021
@hrydgard
Copy link
Owner

Looks good! Wonder if we also need to do something for 4444 format, although it's much rarer due to the poor color quality.

@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Jan 25, 2021
@hrydgard hrydgard merged commit 136c861 into hrydgard:master Jan 25, 2021
@unknownbrackets unknownbrackets deleted the clear-stencil branch January 25, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants