feat(agc): implement the occlusion query size queries #2848
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2848"
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:53Z.
What
Implements the two libSceAgc occlusion query size queries that still called
NotImplemented_nid_no_patch:sceAgcDcbBeginOcclusionQueryGetSize(type): 16 bytes for type 0. Every other type throws, type 1 included.sceAgcDcbEndOcclusionQueryGetSize(): 16 bytes.The builders are inline in the SDK and not exported, so these sizes can't be checked against a packet the library writes. Sources:
hle_agc_getsize.cpp) and SharpProspero all agree.All of this is recorded in TechnicalDebt.
Tested
Linux (Arch, GCC), Release build:
agc_commands: newtestOcclusionQuerySizeschecks type 0, the end size, and that types 1, 2 and 0xff throw.ctestonmain90c152e8merged with this branch, #2851 and #2853: 813/813 passed (4 skipped for lack of a display).tools/check_conventions.py --base upstream/mainpassed.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 #2847, 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:38:11Z.
Progress report (
af45296→cb95447)📈 System libraries: 85.52% (+0.06%, +2 implemented functions)
✅ 2 implemented
sceAgcDcbBeginOcclusionQueryGetSizesceAgcDcbEndOcclusionQueryGetSizeImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:00Z.
Same question as #2847: which title calls
sceAgcDcbBeginOcclusionQueryGetSizeon main?Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T22:41:46Z.
Windows validation of the current head
81fc6ac4merged 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:55Z.
Review: CHANGES_REQUESTED
Checked the diff against the sources it cites. The end size (16) and type 0 (16) agree with OpenAGC and prosper. Three things before this can merge:
sceAgcDcbBeginOcclusionQueryGetSizeon main? A title ID and the log line where it stops are needed.Stats.cpp:26: 288 for type 1 has a single source (OpenAGC'sgame_compat.c). prosper's console golden returns 16 without setting an argument, and SharpProspero declares the argument asuint queryMode, so neither confirms it. A value no title or second reference backs should throw like the other types; keep type 0 and the end size, and leave 288 in TechnicalDebt as unimplemented until a title shows type 1.tests/Commands.cppnow conflicts withmain(same spot as #2847's additions). Please rebase and rerunagc_commands; the type 1 check becomes anexpectFailurecase.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T09:39:53Z.
Review: CHANGES_REQUESTED
Thanks for the rebase and for making type 1 throw; those two points are done, and
agc_commandsfails without the change as it should.One thing is still open, the same one @oneandonlydean asked above: which title calls
sceAgcDcbBeginOcclusionQueryGetSize(or the End form) on main? A title ID and the log line where it stops are needed before merging. If none does yet, say so in the description and we can decide whether the three agreeing sources for 16/16 are enough.Imported from boykopovar/AnyPS5. Originally posted by alfalfa-star on 2026-10-11T09:45:11Z.
No title I can run reaches
sceAgcDcbBeginOcclusionQueryGetSizeon currentmain(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 callingsceAgcDcbBeginOcclusionQueryGetSize.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.
Changed (rebased onto
main, which resolves thetests/Commands.cppconflict):uint queryMode.agc_commandschecks type 1 withexpectFailure.Tested: Linux, GCC, Release, RX 9070 XT (RADV): full
ctest813/813 (4video_out_flip_*skipped) onmain90c152e8merged with this branch, #2851 and #2853;tools/check_conventions.pypasses.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-14T02:40:04Z.
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