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

GS: Correct depth trace for sprites + optimize HW depth selection #11391

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

refractionpcsx2
Copy link
Member

@refractionpcsx2 refractionpcsx2 commented Jun 14, 2024

Description of Changes

Corrects depth trace correction for sprites and tries to optimise out making new depth targets when they aren't required.

Rationale behind Changes

The correct depth trace was checking every vertex for Z values, where only every second one is valid on sprites, meaning the "equal" test was failing. This is now fixed.

Also added some code to later optimise the "all tests pass" when it's selecting the depth targets.

Suggested Testing Steps

Nothing really fixed.

Smoke test I guess

@refractionpcsx2 refractionpcsx2 changed the title GS: Correct depth trace for sprites + optimize HW depth target creation GS: Correct depth trace for sprites + optimize HW depth selection Jun 14, 2024
@refractionpcsx2 refractionpcsx2 merged commit de7d934 into master Jun 14, 2024
22 checks passed
@refractionpcsx2 refractionpcsx2 deleted the gs_correctdepth branch June 14, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants