feat(libSceGnmDriver): implement sceGnmRequestFlipAndSubmitDone #23696
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/23696"
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 Iamharshit00 on 2026-11-19T13:31:43Z.
What
sceGnmRequestFlipAndSubmitDone(NIDgObODli-OH8) as the six-argument request-flip path: reserve the EOP flip withsceVideoOutSubmitEopFlip, patch the 0x100-byte/64-dword command buffer with a WRITE_DATA surface lock and a token RELEASE_MEM, submit through the locked GnmDriver submit path, then end the frame.0x80d11081; null or unwritable command buffers return0x80d11000as a host-safety fallback.Tested
python tools/check_conventions.py --base origin/main,python tools/debt_fold.py --check,git diff --check, andpython tools/guest_pointer_audit.py libSceGnmDriver(19 pre-existing findings, none for this export).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-22T18:40:39Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review supports merging, though the implementation’s console behavior remains unmeasured.
What I ran
Reviewed head
7133e14c341e4a2d01be7942fde546694b2949bfand the prepared diff. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run. PS4 and GPU behavior, including the EOP completion label, NOP payload, and submit-done boundary, was not verified. All changed files listed in the manifest were read; no changed files were excluded.
files.jsonwas not available in the prepared review folder, so additional exclusions beyond the manifest were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T17:24:17Z.
Review: COMMENTED
sceGnmRequestFlipAndSubmitDonereserves a queue entry throughsceVideoOutSubmitEopFlipbefore copying or submitting the packet. If the command-buffer copy fails, it returns an error with the reservation still pending. Submission failure can also leave the token without a completion packet. One abandoned token occupies a flip queue slot and repeated failures can leave later requests reporting a full queue. Please arrange for an unsubmitted reservation to be released on every failure path. The current short-buffer check runs before reservation, so it leaves this path uncovered.This finding is from source inspection at
7133e14c34. The branch also has a merge conflict inlibSceGnmDriver/Export.cppagainstmainat9fcd37e4ea, which prevents the paired Vulkan run as submitted.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.