feat(agc): implement the DCB and ACB marker span builders #2847
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2847"
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 alfalfa-star on 2026-10-10T16:36:50Z.
What
Implements the four libSceAgc marker span builders that still called
NotImplemented_nid_no_patch:sceAgcDcbPushMarkerSpan,sceAgcDcbSetMarkerSpansceAgcAcbPushMarkerSpan,sceAgcAcbSetMarkerSpanThey take the marker text with an explicit length,
(buffer, text, length, color), and write the same custom NOP packet (PUSH_MARKER, 0x0b) assceAgc*PushMarker. The span's bytes are copied and a terminator is added, so the driver's existing marker check (unterminated marker text) accepts the packet. TheSetforms are a push and a pop, assceAgc*SetMarkeralready are. The color is not encoded, as with the existing markers.Agc::Marker::Pushgets a length overload, and the NUL-terminated form now calls it with no change in output. A null text with a non-zero length, or a length above the 0x4000-dword packet limit, throws.The signature comes from OpenAGC only, so it is recorded in TechnicalDebt. OpenAGC writes a color dword and the text without a terminator; this PR keeps the packet the driver already parses.
Tested
Linux (Arch, GCC), Release build:
agc_commands: newtestMarkerSpanschecks that a span is cut at its length, that a full-dword span gets a terminator dword, that the DCB and ACB packets match, that a span gives the same packet as the marker of the same text, and that the set form is a push and pop pair. It also checks that invalid arguments throw without touching the buffer.ctestonmain57f96fd2: 698/698 passed (4 skipped for lack of a display).tools/check_conventions.py --base upstream/mainpassed.tools/progress.py: +4 implemented in libSceAgc.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)libSceAgc/tests/Commands.cpplike #2848, so whichever merges second needs a rebase🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:37:13Z.
Progress report (
57f96fd→afae8b4)📈 System libraries: 84.64% (+0.12%, +4 implemented functions)
✅ 4 implemented
sceAgcAcbPushMarkerSpansceAgcAcbSetMarkerSpansceAgcDcbPushMarkerSpansceAgcDcbSetMarkerSpanImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:17:59Z.
Which title calls
sceAgcDcbPushMarkerSpanor the other span builders on main? With the title ID and the log line where it stops this can go in; otherwise I'll close it until one does.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:41:43Z.
Windows validation of the current head
afae8b42merged ontomain262c0316.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget.ctest -j8 -E "^agc_driver_|^video_out_flip"passes 462/462, including theagc_commandunit tests this change extends.agc_driver_*) were not run; on this host two of them fail on unchangedmainfor unrelated reasons (#2755/#2777 family).Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T00:08:51Z.
Review: CHANGES_REQUESTED
Build and
agc_commandspass here on the PR merged onto main, and the new test fails without the change, so the code and test look fine. Two things block merging:*MarkerSpanbuilders? Please add the title ID and the log line where it stops, or a link to the Discussion thread. Nothing in the Astro's Playroom imports uses them either.(buffer, text, length, color)rests on OpenAGC alone. prosper lists all four asunmeasured(its probe calls faulted on console), so there is no measured source. Without a title calling them, an unverified argument order and layout is guesswork that main currently rejects by throwing. If a title does call them, a disassembly or call-site excerpt showing the argument registers would settle it.Once a title is named, this can go in; the Windows run from @screamm is appreciated.
Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T01:57:35Z.
Windows run, since the PR has no Intel or Windows results yet: Windows 11, WinLibs GCC 15.2.0 r7, Release, merged onto
maind31b57a4in one build with #3217, #3202, #3167, #3137, #2863, #2849 and #2847, on an RTX 5060 Laptop and the Arrow Lake iGPU (ANYPS5_GPU=Intel).agc_commandsandagc_initialization(Commands.cpp) pass.Full
ctestof that build on both GPUs has no failure that isn't also on plainmainhere (guest_filesystemneeds the symlink privilege, #3169; the Intel ones are listed on #2114 and #3207).AI-assisted (Claude Code); I ran this on my machine.
Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:09Z.
No title I can run reaches the marker span builders on current
main(90c152e8):color views of several array slices are unsupported(#2102). My local test branch gets past that and other stops; there it played 385 s with scripted input, through New Game and a save, without calling the marker span builders.not implementedline before it.I'm converting this to a draft until a title stops at it. Then I'll post the title ID and the log line and mark it ready.
On the signature: no second source exists. sharpemu, REmu, shadPS4 and SharpProspero only list the four names, and prosper's probes faulted on console (
agcbuild.unmeasured.tsv). So(buffer, text, length, color)rests on OpenAGC alone, as the PR says. When a title reaches one of them, I'll add the call site's argument registers.Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2849, #2850 and #2852;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:39:58Z.
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line.
Pull request closed