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

TextureConversionShader: Also invert color encoders if they're used to encode depth. #3505

Merged
merged 1 commit into from Jan 13, 2016

Conversation

CrossVR
Copy link
Contributor

@CrossVR CrossVR commented Jan 13, 2016

The WriteC8Encoder and WriteC4Encoder are also used to encode depth buffers, but when D3D depth inversion was implemented I only accounted for the encoders that were only used for depth.

This fixes Metroid Prime 2 when using the depth visor to scan objects, issue 8925.

@CrossVR CrossVR added this to the Dolphin Release 5.0 milestone Jan 13, 2016
@delroth
Copy link
Member

delroth commented Jan 13, 2016

LGTM. Please get a review from someone who understands our video code better than I do (degasus?) and feel free to merge.

@JMC47
Copy link
Contributor

JMC47 commented Jan 13, 2016

Confirmed to work.

@degasus
Copy link
Member

degasus commented Jan 13, 2016

Yeah, sounds fine to me.

@phire
Copy link
Member

phire commented Jan 13, 2016

LGTM

CrossVR added a commit that referenced this pull request Jan 13, 2016
TextureConversionShader: Also invert color encoders if they're used to encode depth.
@CrossVR CrossVR merged commit a307883 into dolphin-emu:master Jan 13, 2016
@CrossVR CrossVR deleted the invert-conversion branch January 13, 2016 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants