Repository navigation
81 pull requests from fourteen contributors, merged in #696. Six of them are
here for the first time. Most of the batch comes from ports in progress: God
of War HD and Ascension drive the SPURS, GCM and SPU work, a SoulCalibur II HD
port drives the main-memory tiles and the macOS window, and a lv2 conformance
pass brings the sync, event, file and SPU-group syscalls closer to the SDK.
RSX and graphics
- Tiles over main memory (@n0madic, #569):
a tile bound with location MAIN is now tiled for every RSX access, as on the
hardware, rather than read and written linearly. Block-compressed (DXT) 3D
textures go up as volumes, in NVIDIA's VTC slice order (#585), and a
recreated depth target's snapshot is released once (#604). - GCM (@rigaz29):
GCM_FIFO_SEGMENT=<bytes>
hands the command ring out in segments, as libgcm does, so the walker can
start on a frame while the title is still writing it (#566; unset, nothing
changes). Offset tables follow later maps and unmaps, a report is held until
the SPU task round it signals has caught up, FP helpers are emitted on
branched programs, and X16 and DDX/DDY are handled (#635). The FIFO walker
decodes the new-style JUMP (@undecuple,
#675), and the tile and zcull call lines print only in verbose mode (#676).
The context end sits at the wrap JUMP slot,begin + size - 4
(@MatRanc, new, #648), and
GCM_HANDLER_THREAD=1delivers handlers from a dedicated thread (#647).
cellGcmGetConfigurationreports 249 MiB of local memory, which fits a
28-bit heap size field (@StepanovGV2021,
new, #660). - D3D12 (@DriifterSelf, new):
descriptor ranges cover all 16 texture units, the offscreen target limit
goes from 16 to 64, linear texture row pitch is tracked, and
D3D12_NO_DBGturns off the debug layer (#600).QUAD_STRIPandPOLYGON
draw (#617), and unnormalized texture scaling reaches the fragment-program
pipeline (#618). Both renderers pick the high-performance adapter, with a
WARP fallback (@undecuple, #669), and a frame with no RSX commands
presents the CPU-blit scanout (@xuxinsss,
#695). - Metal:
PS3_AA=smaa(SMAA 1x),PS3_VIBRANCEandPS3_CONTRASTin the
present pass, all off by default
(@erikomis, #470). The depth-bounds test is
emulated where the backend has none (#694), and the MSL cache names the
translator by a hash of its sources (@n0madic, #609). - Vulkan (@tekulvw): R32F and RGBA32F
colour targets (#681), and stale engine releases kept off live objects
(#682). - Draw engine and decompilers:
SET_ZMIN_MAX_CONTROL's depth clamp is
honoured (@erikomis, #693), explicit current vertex colours are preserved
(@tekulvw, #658), missing vertex attribute components expand with
w = 1.0 (@DriifterSelf, #597), and fragment programs honour the
per-source input precision modifiers (@undecuple, #670).
SPU and SPURS
- SPURS (@rigaz29, #629):
CellSpurs2with 32 workloads,
cellSpursInitializeWithAttribute2, Taskset2 and Task2, and tasks an SPU
creates. These were faked asCELL_OKor stopped at 16 workloads before.
argTasksetis carried through the taskset attribute (@MatRanc, #643),
maxContentionis clamped andcellSpursRequestIdleSpuimplemented (#649),
andSPURS_IDLE_MAXcaps the kernel's idle back-off, default unchanged
(@MaChInEgUn3, #659). - Relocatable lifts (@MaChInEgUn3, #636):
spu_lifter.py --reloclifts
position-independent SPU code once and runs it wherever a title copies it in
local store. - Faster paths: quadword LS access as one load or store plus a word-swap
pshufbon SSSE3 x86 (SPU_LS_VEC, #637); MFC parameter channel writes
latch without amfc_forlookup (#626); the lock-line spin sleeps after
about 1 ms (#666), and the holder list is a contiguous, prefetched array
(#672) (all @MaChInEgUn3). NEONfiandcfltson ARM64 (@tekulvw,
#677) and a four-lane SSE4.1 form of the single-precision helpers (#683).
The interpreter decodes through one 2048-entry table indexed by
insn >> 21, generated bytools/gen_spu_interp.py
(@mmkzer0, new, #688). - Channels (@MaxLeiter, new, #619):
ordered wakeups, a maskedRdEventStat, a word-sized SRR0 and an aligned
atomic LSA. Address-only overlay registries reject unrelated large GETs
(@tekulvw, #654).
PPU and lv2
- Conformance (@MaxLeiter): sync primitives — trylock
EDEADLK,
timeouts, rwlock timed locks and destroy rules, lwmutexEBUSY(#621);
event queue destroy honours its mode, and a timed receive runs to an
absolute deadline (#622); the Windows join no longer frees the slot under
the exiting thread (#623); SPU thread group destroy, start state and error
returns (#624); HLE heapdelete_heapand bounds, and the boot window's
close quits throughps3_host_quit(#625). A contended
sys_lwmutex_trylockreturnsCELL_EBUSY
(@ohkora, new, #684). - Threads (@tekulvw): the executable's primary thread priority is
honoured (#651), and completed callbacks are told apart from missing
dispatch (#652). The main thread's stack address and size are filled in
after it registers (@xuxinsss, #596). - Lifter and loader: the module TOC is recovered from the OPD majority
when there is no.gotsection name (@xuxinsss, #691). Per-thread caches
for HLE NID lookups, profiler breadcrumbs and indirect-call targets, and
exact VMX converts (@rigaz29, #634).vmaddfp/vnmsubfpwithout a libm
call per lane (@undecuple, #674). sys_memory_container_get_sizereturns the right value, and syscall 350
is registered (@MatRanc, #644).
HLE libraries
- Files: SDK open flags and error codes in
sys_fs, and
EBADF/EMFILE/EINVAL, file times and dot entries in cellFs
(@MaxLeiter, #620).cellFsAioWrite(@MatRanc, #641) and
cellFsFtruncateon the active fd table (#645).PS3_DEV_FLASHmay name
several roots (@n0madic, #605). - Audio and media: cellAdec decodes AC3 through the run-time FFmpeg
loader (@undecuple, #671); cellAudio'sAUDIO_WAVandAUDIO_PEAKwork
on the POSIX mix thread, andAUDIO_RATEhas no holes (@n0madic, #606);
PS3RECOMP_ATRAC_LGPL=OFFlinks a stub in place of the LGPL decoder (#611).
cellPamf reader calls on an uninitialised reader returnINVALID_ARG
(@ohkora, #685), and Sail keeps its allocator argument (@tekulvw, #653). - System and network: cellGame reports 40 GiB − 256 KiB free above 4 GiB,
sohddFreeSizeKB * 1024cannot wrap (@erikomis, #692). cellVideoOut
reports stereoscopic 3D resolutions unavailable (@MatRanc, #642).
cellSysutilNpEulaChecklegacy stub (@DriifterSelf, #616). sceNp answers
presence details and entitlement lists offline (@tekulvw, #679);
sceNpSignaling gives connections for Matching2 room members, with context ids
from 1 andActivateConnection(@undecuple, #690); cellSysutilAvc2
exports Load, Unload and the setters (#689). cellVoice's port functions cite
their SDK references (@tekulvw, #487). - Input: the keyboard fallback on pad port 0 works on macOS and with SDL
(@n0madic, #612).
Platforms and build
- macOS (@n0madic): a Quit item in the app menu and no alert sound on a
key press (#613); a resizable window that keeps the aspect ratio, and
PS3RECOMP_FULLSCREEN(#614). Apple Silicon setup docs match CI
(@Tzeentchnet, #656), walker profiling is
bounded by elapsed time (#657), and CI runs onmacos-15(@tekulvw, #680). - MinGW:
ppu_loaderbuilds with GCC (@n0madic, #610); header-defined
shared data usesselectany, andtimespec_getworks on msvcrt
(@undecuple, #668). - Linux: the templates use the Vulkan backend when it is built
(@MatRanc, #640). - The runtime exports its probed SSE4.1 requirement to consumers (@tekulvw,
#678).
Tooling and tests
ps3_env_once()looks an environment switch up once per name, and replaces
thegetenvcalls on the SPURS job, workload dispatch and cellFs paths
(@erikomis, #515).test_trophy_registration(#607) andtest_gcm_flip_status(#608) link and
run in CI again (@n0madic).sync_stresstakes tick differences modulo
2^32, so it passes after 24.8 days of host uptime (@undecuple, #627).
Known issue
- You Don't Know Jack's boot hang from v0.18.0 is unchanged: v0.18.0 and
this release reach the same point on the regression gate. The other four
gate ports match v0.18.0 too.