feat(libSceGnmDriver): add mode-aware draw command writers #18251
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18251"
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 johnohhh1 on 2026-11-11T00:15:21Z.
What
Adds nine normal-provider draw writers requested by #17581, inFAMOUS Second Son (CUSA00223 01.07, bring-up #8214). The report stops at
FAIL: unresolved ELF import HlTPoZ-oY7Yand other missing imports. This supplies nine of 47; it does not claim the complete load stop or title startup is fixed.The direct/indexed/indirect/multi/count writers choose base/Neo packets through
sceKernelIsNeoMode, preserve full-width addresses, predication and NOP payload, and refuse invalid arguments or unsupported metadata without writing. Existing Neo providers stay unchanged._nid_disambig1keeps host names distinct while retaining the guest NIDs.Packet semantics: shadPS4 a808e762. Normal-provider identities: PS5 3.20 inventory b2a77c09. Console packet equivalence and optional Neo compatibility rejection remain debt. #17942 and #17711 cover different functions; neither is a prerequisite.
Tested
Head
e7dbe41996149e69467defaa91298eb32ed4219b.bc94a8e423ea026aadbb29165fed1ad2db471154/PR, identical fixtures, RTX 5070 /595.99.02b9474f01fd0231accb36b8d0c6b98a40307aabf3+ this headLinux uses Ubuntu 26.04.1/GCC 15.2/Release, required Vulkan, disabled shader cache, explicit ICDs and Khronos validation. No skips/VUIDs/missing-layer warnings. The four normal-provider cases fail on main at the missing symbol; fixed-Neo and existing controls pass. These new cases check CPU packet words; the existing submission regression performs GPU work.
Six writable cases each check 222,210 packet/refusal outcomes; absent-metadata cases check 203. Coverage includes stages and 16×16 SGPR pairs, boundary/alignment errors, untouched words/guards and full-width addresses. All eight cases also pass against actual NID-patched PRXs; the normal PRX exports all nine NIDs without a Neo dependency.
Full configured Linux build, public-header audit/standalone compilation, whitespace and conventions pass. JJenkx's Windows three-repeat report and Kikoarl's Linux/Intel three-repeat report are independent integrations of the same head. Current-main merge preview is clean. No title, console, native AMD or local Windows run claimed.
The existing-main name warnings are the intentional normal/Neo providers. The prior failed-closed #14212 comparison changes only blank lines in the shared debt file; no confirmed peer implementation overlap was found. Approved review retained.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-11T00:48:48Z.
Review: APPROVED
Reviewed — looks good
The nine mode-aware writers match the pinned packet reference, and all eight new Windows cases pass; PS5 console equivalence remains an explicitly documented limitation.
What I ran
Reviewed head
e7dbe41996149e69467defaa91298eb32ed4219b; currentmainbase for the clean merge preview and no-build precheck was459eb5a98f92dbdfa259c8e527a7ec94532c5802. Environment: Linux 6.1, Python 3.11.2, GCC 12.2.0. The Windows workflow tested the same PR head merged ontob9474f01fd0231accb36b8d0c6b98a40307aabf3, beforemainadvanced.Results
f2efd2ddb836.Exact no-build precheck table and command output
The precheck excludes build-dependent checks by design. Its registration heuristic flagged the new C++ test, which I manually confirmed is explicitly registered by
core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt.git diff --check 459eb5a98f92dbdfa259c8e527a7ec94532c5802...e7dbe41996149e69467defaa91298eb32ed4219b/usr/bin/python3 tools/check_conventions.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --title feat(libSceGnmDriver): add mode-aware draw command writers --body /tmp/anyps5-pr-precheck-18251-post/pr-body.md/usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 459eb5a98f92dbdfa259c8e527a7ec94532c5802 --head e7dbe41996149e69467defaa91298eb32ed4219b --json/usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18251-post/head-e7dbe4199614-7aaf8e00 --json core/libs/prx/libSceGnmDriver/CMakeLists.txt core/libs/prx/libSceGnmDriver/Export.Draw.cpp core/libs/prx/libSceGnmDriver/include/DrawApi.hpp core/libs/prx/libSceGnmDriver/libSceGnmDriver.hpp core/libs/prx/libSceGnmDriver/tests/CMakeLists.txt core/libs/tests/GuestGnmDrawWriters.cpp docs/dev/debt/libSceGnmDriver.mdCommand output from
check_conventions.py:Command output from
pr_abi_audit.py:Command output from
pr_test_quality.py:Current-base merge preview
Exact Windows CI lines for the new tests
The hosted Windows job built the test executable and ran these cases for this head merged onto base
b9474f01fd0231accb36b8d0c6b98a40307aabf3:mainadvanced after the Windows run; the current-base merge preview is clean. The intervening diff includes.github/workflows/build.ymland other unrelated project files, but no GNM Driver source. The Windows workflow has not been rerun on the newer base.Negative control
Findings
Blocking
None found in the reviewed code and tests.
Non-blocking
The packet tests verify serialized words and guards, not execution of these new draws on a PS5. The PR records console equivalence as unverified technical debt.
Sources
Not verified
I did not run a local build or CTest, and no PS5 console execution was performed. The PR author reports a Linux full build, focused tests and packet runs on NVIDIA and llvmpipe; I did not reproduce those runs. The Windows job tested this head on the earlier base
b9474f01fd02, not the current basef2efd2ddb836.To get this to a good state
No code change is requested. If a new head is pushed, rerun the exact-head precheck and review the updated diff and checks before relying on this approval.