From 2cba0ecf52dec972c249811a9b30cacfd1c968d2 Mon Sep 17 00:00:00 2001 From: PavelBARABANOV Date: Wed, 21 Oct 2026 23:57:13 +0300 Subject: [PATCH] Fixed Disco Elysium - bug in swapped abs/neg bits in F2I decoding --- .../translate/impl/floating_point_conversion_integer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp index c8c9e26248..bd9964baf5 100644 --- a/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp +++ b/src/shader_recompiler/frontend/maxwell/translate/impl/floating_point_conversion_integer.cpp @@ -41,9 +41,9 @@ union F2I { BitField<39, 2, Rounding> rounding; BitField<41, 1, u64> half; BitField<44, 1, u64> ftz; - BitField<45, 1, u64> abs; + BitField<45, 1, u64> neg; BitField<47, 1, u64> cc; - BitField<49, 1, u64> neg; + BitField<49, 1, u64> abs; }; size_t BitSize(DestFormat dest_format) {