[Runtime correctness] Complete shader modes, Linux exception delivery, and thread cancellation #1668
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Sanjaysrinivas on 2026-10-08T16:03:08Z.
Split from #1659. Category: runtime correctness and completeness across Windows and Linux.
Problem and desired result
A title can convert and resolve its imports while still depending on shader or kernel behavior the emulator does not implement correctly. This tracker covers three concrete areas from the review: per-shader floating-point modes, guest exception delivery, and thread cancellation.
The goal is verified observable behavior with clear support limits. A successful API return, an exported symbol, or one title getting farther is not sufficient evidence that the general behavior is correct.
Baseline and evidence boundaries
Source baseline: upstream
4b005b229e24be9ec3f185def9e59cbc03aa9e4a.The source gaps below are present at that commit. Existing reports and proposed fixes are linked for coordination; their claims retain their original evidence level. This issue does not assert that every title uses these features or that the unconfirmed Windows lock report has been reproduced.
Workstream A: shader floating-point modes
Use existing issue #981 as the detailed implementation/semantics discussion rather than creating a parallel competing specification.
That issue records the need to carry
IEEE_MODE,DX10_CLAMP,FLOAT_MODE, andFP16_OVFL, with hardware measurements tied to the actual mode. A shader can also change mode during execution.ScalarInstructions.cppcurrently accepts only round-to-nearest-even fors_round_modeand explicitly rejectss_denorm_mode.CONTRIBUTING.mdand #843.Validation evidence must state the guest mode, reference/hardware source, input/expected output, host GPU/driver, and observed result. Default-mode measurements must not be presented as evidence for every mode.
Workstream B: guest exception delivery
sceKernelRaiseExceptiondispatches throughRaiseOnon Windows, while the Linux branch callsNotImplemented_nid_no_patch. Windows support already exists from #760; this is not a request to implement it from scratch.GuestRaiseException.cpp, which already checks actual handler thread identity and wait interactions.Tests should coordinate thread states with barriers/events rather than assume a sleep makes a race occur. Record accepted delivery counts and the contract for rejected deliveries; do not equate a zero return with handler execution.
Workstream C: thread cancellation
scePthreadCancelcurrently calls the unimplemented-operation helper.Shared validation matrix
Delivery plan and related title evidence
Implement separate, reviewable PRs per subsystem or semantic family, following the repository's one-topic branch rule. The category issue coordinates progress; it does not require one enormous runtime PR.
Use reproducible title/homebrew reports to prioritize actual blockers. #1578 documents missing-import startup failures and #1497 documents a loader/import problem; they are related title evidence, not proof that the three workstreams above caused those failures. Link each symptom to its diagnosed implementation issue.
Acceptance criteria
completedcompatibility status.Related category issues
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:26:49Z.
Closing: the concrete work here is already tracked in #981, #1488 and the linked PRs. File a separate issue for a specific failure with its log line.