Files
shadPS4/externals
TheTurtle c495290879 shader_recompiler: Improve NaN handling (#5257)
* translate: Handle NaN semantics of legacy instruction variants

* translate: Use unordered float compares for v_cmp_n* instructions

The ACO compiler in mesa emits those variants for unordered compares so use those to get correct NaN behavior

* spirv_emit_float_point: Proper NaN semantics for three number compare instructions

Manual mentions DX10 NaN handling for all of them and for V_MED3_F32 specifically if any input is NaN it fallbacks to MIN3 instruction so implement those properly using NMin/NMax

* translate: Honor DX10_CLAMP mode bit

Switch FPSaturate to using NClamp instead of FClamp, to match HLSL saturate which returns 0.f with NaN input. Otherwise use normal FClamp which propagates the NaN instead

* emit_spirv_floating_pont: Dont use amd extension
2026-10-04 13:37:56 -07:00
..
2025-12-28 13:24:42 +02:00
2025-04-12 18:01:39 +03:00
2025-09-18 11:53:04 +03:00
2026-06-10 15:57:11 +03:00
2025-02-25 20:46:26 +02:00
2025-04-12 18:01:39 +03:00
2026-09-03 15:40:23 +03:00
2025-10-31 10:28:39 +02:00
2025-04-12 18:01:39 +03:00
2026-06-12 10:43:39 +03:00
2025-04-12 18:01:39 +03:00
2025-04-12 18:01:39 +03:00
2026-05-15 21:29:40 +02:00
2026-04-19 00:57:05 +03:00
2025-04-12 18:01:39 +03:00
2024-11-24 11:37:14 +01:00
2025-04-12 18:01:39 +03:00
2025-04-12 18:01:39 +03:00
2025-04-12 18:01:39 +03:00
2026-07-28 20:05:58 +03:00
2025-04-12 18:01:39 +03:00
2026-07-28 20:05:58 +03:00
2025-04-12 18:01:39 +03:00