aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/vulkan_common/vulkan_device.h
diff options
context:
space:
mode:
authorrayman30 <silentbitdev@gmail.com>2026-05-03 04:29:49 +0200
committercrueter <crueter@eden-emu.dev>2026-05-03 04:29:49 +0200
commit44fa2805d6c6d2b1a7e838d27d7d6eafb9c57420 (patch)
treead714bdde77bc5f362feb775eb5905d00280e78c /src/video_core/vulkan_common/vulkan_device.h
parent7d0e79335e1f797f0ce33528e581c85a4c94a410 (diff)
[macos, dynarmic] Implement VectorMin/Max{S,U}64 emitters (Apple Silicon fix) (#3421)
[macos] dynarmic: Implement VectorMin/Max{S,U}64 emitters (Apple Silicon fix) Implements the missing A64 backend emitters for VectorMinS64, VectorMinU64, VectorMaxS64, and VectorMaxU64. These IR opcodes are generated by the optimizer but lack direct hardware instruction support for 64-bit elements in the base NEON set (e.g., UMIN.2D does not exist). They are implemented using a compare (CMGT/CMHI) followed by a bitwise select (BSL). This correctly selects between the two source registers, whereas using BIT would incorrectly zero out elements. This implementation is guarded by #ifdef __APPLE__ to ensure no impact on other platforms. Unit tests could not be added to a64.cpp because UMIN.2D is not a valid A64 instruction, causing the assembler (Oaknut) to reject it. The fix was verified by running Team Sonic Racing, which previously crashed on this synthetic opcode. Fixes crash in Team Sonic Racing on macOS. Co-authored-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3421 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev>
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_device.h')
0 files changed, 0 insertions, 0 deletions