GPUOpen-Effects / FidelityFX-FSR2

FidelityFX Super Resolution 2
Other
1.98k stars 181 forks source link

Broken lanczos mask using clang16 #129

Open Nomoresleep opened 7 months ago

Nomoresleep commented 7 months ago

OS: Arch-Linux Compiler: clang16 (blobbed)

Description: When running the lanczos function from ffx_fsr2.cpp clang uses an integer based version of abs and implicitly converts the value argument to an integer format using cvtss2si and back to float with cvtsi2ss afterwards. This causes the full lanczos kernel mask to be basically useless, turning FSR output into a blur.

Resolution: It should probably use absf instead.