diff --git a/rpcs3/Emu/RSX/Program/ProgramStateCache.cpp b/rpcs3/Emu/RSX/Program/ProgramStateCache.cpp index 5dd0953278..8c1318ad28 100644 --- a/rpcs3/Emu/RSX/Program/ProgramStateCache.cpp +++ b/rpcs3/Emu/RSX/Program/ProgramStateCache.cpp @@ -584,7 +584,7 @@ bool fragment_program_compare::operator()(const RSXFragmentProgram& binary1, con namespace rsx { #if defined(ARCH_X64) || defined(ARCH_ARM64) - static void write_fragment_constants_to_buffer_sse2(const std::span& buffer, const RSXFragmentProgram& rsx_prog, const std::vector& offsets_cache, bool sanitize) + static inline void write_fragment_constants_to_buffer_sse2(const std::span& buffer, const RSXFragmentProgram& rsx_prog, const std::vector& offsets_cache, bool sanitize) { f32* dst = buffer.data(); for (usz offset_in_fragment_program : offsets_cache) @@ -610,9 +610,8 @@ namespace rsx dst += 4; } } -#endif - - static void write_fragment_constants_to_buffer_fallback(const std::span& buffer, const RSXFragmentProgram& rsx_prog, const std::vector& offsets_cache, bool sanitize) +#else + static inline void write_fragment_constants_to_buffer_fallback(const std::span& buffer, const RSXFragmentProgram& rsx_prog, const std::vector& offsets_cache, bool sanitize) { f32* dst = buffer.data(); @@ -638,6 +637,7 @@ namespace rsx dst += 4; } } +#endif void write_fragment_constants_to_buffer(const std::span& buffer, const RSXFragmentProgram& rsx_prog, const std::vector& offsets_cache, bool sanitize) {