You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While investigating the shimmer effect in #270 I noticed that Ninja Gaiden Black sets the PS_FINALCOMBINERSETTING_CLAMP_SUM flag in the bugged render pass (it doesn't seem to actually use the V1R0 sum so I don't think it's directly causing the issue here).
Looking at the pixel shader generator code, I see that the flags are set, but they don't seem to actually be applied anywhere (there are no references to any of those flags other than this initial assignment in psh_translate:
The flags should be implemented to match HW behavior.
Ninja Gaiden Black does make use of the PS_REGISTER_V1R0_SUM register for several other draws in that same frame (which was captured when entering the magma caverns in chapter 12).
The clamp flag also set during the bootup sequence, though I didn't capture the pgraph logs to see if the sum register is actually used in the pixel shader.
xemu Version
My near head development version (I'm confident that I have made no changes that would've removed acting on the flags)
Version: 0.6.2-109-ga16eea7d86
Branch: work
Commit: a16eea7
Date: Sat Mar 12 06:38:59 AM UTC 2022
This may be the reason why #580 has this problem. Pull request #720 partially fixes boot animation lighting but still not Halo 2 battle rifle shines.
Master:
Bug Description
While investigating the shimmer effect in #270 I noticed that Ninja Gaiden Black sets the
PS_FINALCOMBINERSETTING_CLAMP_SUM
flag in the bugged render pass (it doesn't seem to actually use the V1R0 sum so I don't think it's directly causing the issue here).Looking at the pixel shader generator code, I see that the flags are set, but they don't seem to actually be applied anywhere (there are no references to any of those flags other than this initial assignment in
psh_translate
:Expected Behavior
The flags should be implemented to match HW behavior.
Ninja Gaiden Black does make use of the
PS_REGISTER_V1R0_SUM
register for several other draws in that same frame (which was captured when entering the magma caverns in chapter 12).The clamp flag also set during the bootup sequence, though I didn't capture the pgraph logs to see if the sum register is actually used in the pixel shader.
xemu Version
My near head development version (I'm confident that I have made no changes that would've removed acting on the flags)
Version: 0.6.2-109-ga16eea7d86
Branch: work
Commit: a16eea7
Date: Sat Mar 12 06:38:59 AM UTC 2022
System Information
"cpu": "Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz",
"gl_renderer": "NVIDIA GeForce GTX 1070/PCIe/SSE2",
"gl_shading_language_version": "4.00 NVIDIA via Cg compiler",
"gl_vendor": "NVIDIA Corporation",
"gl_version": "4.0.0 NVIDIA 470.103.01",
"os_platform": "Linux",
"os_version": "Ubuntu 21.10",
Additional Context
No response
The text was updated successfully, but these errors were encountered: