feat(libSceGnmDriver): add mode-aware VGT control writers #17942
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17942"
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-10T00:14:07Z.
What
Adds
sceGnmSetVgtControlandsceGnmResetVgtControlto normallibSceGnmDriver. Issue #17581 reports these missing imports for inFAMOUS Second Son (CUSA00223 01.07, bring-up #8214):The provider selects base
SET_CONTEXT_REGor native NeoSET_UCONFIG_REGthroughsceKernelIsNeoMode. Invalid arguments return −1 before the mode query; unsupported/absent metadata throws without writing. Existing Neo implementations remain unchanged._nid_disambig1keeps host names distinct while retaining guest NIDs.Semantics/signatures: shadPS4 a808e762. Normal-provider identities: PS5 3.20 inventory b2a77c09. Optional compatibility substitution is not added; console packet equivalence remains debt.
This supplies two of 47 reported imports; it does not close #17581 or claim title startup. #17711 and #18251 cover different functions, with no runtime prerequisite here.
November 14: merged current main to include its #19489 socket-test revert and request fresh CI. Original contribution history is retained; no new feature or test relaxation is added.
Tested
Fresh head
58a548988b4b9e33e07c71e7222ad4f77a2c8884, frozen main3c620812fbf9040bd8aa30612a12bb1b012f212f. Identical fixtures, separate rebuilt main/PR production; Ubuntu 26.04.1/GCC 15.2/Release, SPIRV-Tools enabled:Both full configured Linux builds pass. Four normal-provider cases fail on main at the missing exports; all eleven controls pass. Required Vulkan, disabled shader cache, explicit ICDs, Khronos validation 1.4.341 and
VK_LOADER_DEBUG=layer: layer insertion confirmed on both devices, no skips, missing-layer warnings or VUID errors. New VGT cases check CPU packet words; the existing submission control performs GPU work.The fixture is byte-identical to the preceding submitted version. Writable provider/mode cases exhaust 1,024 argument combinations, reset output and guards; invalid arguments/metadata leave the buffer untouched. Earlier NID-patched-PRX tests and public-header audits remain in the discussion, tied to their original revisions.
Earlier hosted Windows job on
eefa9b38f7built successfully and passed all six VGT cases, but failed only the socket assertion reverted by #19489. It is not a Windows run of this refreshed head. Fresh hosted checks are pending after publication; no green result is assumed.Conventions and clean current-main merge preview pass. Existing-main name warnings are intentional second-provider names; the previous #14212 shared-debt comparison contains only blank-line additions. No full runtime suite, fresh Windows/macOS, native AMD, console or title execution claimed.
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)