feat(libSceGnmDriverForNeoMode): set the embedded fullscreen VS and PS shaders #9221
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9221"
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 YossiYad on 2026-10-21T15:32:12Z.
What
sceGnmSetEmbeddedVsShaderandsceGnmSetEmbeddedPsShaderthrew. They now write the register packets of shadPS4's gnmdriver.cpp:0x8EEE00FFThe program address points at the shader code in
include/EmbeddedShaders.hpp, 256-byte aligned. That code is the instruction listing shadPS4 writes next to its words, assembled with LLVM 19llvm-mc -arch=amdgcn -mcpu=bonaire; the steps are in this comment. The binary header and register block that follow the code on the console are left out, since nothing here reads them. On the console the shaders sit at0xfe000f00; shadPS4 also points at its own copy. As in shadPS4, the size and modifier arguments are not checked.Not compared with console output, and nothing in AnyPS5 consumes a GNM command buffer yet; the debt entry says both. The pending count drops from 65 to 63.
Tested
Linux (Fedora 44, GCC, Ninja,
-DBUILD_TESTING=ON), based onmain5d3ab7791d(the fullctestline is from the earlier basececb540a63):guest_gnm_neo_embedded(core/libs/tests/GuestGnmNeoEmbedded.cpp) compares every packet word and checks that nothing past the packets is written.SPI_SHADER_PGM_LO/HIwords and checks the shader code found there: the first instruction, the export ands_endpgm.main.ctest: 1794 of 1802 pass. The 8 failures fail the same way onmainon this machine and do not link this library:application_heap_scripting,application_heap_lazy,agc_driver_guest_memory_lifetime,agc_driver_image_array_window_past_layer_limit,agc_driver_tessellationand the threenet_dontwait_blocking_*cases.tools/progress.py --compare: libraries +0.02%, 2 functions implemented, none lost.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyfindscore/libs/CMakeLists.txtshared with other PRs. It also finds my #9208 and #9212, which implement other functions of this module; whichever merges later needs a rebase of the pending count.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 YossiYad on 2026-10-22T12:58:44Z.
Rebased onto
main8b3a6ba88after #9201 (heade75e66348). #9201 already definesFailure(0x8EEE00FF) for this module, so I dropped this PR's copy and merged the two anonymous namespaces. The pending count is 68, which matches the throwing exports left inExport.cpp.guest_gnm_neo_embeddedandguest_gnm_neo_retailpass 3 of 3.