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

GeometryShaderGen: Write the layer for every vertex #10387

Merged

Conversation

Pokechu22
Copy link
Contributor

@Pokechu22 Pokechu22 commented Jan 22, 2022

At least in GLSL, after calling EmitVertex() the value of all 'out' variables (including gl_Layer and ps) becomes undefined. On OpenGL it seems like they were unchanged, but on Vulkan they became 0, resulting in bad rendering. Note that this isn't exactly true; for the fire man stage the old behavior resulted in flickering even when looping the same frame of the fifolog, so there was an additional element of nondeterminism.

Fixes https://bugs.dolphin-emu.org/issues/12001.

Fifologs (megaman-heat, line-width-test, and the fifolog from issue 12001):

Old

image
image
image
image
image

New

image
image
image
image
image

I've also included images with wireframes enabled, since both are implemented with geometry shaders (I doubt anyone actually uses both of these features together normally). It seems like the way wireframes render for lines is a bit silly (this applies even without stereo 3D), but eh, I don't think that's important enough to deal with fixing currently.

At least in GLSL, after calling EmitVertex() the value of all 'out' variables (including gl_Layer and ps) becomes undefined.  On OpenGL it seems like they were unchanged, but on Vulkan they became 0, resulting in bad rendering.

Fixes https://bugs.dolphin-emu.org/issues/12001
@Pokechu22 Pokechu22 merged commit ab5e71a into dolphin-emu:master Jan 26, 2022
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants