perf(agc): keep draw snapshots in resizable BAR memory #9712
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9712"
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 panicDa3m0n on 2026-10-22T09:32:31Z.
What
Summary. Draw snapshots of read-only storage buffers and vertex copies go to resizable BAR memory when the device exposes one, and stay in host memory otherwise or with
APS5_NO_BAR_SNAPSHOTS=1; index copies stay in host memory. On an RTX 4070 Ti SUPER at Astro Bot's Crash Site, three alternating rounds againstmain8499ea52egive a frame p50 of 152.8-160.3 ms instead of 174.5-174.6 ms, and GPU time per present of 91.6-96.4 ms instead of about 152 ms. New tests cover the memory choice, the index copies and the mapped-buffer fallbacks, and each fails on a deliberate mistake.Draw snapshots of read-only storage buffers and the vertex copies of draws now live in device-local host-visible memory when the device exposes a resizable BAR over its device-local heap (a host-visible device-local type on a heap of at least 4 GiB), and in host memory otherwise. The CPU still fills them with
memcpy, but the GPU reads them from VRAM instead of over PCIe. Index copies stay in host memory: the CPU scans them for the highest index and the mesh restart table, and those scans read the same copy the draw binds.The CPU never reads BAR memory back on the draw path: refreshing a stale snapshot rewrites its changed blocks without comparing them.
APS5_NO_BAR_SNAPSHOTS=1keeps the snapshots and vertex copies in host memory as before.A mapped device-local
Buffertakes host memory in three cases:memoryTypeBitsis mapped device-local, since Vulkan reports the supported types per resource and they may exclude the BAR type the device lists;DeviceMemoryTypeplaces device buffers;RefusedDeviceMemoryFallback.Properties()then reports host memory, so refreshing such a snapshot compares its blocks again. The kept snapshots stay within the existing budgets: 1 GiB for storage snapshots and 1 GiB for draw inputs.Why: on an RTX 4070 Ti SUPER (driver 616.64, PCIe 4.0 x16) shaders read host memory at 6-8 GB/s sequentially and 1.4 GB/s scattered, against 650 and 92 GB/s from VRAM.
Tests:
snapshotMemoryTestsintests/Graphics.cppchecks the choice of memory:agc_draw_input_memorycopies indices, stores to the guest source, and checks that the copy is in host memory and keeps its highest index.MappedDevicePlacementintests/BufferPool.cppplaces a mapped device-local buffer and a slab within the budget, over it, after a refused allocation, and with the BAR type excluded from theirmemoryTypeBits, with and withoutVK_EXT_memory_budget.Related:
PrepareDrawBindings, so the second to land needs a small rebase.Context::HeapFitsfor the budget check thatDeviceMemoryTypeandMappedBufferPropertiesboth write inline, and takes a host type only when its heap has room. Whichever of the two lands second can use it inMappedBufferPropertiesandRefusedMappedMemoryFallback.CopyDrawInputas this pull request: this one picks the copy's memory, #9875 the bytes it reads. Merged together they conflict there, inCMakeLists.txtand intests/Recorder.cpp, and the second to land keeps both.add_library_test. If it lands first,agc_draw_input_memorymoves to that helper and the Depends line below names it.verifySnapshotscheck reads snapshots back on the CPU. With this change that read is uncached on device memory, slower but still correct.Tested
Windows 11 (10.0.26200), NVIDIA GeForce RTX 4070 Ti SUPER (driver 616.64, PCIe 4.0 x16), i7-11700K, 32 GB; Astro Bot (PPSA21567, 01.019.000) at Crash Site with its default settings, 3840x2160.
mainbelow is8499ea52e, the base of this PR.snapshotMemoryTests, without the heap-size check ofSnapshotMemoryProperties:a 256 MiB BAR window was taken. This ran on b5b8d4e27, which has the same check and test.agc_draw_input_memory, with index copies in snapshot memory:an index copy left host memory, so its highest index would be scanned from the guest instead of the copy.agc_buffer_pool(MappedDevicePlacement):a mapped device-local buffer over the device-local budget was not placed in host memory;Buffer: the refused allocation throws (vkAllocateMemory buffer ... Vulkan result -2);vkAllocateMemory buffer slab ... Vulkan result -2);a mapped device-local slab whose block exceeds the device-local budget was not placed in host memory;VK_EXT_memory_budget: the buffer whose mask excludes the BAR type throws (AGC graphics: required Vulkan memory type is unavailable);MemoryTypelookup in place of the mask check: the same throw with the budget extension.ctest -R ^agc_on this PR's head (895 tests): all pass except four, and three skip on this device (sparse host import, dma-buf import, stencil reference export).agc_driver_sample_order,agc_driver_sample_order_grid_referenceandagc_driver_sample_order_recipe_depth_locationsfail the same way onmain's build at3ca07d086on this machine ("the slopes did not leave depth both at and below the clear value").agc_compute_pipeline_capture_optional_byte_captimed out in the parallel run: it writes 256 MiB to this machine's slow temporary folder.VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andctest -V:agc_driver_draw_*,agc_driver_vertex_*,agc_driver_rect_list_*,agc_driver_mesh_index_cache,agc_driver_graphics,agc_driver_zero_stride_vertex_fetch), plusagc_draw_input_memoryon the head.main's build at8499ea52e(26 tests), on this PR's head (27) and on the head withAPS5_NO_BAR_SNAPSHOTS=1(27).VUID-error or awas not found but was requested by env var VK_INSTANCE_LAYERSline.Undefined-Value-ShaderOutputNotConsumed-DynamicRenderingand 1Undefined-Value-ShaderOutputNotConsumed.APS5_TRACE_SECONDS=150:5and no otherAPS5_TRACE_*orAPS5_PROFILE_*switch, with warm shader caches. Builds alternatemainand this PR in one session.Start-Process -RedirectStandardOutput), the same for all runs.APS5_HOST_IMPORT_MIB=13312. On this 32 GB machine the default host import budget is 8149 MiB, below what Crash Site's largest heaps need, so they fall back to copies. #6472 set that budget; #7844 changes it.performance_compare.pylistswindow.first_presentas the only configuration difference. The absolute times include the trace's own cost.Over the three rounds, frame p50 goes from 174.5-174.6 ms on
mainto 152.8-160.3 ms with this PR (−19.2, −14.3 and −21.7 ms per round), and GPU busy time per present from 152.0-152.6 ms to 91.6-96.4 ms. Index copies in host memory account for about 12-15 ms of GPU time per present against the first version of this PR, which kept them in BAR memory (83.5-88.1 ms against 98.3-99.7 ms, both ond6eafa54d).8499ea52eb8663c5148499ea52eb8663c5148499ea52eb8663c514Summary lines, in run order:
performance_compare.py, round 1
Performance comparison
8499ea52e5b8663c514eConfiguration differences
Frame and GPU times (ms)
Top phases (ms per frame)
performance_compare.py, round 2
Performance comparison
8499ea52e5b8663c514eConfiguration differences
Frame and GPU times (ms)
Top phases (ms per frame)
performance_compare.py, round 3
Performance comparison
8499ea52e5b8663c514eConfiguration differences
Frame and GPU times (ms)
Top phases (ms per frame)
trace_digest.py, run 1 (main)
seconds 150:5 from present 2938: 29 presents, frame p50 174.5 / p90 183.4 / p99 189.2 / max 189.2 ms, GPU busy 152.2 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
8499ea52e5, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 506.8, Driver.Packet.memory_wait 302.3, Driver.WorkerWait 156.6, batch 152.1, Driver.WorkerWait.dequeue_order 144.8, Driver.Packet.draw 78.7, Driver.Draw 77.5, Graphics.Draw 70.5, Driver.Packet.prepare_memory 58.7, Graphics.Draw.draw_and_resource_release 56.9
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest.py, run 2 (this PR)
seconds 150:5 from present 2753: 33 presents, frame p50 155.3 / p90 164.0 / p99 165.2 / max 165.2 ms, GPU busy 96.2 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
b8663c514e, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 446.9, Driver.Packet.memory_wait 275.8, Driver.WorkerWait 137.4, Driver.WorkerWait.dequeue_order 128.4, batch 96.2, Driver.Packet.draw 74.6, Graphics.Draw 73.5, Driver.Draw 73.4, Graphics.Draw.draw_and_resource_release 59.9, Driver.Packet.dispatch 43.2
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest.py, run 3 (main)
seconds 150:5 from present 2660: 29 presents, frame p50 174.6 / p90 182.9 / p99 185.6 / max 185.6 ms, GPU busy 152.6 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
8499ea52e5, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 497.9, Driver.Packet.memory_wait 298.9, Driver.WorkerWait 153.5, batch 152.4, Driver.WorkerWait.dequeue_order 138.5, Driver.Packet.draw 73.7, Driver.Draw 72.6, Graphics.Draw 68.9, Driver.Packet.prepare_memory 64.2, Graphics.Draw.draw_and_resource_release 55.0
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest.py, run 4 (this PR)
seconds 150:5 from present 4310: 32 presents, frame p50 160.3 / p90 167.4 / p99 172.9 / max 172.9 ms, GPU busy 91.6 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
b8663c514e, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 460.9, Driver.Packet.memory_wait 286.6, Driver.WorkerWait 144.0, Driver.WorkerWait.dequeue_order 134.5, batch 94.7, Driver.Packet.draw 79.7, Graphics.Draw 78.8, Driver.Draw 78.5, Graphics.Draw.draw_and_resource_release 65.5, Driver.Draw.shader_compile_and_link 44.4
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest.py, run 5 (main)
seconds 150:5 from present 2658: 29 presents, frame p50 174.5 / p90 183.5 / p99 184.9 / max 184.9 ms, GPU busy 152.0 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
8499ea52e5, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 500.3, Driver.Packet.memory_wait 298.8, Driver.WorkerWait 157.2, batch 151.0, Driver.WorkerWait.dequeue_order 143.9, Driver.Packet.draw 79.0, Driver.Draw 77.9, Graphics.Draw 70.5, Graphics.Draw.draw_and_resource_release 56.1, Driver.Packet.prepare_memory 54.3
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
trace_digest.py, run 6 (this PR)
seconds 150:5 from present 2779: 33 presents, frame p50 152.8 / p90 161.1 / p99 166.5 / max 166.5 ms, GPU busy 96.4 ms per present
NVIDIA GeForce RTX 4070 Ti SUPER, NVIDIA 616.64, Windows 10.0.26200, 3840x2160, commit
b8663c514e, dropped: noSlowest frames (largest slices inside each, inclusive)
Threads (ms per frame)
Largest slices (ms per frame, inclusive, all threads): Driver.Packet 445.3, Driver.Packet.memory_wait 274.8, Driver.WorkerWait 136.7, Driver.WorkerWait.dequeue_order 127.8, batch 96.5, Driver.Packet.draw 74.1, Graphics.Draw 73.1, Driver.Draw 72.8, Graphics.Draw.draw_and_resource_release 60.0, Driver.Packet.dispatch 43.1
Longest waits
Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)
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 panicDa3m0n on 2026-10-22T10:21:02Z.
Traces of the four runs whose summary lines are in the description, in run order (main, this PR, main, this PR). GitHub did not take the .json.gz files as attachments here, so they are stored unchanged in one zip; trace_digest.py and performance_compare.py read them as they are.
aps5-traces-pr9712.zip
aps5-trace-d6eafa54d046-16512.json.gzaps5-trace-b5b8d4e27aa8-452.json.gzaps5-trace-d6eafa54d046-14692.json.gzaps5-trace-b5b8d4e27aa8-23524.json.gzImported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T10:55:12Z.
Preparing a Windows 007 cross-test of b5b8d4e27aa, not a duplicate implementation. Source-only integration merges cleanly on current main
4777cacawith our existing bring-up stack; conventions pass and original authorship is retained:https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-oct22-bar-snapshots (4b61c25affd5)
Base without this change: codex/first-light-oct22-current-base (52c69fbb3736).
UNBUILT/UNTESTED here so far; our pinned same-build input-policy control is running first. Planned checks are the same native draw/vertex/index/snapshot selection on the base and candidate, actual Khronos layer, no shader cache, plus the disabled-BAR control before a title comparison. Hardware is Windows 11 / RTX 5070 Ti 617.42 / 7800X3D / 32 GiB.
One concern from your stated limitation: our 007 runs are already memory-constrained. Before I stress the title, are you planning the Buffer/slab host-memory fallback in this branch? I will not attribute an allocation failure under VRAM pressure to the title itself. No speed claim yet; raw title code/captures stay local. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-22T10:58:01Z.
One source-review question before my native run: HostReadableInput takes a second GuestMemory::Read for BAR-backed index buffers, after CopyDrawInput already populated the draw snapshot. If the guest writes those indices between the copy and the highest-index/restart-table scan, the CPU can scan different indices from the snapshot bound for this draw. The host-memory path scans copy.buffer itself, so it preserves that relationship.
Could we retain a host shadow of the exact index snapshot (or read back the snapshot for these scans), rather than re-read mutable guest memory? A focused regression could copy indices, mutate the guest source, then check that the derived highest index / restart table still match the bound snapshot. This is a source-review concern; I have not reproduced it in a title or run that regression yet. AI-assisted: Codex.
Imported from boykopovar/AnyPS5. Originally posted by panicDa3m0n on 2026-10-22T11:31:45Z.
Thanks, both points are right.
Bufferand its slabs get the same two placements device buffers already have. A mapped device-local buffer goes to host memory when the reported budget of the device-local heap has no room for it, asDeviceMemoryTypeplaces device buffers. It also goes there when its allocation is still refused after the pool trim and the cache reclaim, as withRefusedDeviceMemoryFallback.Properties()then reports host memory, so refreshing such a snapshot compares its blocks again.main. The highest index, the mesh restart table and the bound copy then come from the same bytes, andHostReadableInputgoes away. Vertex copies and storage snapshots stay in BAR memory. A new test copies indices, stores to the guest source, and checks the copy's memory and its highest index.I will push both today with their tests, the validation runs on
mainand on the new head, and new numbers for the head, and say so here.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:07:47Z.
Review: CHANGES_REQUESTED
I reviewed exact head b5b8d4e27aa8709c1dfc713817659d834b95adbc. Two blocking issues remain in this head: the BAR index path scans guest memory again after creating the GPU-bound snapshot, and BAR-backed Buffer allocations have no host-memory fallback when the selected heap cannot satisfy them. Both were already raised in the discussion, and the author acknowledged both with a plan to address them; those fixes are not present in the reviewed head. Please keep the index snapshot and all derived index metadata from the same byte copy, and add the agreed allocation fallback before treating this as ready. The branch is also 15 commits behind current upstream/main, so update it and rerun the focused draw/index tests plus the documented main-vs-change validation run on the updated tree. The current GitHub check list contains successful conventions/intake/label checks but no product build or test job; I could not run a local build because there is no configured build tree and the filesystem is full. I have not independently reproduced the performance figures. Please also coordinate the already-disclosed interaction with open #8756 and confirm the landing/rebase order.
Imported from boykopovar/AnyPS5. Originally posted by panicDa3m0n on 2026-10-22T13:59:39Z.
Rebased onto current
main(3ca07d086). The branch is now three commits, and the review fixes are the last two.@Scramblrrrr, both of your points are fixed:
88d4e7bcb
fix(agc): keep index copies in host memory.HostReadableInputis gone; the highest index and the mesh restart table are scanned from the copy the draw binds.agc_draw_input_memorycopies indices, stores to the guest source, and checks the copy's memory and its highest index. It fails when index copies take the snapshot memory.82315210c
fix(agc): give mapped device-local buffers a host memory fallback. A mapped device-localBuffer, slabs included, takes host memory in two cases:DeviceMemoryTypeplaces device buffers;RefusedDeviceMemoryFallbackdoes.Both cases print rate-limited lines (
[gpu] mapped buffer: ...,[bufferpool] ... placed in host memory type ...), so a run under VRAM pressure shows when they happened.MappedDevicePlacementintests/BufferPool.cppchecks a buffer and a slab within the budget, over it, and after a refusal. It fails without each of the placements.@MarcZX10, both blocking points are fixed in those two commits. On the updated tree:
ctest -R ^agc_passes except four tests that fail the same way onmain's build on this machine: the threeagc_driver_sample_order*tests, and theagc_compute_pipeline_capture_optional_byte_captimeout from its 256 MiB write to this machine's slow temporary folder.VUID-errors and the same 10 warnings onmain's build (3ca07d086), on the head, and on the head withAPS5_NO_BAR_SNAPSHOTS=1.On the order with #8756: whichever is merged first stays as it is, and the other rebases its neighbouring lines in
PrepareDrawBindings, which is a small change either way. If #8756 goes first, I will rebase this one.The description has the new performance numbers for the head, measured against
mainon the same base.Imported from boykopovar/AnyPS5. Originally posted by panicDa3m0n on 2026-10-22T14:07:16Z.
Traces of the six runs in the description (rounds 1, 2 and 3 there), each with its
aps5-summary.jsonlline, one zip per round. The files are unchanged apart from therunN-main-orrunN-pr-prefix, which gives their row in the table.aps5-traces-pr9712-round1.zip
aps5-traces-pr9712-round2.zip
aps5-traces-pr9712-round3.zip
3ca07d086run1-main-aps5-trace-3ca07d086d5f-13120.json.gz82315210crun2-pr-aps5-trace-82315210ced9-12056.json.gz3ca07d086run3-main-aps5-trace-3ca07d086d5f-25904.json.gz82315210crun4-pr-aps5-trace-82315210ced9-25932.json.gz3ca07d086run5-main-aps5-trace-3ca07d086d5f-23908.json.gz82315210crun6-pr-aps5-trace-82315210ced9-4512.json.gzImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T15:41:22Z.
Review: CHANGES_REQUESTED
The PR contains title-specific Astro Bot performance measurements, so I am not treating it as a title-agnostic change. However, the baseline uses main
3ca07d086, not current main, and current main has since changed AGC draw code. Please rerun the comparison on current main so the reported performance evidence can be evaluated against the current code.The branch is 19 commits behind main. Please update it and rerun the focused snapshot, draw-input and buffer-pool tests plus the main-vs-change performance run on the updated tree. Current hosted checks show conventions and labels passing, with no product build/test run. The author-reported AGC tests and Astro Bot A/B results have not been independently reproduced here.
The review also found a portability issue in
Context::MappedBufferProperties: snapshot memory selection uses device-wide physical properties, but the buffer’sVkMemoryRequirements::memoryTypeBitsmay exclude the selected BAR type while allowing a host-visible type. In that caseMemoryType(mask, flags)throws rather than falling back toHostBufferProperties. Please add a regression where the BAR type is excluded but a compatible host type remains. I syntax-checked the relevant production and test sources, andgit diff --checkand current-main conventions pass. The current hosted checks have no product build/test run.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:14:04Z.
Review: COMMENTED
This follow-up is redundant: I removed the #5239 intake sentence from my prior review. The remaining requests concern current-main performance validation and the mapped-buffer fallback regression.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T03:45:00Z.
Review: DISMISSED
The code has no open problem from our side; what blocks the merge queue is the CHANGES_REQUESTED from @MarcZX10, which only they or a new push can clear. Their points against the current head
174fe9b17a:99f0ebbcf, covered byagc_draw_input_memory.Bufferand slabs: fixed inc7bc487b6, covered byMappedDevicePlacement.memoryTypeBitswithout a mapped device-local type: fixed inb8663c514, with the regression case requested.main: currentmainis merged into the head.main: the A/B in the description is against8499ea52e. BunnyFl's RX 9070 XT run and Lander0606's RADV run were made on this head against currentmain, with and withoutAPS5_NO_BAR_SNAPSHOTS=1. @panicDa3m0n offered to repeat the Astro Bot A/B on currentmainif that is still wanted.@MarcZX10, could you re-review this head? If the remaining request is only the rerun of the Astro Bot A/B on current
main, @panicDa3m0n, please post it so the review can be cleared.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:21:15Z.
Review: DISMISSED
I re-reviewed the latest head
4e93e34d8e0929f29032c4a81712e4dd899e65f7. The earlier code concerns about keeping index metadata with its copy,memoryTypeBitsfallback, and fallback slab indexing have been addressed in later changes and the reportedagc_buffer_poolregression checks are useful. The reported AMD measurements show 1.4–1.5 ms lower GPU-busy time on two Radeon systems, with little frame-time change on the CPU-bound RX 9060 XT run.A new blocking result is the RTX 4090 A/B reported against the same main base: title/menu p50 worsened by about 2 ms (6–8%) in repeated quiet runs, while intro/level were unchanged. The current implementation enables BAR snapshots for any qualifying device, so the PR's current evidence shows a material regression on NVIDIA alongside the AMD gain. Please investigate the title/menu path and either address the regression or narrow the default enablement to hardware where the benefit is demonstrated; then rerun the same-machine main/head comparison and focused tests on the resolved head. GitHub currently reports this PR
DIRTY/ non-mergeable against currentmain, and the current head is 1,319 commits behind. The hosted checks shown are conventions and labels only; no product build/test is reported here. I did not run a local GPU build or performance test.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T23:57:17Z.
Review: DISMISSED
Reviewed — changes requested
This pull request does not merge cleanly into
main(1c8c0efc8c): head4e93e34d8econflicts incore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Resources.cppcore/libs/prx/libSceAgcDriver/tests/BufferPool.cppPlease rebase it onto current
main. I will review the change once it merges cleanly.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:24:28Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
d2c6c50c18b1dddaea609fd51ab83e722c4aaafeusing the prepared diff andrepo_read.pyfor targeted source context. No tests were run by me. The description reports Windows hardware tests and performance captures; those are author-reported.Results
Findings
Blocking
None.
Non-blocking
SnapshotMemoryPropertiesthreshold treats any device-local heap of at least 4 GiB with a host-visible device-local type as a full resizable BAR. This is a heuristic; the description’s GPU testing supports the target device, while behavior on other Vulkan devices is not established here. Consider documenting the heuristic’s limits or using an explicit BAR capability signal if one is available.Not verified
No tests, builds, or hardware runs were performed by me. The full text for
Graphics/src/ShaderResources.cpp,tests/Graphics.cpp, andtests/Recorder.cppwas excluded from the review bundle; their changed hunks were inspected usingrepo_read.py. Other file contents were read from the bundle or targeted source ranges. Author-reported test and performance claims were not independently verified.To get this to a good state
Nothing is required. The heuristic limitation above is optional feedback.
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.