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

[d3d9] Validate DS format support during CheckDepthStencilMatch #3982

Merged
merged 1 commit into from May 6, 2024

Conversation

WinterSnowfall
Copy link
Contributor

Fixes #3938. Adds a check against passed DS formats during calls to CheckDepthStencilMatch(). Should prevent games from using D32, D15S1 and D24X4S4 going forward.

We had to do a similar check for DS formats in d8vk for what it's worth, so this makes sense.

@Blisto91
Copy link
Contributor

Blisto91 commented May 2, 2024

Verified with #3938

@WinterSnowfall
Copy link
Contributor Author

WinterSnowfall commented May 2, 2024

P.S.: The game in question reverts to using D3DFMT_D24X8 if the initial call to CheckDepthStencilMatch() with D3DFMT_D32 fails. This is apparent in the trace captured with WineD3D.

Copy link
Collaborator

@K0bin K0bin left a comment

Choose a reason for hiding this comment

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

Good job.

@Joshua-Ashton Joshua-Ashton merged commit b2789ab into doitsujin:master May 6, 2024
3 checks passed
@WinterSnowfall WinterSnowfall deleted the d3d9-dschecks branch May 6, 2024 21:11
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.

[regression, d3d9] Cloudphobia crashing on startup
4 participants