Repository navigation
feat(agc): implement the occlusion query size queries - #2848
alfalfa-star wants to merge 2 commits into
Conversation
|
Same question as #2847: which title calls |
|
Windows validation of the current head Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
Validation run with Claude Code assistance. |
adriadam10
left a comment
There was a problem hiding this comment.
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:
- @oneandonlydean's question above is still open: which title calls
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.
sceAgcDcbBeginOcclusionQueryGetSize returns 16 bytes for query type 0 and 288 for type 1, and sceAgcDcbEndOcclusionQueryGetSize returns 16. Other query types throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 288 bytes for type 1 come from OpenAGC alone; prosper's console golden passes no type and SharpProspero declares the argument as a uint queryMode. Type 1 now throws like the other unknown types until a title uses it, and TechnicalDebt keeps the value as unconfirmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
81fc6ac to
cb95447
Compare
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the rebase and for making type 1 throw; those two points are done, and agc_commands fails 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.
|
No title I can run reaches
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
Tested: Linux, GCC, Release, RX 9070 XT (RADV): full AI-assisted: yes (Claude Code) |
…l bridge (#373) * Apply upstream open AGC PRs for the remaining stubbed imports Ports upstream boykopovar/AnyPS5 open PRs into core/libs/prx (libs and their tests only; docs excluded): - boykopovar#2847 DCB/ACB marker span builders - boykopovar#2848 occlusion query size queries - boykopovar#2849 submit validation reported as unavailable - boykopovar#2850 disabled shader instrumentation accepted - boykopovar#2851 GPU capture reported as unavailable, shader debugging status - boykopovar#1060 sceAgcAcquireMemSetEngine Conflicts between the PRs (Unimplemented.cpp stubs and shared test files) were resolved by keeping every change from both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Port libSceAgcDriver leaf imports and remaining libSceAgc rows to the Metal bridge Binds the 35 libSceAgcDriver imports and 17 libSceAgc imports through SceAgcImports without dereferencing guest pointers on the host: - Driver leaf exports (resource registration, capture, submit validation, equeue queries) run the upstream bodies through prx bridge descriptors (upstream-prx/AgcDriver.cpp); the 7-argument registrations read user data from the caller stack. - ACB flip and rendering wait emit the Metal driver packets, as the DCB rows do. - Marker spans, occlusion sizes, shader instrumentation, AcquireMemSetEngine and branch _0300 patchers reuse upstream encoders on host copies. - GetRegisterDefaults2(+Internal) publish the upstream tables in a guest window above the gate table; Create/UpdatePrimState run on host copies of the stage type and special registers. New CTest anyps5_cpu_agc_driver_leaf is in NATIVE_REQUIRED_TESTS. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
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.ctestonmain90c152e merged with this branch, feat(agc-driver): report GPU capture as unavailable #2851 and feat(npwebapi2): implement sceNpWebApi2SetRequestTimeout #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 feat(agc): implement the DCB and ACB marker span builders #2847, so whichever merges second needs a rebase🤖 Generated with Claude Code