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

Enable explicit LOD for array textures with depth compare on SPIR-V #4892

Merged
merged 1 commit into from May 11, 2023

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented May 11, 2023

This removes what I believe to be a leftover from the GLSL backend (before it started using the shadow LOD extension). It was forcing explicit LOD to be removed when using depth-comparison with array textures, since that is not supported on unextended GLSL. AFAIK that limitation does not exist on SPIR-V.

This fixes some glitches on The Legend of Zelda: Tears of the Kingdom when using the Vulkan backend (as it's the only backend that uses SPIR-V shaders right now).
Before:
image
After:
image
I recommend testing on AMD and making sure it doesn't break.

@gdkchan gdkchan added gpu Related to Ryujinx.Graphics fix Fix something graphics-backend:vulkan Graphical bugs when using the Vulkan API labels May 11, 2023
@gdkchan gdkchan requested a review from marysaka May 11, 2023 18:52
Copy link
Member

@riperiperi riperiperi left a comment

Choose a reason for hiding this comment

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

I do have an AMD device, but I'm not sure what games I could test to trigger this case.

@AcK77 AcK77 merged commit 9205077 into Ryujinx:master May 11, 2023
8 checks passed
@gdkchan gdkchan deleted the explicit-lod branch May 11, 2023 19:48
@roxas0zero
Copy link

Hello @gdkchan, the issue still exists for me.

Vulkan Backend
All Default Settings
Ryujinx Ver 1.1.792
Game Version 1.1.0
AMD RX 580 Driver Version 23.4.3

ryujinx_capture_2023-05-12_15-27-56

marysaka added a commit that referenced this pull request May 12, 2023
@roxas0zero
Copy link

That fixed it, thank you.

noxifoxi added a commit to noxifoxi/Ryujinx that referenced this pull request May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix something gpu Related to Ryujinx.Graphics graphics-backend:vulkan Graphical bugs when using the Vulkan API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants