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

Fix shader textureSize with multisample and buffer textures #3240

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

gdkchan
Copy link
Member

@gdkchan gdkchan commented Mar 29, 2022

The multisample and buffer overloads does not take a lod parameter, because multisample and buffer textures can't have mipmaps. This removes the inexistent parameter from the GLSL code generation.

Fixes #3238.

@gdkchan gdkchan added gpu Related to Ryujinx.Graphics fix Fix something labels Mar 29, 2022
Copy link
Contributor

@marysaka marysaka left a comment

Choose a reason for hiding this comment

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

lgtm

@GamerzHell9137
Copy link

GamerzHell9137 commented Mar 29, 2022

Fixes games that had issues with it!

Rune Factory 5 has all of its graphical issues fixed (Special skills, enemy attacks, Tag attack skills, water effects, spawn orb etc)
image

Bubble Bobble 4 Friends is emulated correctly too now on OpenGL, with SPIR V its still crashing when the effect is supposed to be shown but that's unrelated to this.

image

Good job as always @gdkchan !

@GamerzHell9137
Copy link

Also here's a video to show the game with the issue and now fixed.

Master:

Master.mp4

PR:

Pr.mp4

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.

Great work.

@gdkchan gdkchan merged commit 04bd87e into Ryujinx:master Apr 4, 2022
@gdkchan gdkchan deleted the fix-txq-ms-lod branch April 4, 2022 17:44
@GamerzHell9137 GamerzHell9137 mentioned this pull request Apr 11, 2022
11 tasks
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error on shaders with textureSize on multisample textures
4 participants