Vendored from https://github.com/shadps4-emu/shadPS4 commit b4e7ae776071ceb1dd35004577a8719481e1d258 (GPL-2.0-or-later).
Directories: src/video_core, src/shader_recompiler, src/common, src/core/libraries/{gnmdriver,videoout}, externals/gcn, externals/sirit, externals/half.
Also: src/core/libraries/kernel/{orbis_error,posix_error,time,process,equeue}.h, equeue.cpp, src/core/libraries/error_codes.h, src/core/platform.h, src/core/libraries/system/userservice.h.
Also: src/core/libraries/avplayer (without the handle streamer), src/core/libraries/videodec/video_utils.{h,cpp}.
Files the build does not use are left out (renderdoc.cpp, src/common pieces such as the Discord,
key manager, memory patcher and spdlog-based logging, which shim/common replaces).
Local changes are marked with "deadnation:" comments. avplayer_state:
a second sceAvPlayerStart while playing keeps playing instead of deadlocking (upstream too).
avplayer_source/file_streamer: looping and restarts no longer seek the AVIO to 0 (FFmpeg's mov
demuxer then drops its sample index and the demuxer spins on EOF; upstream too), looped packets get
increasing timestamps, and video buffers are reused three frames late (the GPU lags the game).
Backported from upstream after b4e7ae7 (2026-10-02), recompiler correctness fixes only:
  233562929 V_INTERP_MOV_F32 P10/P20 selectors (#5087), d96278e1e compute shader floating-point
  mode (#5126), e518a6515 S_SUBB_U32 SCC wrap (#5031), 282e5c792 S_ADDC_U32 SCC carry-out (#5030),
  fb6367d29 32-bit literals in the high dword of 64-bit floats (#5114), 94e217781 V_BFM_B32 (#5185),
  d1cb90dbb ADDC (#5200), dd43d1cac V_CVT_PK_U8_F32 (#5194), ef08b1e1f V_ALIGNBIT/ALIGNBYTE (#5186),
  1ac65aa7a sparse backing allocated with device address support (#5233), 945dbc3cc subgroup
  barriers for shared memory dependencies (#5285), 08225c2b3 LDS barrier analysis with singleton
  dimensions (#5429), c49529087 NaN handling and DX10_CLAMP (#5257; its sirit bump is replaced by
  OpNClamp added to third_party/sirit).
Also (same commit b4e7ae7), HLE libraries for hardware and services a PC does not have, registered
in shim/deadnation_gpu.cpp and resolved after the C runtime: src/core/libraries/{hmd,vr_tracker,
web_browser_dialog,disc_map,screenshot}, network/ssl.{h,cpp}, camera/camera.h
and system/commondialog.h (headers only): the ones DeadNation imports.
vr_tracker.cpp checks its memory with runtime_memory_is_mapped.
