Issue requested by kd-11
MGS4 requires High Precision Z-buffer to properly emulate lightning in some levels of the game:
Incorrect behaviour

Correct behaviour via using High Precision Z-buffer

Yet game no longer reacts on using this option, regressed since
https://github.com/RPCS3/rpcs3/pull/8869
Game uses depth-float and worked by accident before. The current code treats Z buffer as int when doing compare, this needs to be modified for depth-float games like this one. With the rest of the pipeline being float-aware, it's likely the last remaining part that doesn't obey floating point rules.
I'll push a fix soon.
Most helpful comment
Game uses depth-float and worked by accident before. The current code treats Z buffer as int when doing compare, this needs to be modified for depth-float games like this one. With the rest of the pipeline being float-aware, it's likely the last remaining part that doesn't obey floating point rules.
I'll push a fix soon.