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
Copy file name to clipboardExpand all lines: rpcs3/Emu/RSX/RSXThread.cpp
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2366,15 +2366,19 @@ namespace rsx
2366
2366
2367
2367
if (format_features & RSX_FORMAT_FEATURE_GAMMA_CORRECTION)
2368
2368
{
2369
-
// Tests show this is applied post-readout. It's a property of the final value stored in the register and is not remapped. It overwrites even constant channels (REMAP_ZERO | REMAP_ONE)
2369
+
// Tests show this is applied post-readout. It's a property of the final value stored in the register and is not remapped.
2370
+
// NOTE: GAMMA correction has no algorithmic effect on constants (0 and 1) so we need not mask it out for correctness.
2370
2371
gamma = tex.gamma() & ~(argb8_signed);
2371
2372
}
2372
2373
2373
2374
if (format_features & RSX_FORMAT_FEATURE_BIASED_NORMALIZATION)
2374
2375
{
2375
2376
// The renormalization flag applies to all channels. It is weaker than the other flags.
0 commit comments