fix(libSceAgcDriver): support unified-memory GPUs in draw input mirror and reuse tests #25537
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/25537"
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 shripad-jyothinath on 2026-11-22T07:52:57Z.
What
Support unified-memory GPUs in AGC draw input mirror and reuse tests in
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp.On unified-memory devices (integrated GPUs / UMA where all memory heaps are device-local, such as Intel Arc MTL, AMD APUs, Apple Silicon),
Recorder::mirrorDrawInputdeliberately avoids allocating a separate device-local mirror buffer because all memory is already on a device-local heap.This update conditions mirror expectations on
context.HostMemoryType(~0u).has_value():vertexWindowMirrorTests: Return early if!device.GetContext().HostMemoryType(~0u).drawInputMirrorTests: Computemirrors = Recorder::DrawInputMirrors() && context.HostMemoryType(~0u).has_value(), verifying that inputs are kept in place without mirroring when all memory is device-local.drawInputReuseTests: Computemirrors = Recorder::DrawInputMirrors() && context.HostMemoryType(~0u).has_value(), ensuringservedFromexpectscopy.buffer == hostwhen mirrors are not allocated.main(): GuardvertexWindowMirrorTests(device)withdevice.GetContext().HostMemoryType(~0u).has_value().Tested
Ubuntu 24.04 (Linux 7.4.0-rc1):
ctest --test-dir build -R agc_draw_input -Vpassed 6/6 tests (previouslyagc_draw_input_mirrorsandagc_draw_input_reusefailed).ctest --test-dir build -R "^agc_driver_recorder$" -Vpassed.VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.json ./build/tests/agc_driver_recorder_tests --draw-input-mirrors-onlypassed.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-22T07:56:25Z.
Review: APPROVED
Reviewed — looks good
Nothing in the inspected changes blocks merging; the UMA-aware mirror expectations match the implementation’s decision to return no mirror when no host memory type exists.
What I ran
Reviewed head
c8167481e76b804cb86e787d1f5261485c33e1f0. No commands or tests were run; the reported test results are from the PR description.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The changed file was read at all five changed line ranges, with surrounding functions and related implementation. No files were excluded by review inspection; the complete 19,035-line file was not read. Runtime behavior, the reported GPU and llvmpipe tests, and other platforms were not independently verified.
To get this to a good state
Nothing is required.
Pull request closed