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

PixelShaderGen: Fix invalid use of int3(0) #10366

Merged
merged 1 commit into from Jan 13, 2022

Conversation

Pokechu22
Copy link
Contributor

@Pokechu22 Pokechu22 commented Jan 13, 2022

This syntax is allowed by GLSL, but HLSL doesn't allow it (I couldn't find any documentation explicitly rejecting it, but I couldn't find any allowing it either, and the shader compiler gets mad). This meant that games using R8 comparisons in equal mode would produce shaders that failed to compile. Super Mario Galaxy's water levels were affected by this; see #9718 (comment).

I initially used int3(0) in a bunch of places since it's simpler, but when I discovered that HLSL doesn't accept it, I changed it; I thought I changed all of the instances of it, but I guess I missed that one.

This syntax is allowed by GLSL, but HLSL doesn't allow it.  This meant that games using R8 comparisons in equal mode would produce shaders that failed to compile.  Super Mario Galaxy's water levels were affected by this.
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

  • aeon-charge-attack on mvk-osx-m1: diff
  • DKCR-Char on mvk-osx-m1: diff
  • DKCR-fast-depth on mvk-osx-m1: diff
  • ea-pink on mvk-osx-m1: diff
  • metroid-visor on mvk-osx-m1: diff
  • mp3-bloom on mvk-osx-m1: diff
  • pm-hc-jp on mvk-osx-m1: diff
  • ssbb-mod-lloyd on mvk-osx-m1: diff

automated-fifoci-reporter

@leoetlino leoetlino merged commit 07fd174 into dolphin-emu:master Jan 13, 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
5 participants