Skip to content

perf(agc): stop pooling released device buffers over the memory budget - #4472

Open
solbjorg1245 wants to merge 4 commits into
boykopovar:mainfrom
solbjorg1245:upstream/vram-budget-1
Open

solbjorg1245 wants to merge 4 commits into
boykopovar:mainfrom
solbjorg1245:upstream/vram-budget-1

Conversation

@solbjorg1245

@solbjorg1245 solbjorg1245 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What

The buffer pool's device tier keeps released device-local buffers up to an eighth of the largest device-local heap (at least 512 MiB), however full that heap is. Near the budget that VK_EXT_memory_budget reports, this retained memory is what pushes the process over it. Past the budget an allocation can still succeed while the OS starts paging device memory or DeviceMemoryType places it in host memory, so the out-of-memory trim in BufferPool::AllocateMemory comes late or not at all.

  • VramBudget (new, Graphics/src/VramBudget.cpp) holds the policy for the largest device-local heap: the target is the reported budget itself (never below a quarter of the heap or 1 GiB, whichever is smaller). It does not query the driver itself. The pool's existing heap budget read (heapOverBudget, at most every 100 ms, the one the image memory path already uses) feeds it, so buffer and image releases share one vkGetPhysicalDeviceMemoryProperties2 call.
  • BufferPool::Put: while the reported usage, minus what the pool freed from the device tier since that read, is over the target, the pool first gives back retained image memory (the image path already frees it over the reported budget, and image takes are not demand). Then the device tier keeps released buffers only up to a demand floor: what it handed out (hits and misses) in the last second, in eight 125 ms buckets, capped at a sixteenth of the heap. Anything beyond the floor is destroyed, least recently used first. A title that doesn't churn has a small floor and gives back everything else; one whose working set sits just over the budget keeps what it is about to ask for again instead of re-allocating it every frame. Host tiers, the small tier and slabs are unchanged, and a Put that lands in another tier is not counted as device memory released.
  • Every device-tier free the pool makes counts as released until the next read: Put evictions, image memory dropped or evicted in PutImageMemory, ReclaimIdleDevice under storage cache pressure, and trim() before an allocation retry. The bytes are counted under the pool mutex before the memory is destroyed, so Excess() never counts a free twice.
  • The pool behaves exactly as before in three cases: without the extension, on an integrated GPU (Context::integratedGpu, set from the device type: there the device-local heap is a carve-out the driver spills into system memory) and with APS5_NO_VRAM_BUDGET=1. APS5_VRAM_BUDGET_MIB caps the budget, which lets a large card behave like a smaller one. Both are in docs/dev/ENVIRONMENT.md.
  • A [vram] line is printed once, at the first read: the heap, its budget and usage. With APS5_PROFILE_DRAW, another [vram] line follows the [bufferpool] line every 10 s with the budget, usage, target, floor, the released device allocations not kept (count and MiB), the device allocations made while the pool was dropping (the churn) and the allocations placed in host memory, both by DeviceMemoryType and by the refused-allocation fallback in AllocateMemory (counted in HostPlacements() instead of two function-local statics).

When it matters. The pool only drops buffers once the device-local heap is over the budget VK_EXT_memory_budget reports. At default settings Minecraft Dungeons II on an 8 GB card settles below it, and nothing changes. It matters for a heap that is already full: a bigger title, a forced or oversized APS5_TEXTURE_CACHE_MIB, or other processes using VRAM. There, without this PR, the pool's retained buffers push new device allocations into host memory.

The crash it prevents (@AlxcBTW, RTX 5070 Laptop 8 GB, Minecraft Dungeons II world load + walk): with the device-local heap over its budget, the automatic budget evicted a 256 MiB 3D storage texture (1024x1024x256 R8). It was re-created in host memory, and a compute pass over it ran past the 2 s TDR limit (nvlddmkm 153 / LiveKernelEvent 141). Over the earlier rows that stack lost the device in 2 of 11; with this PR, 0 of 5. Logs: to be attached by @AlxcBTW.

Found with Demon's Souls on our fork: on a 16 GiB card the device-local heap reached 15.3 GiB at a level load while about 2 GiB of it was released buffers held for reuse. The demand floor replaces the first version's fixed headroom after @CnRJay's churn review; it is @parl0v's commit, with his lab rows in the thread (RTX 4060 8 GB, forced 3 GiB texture cache: walk 3.94 FPS with the headroom, 5.63 with the 1 s floor). Reclaiming cold cache entries would be a separate follow-up. The change itself has no title check.

Tested

On main 85a4d7f8c: agc_buffer_pool, agc_buffer_pool_small_device_shared, agc_buffer_pool_small_device_no_staging, agc_device_memory_fallback, the sampled and storage cache budget tests and agc_driver_pooled_buffer_range pass; python tools/check_conventions.py --base origin/main passes.

  • agc_buffer_pool budget tests (mock device, no GPU needed):
    • the target is the budget, with the quarter-heap / 1 GiB lower bound;
    • under the target, released device buffers are still kept;
    • over the target, the floor keeps what was taken in the last second and gives everything back once the window has passed;
    • over the target with no recent demand, released buffers are destroyed and the next request allocates;
    • a small device-tiered Put that evicts from the small tier leaves Excess() unchanged;
    • when usage rises after a fresh read, Put trims the oldest retained buffers;
    • an integrated GPU keeps its pool and the budget stays disabled;
    • a buffer release and an image release within 100 ms make one budget query;
    • image memory freed over the budget and buffers freed by ReclaimIdleDevice lower Excess() by their size;
    • over the target, retained image memory goes before the buffers the floor keeps.
  • Main's image pool, idle reclaim, attachment reclaim and host placement tests run unchanged.
  • Not yet run in a title on current main.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01VFVE5WbaUJ2vyj8NAW44CS

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Is there a before/after for this change alone? The 15.3 GiB figure is one reading from a fork that carries the whole budget, and this hasn't run in a title on main; perf PRs need numbers for the change itself (#218). The [vram] line and presents per 10 s at that level load, with and without APS5_NO_VRAM_BUDGET=1, would do.

@solbjorg1245

Copy link
Copy Markdown
Contributor Author

Thanks, fair point. I could not get a clean before/after of this change alone on main, and I would rather say so than quote the 15.3 GiB figure as if it were one.

What I tried:

  1. Main does not run Demon's Souls on my setup. It aborts at boot because the presenter throws on a DB_RENDER_CONTROL depth resummarize state. With a local-only workaround on top of this PR (skip that draw instead of rejecting it, not part of the PR) the title boots on main, shows the intro logos, then aborts about seven minutes in with compute shader ...: runtime image descriptor is invalid. It never reaches a level load, so there is no level-load reading on main. The [vram] lines up to that point show usage of 4.8 GiB of a 14.9 GiB budget, so the pool trim never engaged.
  2. So the numbers below come from my fork, which carries the whole budget (this PR's pool trim plus cache reclaim and admission checks), and they are not this change alone. APS5_NO_VRAM_BUDGET=1 there turns the whole budget off, not only the pool part. They show what the budget is for, not what this PR contributes by itself.

Setup: Windows 11, RTX 5080 16 GiB (heap 15977 MiB, driver budget about 15.2 GiB), same binary and same save, interleaved on / off / off / on, 330 s settle after the load, APS5_PROFILE_DRAW=1 in all four runs (it prints the [present] and [vram] lines, so frame rates are a little lower than without it, equally in both arms).

run budget peak device-local usage windows over the driver budget [present] per 10 s, steady windows (mean / min / max) FATAL
1 on 13.5 GiB (94.7% of budget) 0 of 47 59.2 / 50 / 63 0
2 off 14.7 GiB (103.4%) 9 of 47 51.2 / 36 / 63 0
3 off 14.2 GiB (100.4%) 5 of 47 54.3 / 40 / 59 0
4 on 13.6 GiB (95.5%) 0 of 47 60.4 / 53 / 64 0

With the budget on the first [vram] line reads: heap 15977 MiB, budget 15209 MiB, target 14210 MiB. With it off, usage went past the budget the driver reports in 5 and 9 of the 10 s windows (allocations still succeeded; past that budget the OS is free to move device memory to system memory). Mean steady presents were 59.8 with the budget and 52.8 without, two runs each, so the spread between runs (36 to 64 inside a window) is about as large as the difference; I would call the frame rate a small gain at best and the memory behaviour the point.

What I can still do: my fork gets past both aborts above, so I can send those fixes as separate PRs first and then post the same two arms on main, or run them on a title that already boots on main. Without a title that loads a level there I cannot give a reading for the pool trim alone.

On #4446: the bot is right that both PRs touch tests/BufferPool.cpp. The conflict is two places where each PR adds lines next to the other's (the mock device fields and the list of calls in main). Keeping both sides resolves it, the source files merge cleanly. Whichever lands second will rebase.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Thanks for saying so plainly. Send the two boot fixes as their own PRs first; this stays open, and the two arms on main once the title reaches a level load will do.

@solbjorg1245

Copy link
Copy Markdown
Contributor Author

Update: the two boot aborts I reported are already gone on current main, so there is nothing to send for them. My first try was on this PR's older base, sorry for the noise.

I rebuilt on main (c2565f0) with this PR on top and ran the title again on the RTX 5080 16 GiB. The depth resummarize draw is accepted now (that is #4049, which merged after my first try), and the compute shader abort did not show up in two runs. The title plays the intro, reaches the main menu and starts loading the save.

It then aborts during the load, in a pixel shader recompile: GetImageResource dword 0 is not a valid runtime value, where the image descriptor address comes from a 64-bit pointer loaded out of memory (the case #758 and #757 implement, both open and not merged). So I still cannot give the on/off numbers at a level load on main.

Up to the abort the budget never mattered: device-local usage stayed at about 4.7 GiB of the 14.9 GiB budget, nothing was released over the target, and there were no failures before the shader abort.

I will rerun the two arms (APS5_NO_VRAM_BUDGET unset and =1, interleaved) as soon as a title reaches a level load on main with this PR, and post the table here. The earlier numbers from my fork stay as they were: they carry the whole budget, not only this change.

@CnRJay CnRJay left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One behaviour to check in the title run requested above: allocation churn near the budget. VK_EXT_memory_budget usage covers the whole process (textures, images, the pipeline cache, other pools), so the pool can be over target for reasons it can't fix. In that state every device-tier Put destroys its buffer, and the next Take of the same size calls vkAllocateMemory again. On Windows/WDDM that allocation can take milliseconds and is a known source of frame-time spikes. A level that sits just over the target would then alternate free and allocate every frame, which is worse than keeping a small pool.

Some ways to bound it:

  • Hysteresis: start dropping at the target, keep dropping until usage is some margin below it, and only then start pooling again.
  • Keep a small floor in the device tier (for example the sizes requested in the last N frames) even when over target.
  • Count the vkAllocateMemory calls that follow a dropped Put within a frame in the [vram] line, so the trace shows whether churn happens.

The rest looks good. The integrated-GPU and missing-extension paths are left alone, and reading the budget at most every 100 ms keeps vkGetPhysicalDeviceMemoryProperties2 (which can be a kernel call) off the per-Put path.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

#757 and #758 merged on 10-14, so the GetImageResource dword 0 is not a valid runtime value abort during the save load should be gone on main. Could you rebase and post the on/off numbers at the level load ([vram] line and presents per 10 s, with and without APS5_NO_VRAM_BUDGET=1)?

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 1896 docs/dev/ENVIRONMENT.md
PR 4448 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4847 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6186 docs/dev/ENVIRONMENT.md
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6553 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 6924 docs/dev/ENVIRONMENT.md
PR 7002 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7275 docs/dev/ENVIRONMENT.md
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 7643 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 8246 docs/dev/ENVIRONMENT.md
PR 9289 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 9345 docs/dev/ENVIRONMENT.md
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 9712 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 9852 docs/dev/ENVIRONMENT.md
PR 10193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 10351 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 10867 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 11435 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 11483 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 12324 docs/dev/ENVIRONMENT.md
PR 12544 docs/dev/ENVIRONMENT.md
PR 12746 docs/dev/ENVIRONMENT.md
PR 12828 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 12849 docs/dev/ENVIRONMENT.md
PR 12863 docs/dev/ENVIRONMENT.md
PR 12944 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 13148 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
PR 13809 docs/dev/ENVIRONMENT.md
PR 13863 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 13920 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 13928 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 13929 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 14217 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 14260 docs/dev/ENVIRONMENT.md
PR 14262 docs/dev/ENVIRONMENT.md
PR 14871 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 15296 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 15456 docs/dev/ENVIRONMENT.md
PR 15529 docs/dev/ENVIRONMENT.md
PR 15548 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 15570 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 16217 docs/dev/ENVIRONMENT.md
PR 16354 docs/dev/ENVIRONMENT.md
PR 16371 docs/dev/ENVIRONMENT.md
PR 16372 docs/dev/ENVIRONMENT.md
PR 16427 docs/dev/ENVIRONMENT.md
PR 16571 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16793 docs/dev/ENVIRONMENT.md
PR 16796 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 16831 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 16953 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 17056 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 17259 docs/dev/ENVIRONMENT.md
PR 17261 docs/dev/ENVIRONMENT.md
PR 17555 docs/dev/ENVIRONMENT.md
PR 17556 docs/dev/ENVIRONMENT.md
PR 17557 docs/dev/ENVIRONMENT.md
PR 17558 docs/dev/ENVIRONMENT.md
PR 17611 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 17719 docs/dev/ENVIRONMENT.md
PR 17729 docs/dev/ENVIRONMENT.md
PR 17943 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 18029 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 18082 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 18173 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 18226 docs/dev/ENVIRONMENT.md
PR 18293 docs/dev/ENVIRONMENT.md
PR 18693 docs/dev/ENVIRONMENT.md
PR 18829 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 19557 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20030 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 20041 docs/dev/ENVIRONMENT.md
PR 20111 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 20172 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 20248 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 20518 docs/dev/ENVIRONMENT.md
PR 20519 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 21211 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21303 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 21460 docs/dev/ENVIRONMENT.md
PR 21649 docs/dev/ENVIRONMENT.md
PR 21923 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22025 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22029 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 22071 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22190 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22424 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 22434 docs/dev/ENVIRONMENT.md
PR 22531 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 22546 docs/dev/ENVIRONMENT.md
PR 22647 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 22697 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 22944 docs/dev/ENVIRONMENT.md
PR 23242 docs/dev/ENVIRONMENT.md
PR 23244 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 23587 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23595 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 23596 docs/dev/ENVIRONMENT.md
PR 23739 docs/dev/ENVIRONMENT.md
PR 23811 docs/dev/ENVIRONMENT.md
PR 23955 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 23975 docs/dev/ENVIRONMENT.md
PR 24176 docs/dev/ENVIRONMENT.md
PR 24294 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 24327 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 24445 docs/dev/ENVIRONMENT.md
PR 24510 docs/dev/ENVIRONMENT.md
PR 24523 docs/dev/ENVIRONMENT.md
PR 24661 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 24714 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 24756 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 24936 docs/dev/ENVIRONMENT.md
PR 25010 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25534 docs/dev/ENVIRONMENT.md
PR 25559 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 25703 docs/dev/ENVIRONMENT.md
PR 26365 docs/dev/ENVIRONMENT.md
PR 26613 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 26686 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 26913 docs/dev/ENVIRONMENT.md
PR 27133 docs/dev/ENVIRONMENT.md
PR 27164 docs/dev/ENVIRONMENT.md
PR 27288 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27343 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27471 docs/dev/ENVIRONMENT.md
PR 27688 docs/dev/ENVIRONMENT.md
PR 27744 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27811 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27864 docs/dev/ENVIRONMENT.md
PR 27870 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 27872 docs/dev/ENVIRONMENT.md
PR 27887 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 27984 docs/dev/ENVIRONMENT.md
PR 28001 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28043 docs/dev/ENVIRONMENT.md
PR 28051 docs/dev/ENVIRONMENT.md
PR 28059 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28077 docs/dev/ENVIRONMENT.md
PR 28102 docs/dev/ENVIRONMENT.md
PR 28140 docs/dev/ENVIRONMENT.md
PR 28142 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28150 docs/dev/ENVIRONMENT.md
PR 28187 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28193 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28209 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28234 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28240 docs/dev/ENVIRONMENT.md
PR 28252 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28289 docs/dev/ENVIRONMENT.md
PR 28290 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28291 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28293 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28295 docs/dev/ENVIRONMENT.md
PR 28296 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28299 docs/dev/ENVIRONMENT.md
PR 28332 docs/dev/ENVIRONMENT.md
PR 28372 docs/dev/ENVIRONMENT.md
PR 28384 docs/dev/ENVIRONMENT.md
PR 28387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28388 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28389 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28390 docs/dev/ENVIRONMENT.md
PR 28391 docs/dev/ENVIRONMENT.md
PR 28396 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28404 core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
PR 28411 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 28421 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28434 docs/dev/ENVIRONMENT.md
PR 28470 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28476 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28487 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28488 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28490 docs/dev/ENVIRONMENT.md
PR 28520 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28537 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28590 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28622 docs/dev/ENVIRONMENT.md
PR 28624 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28631 docs/dev/ENVIRONMENT.md
PR 28659 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28673 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28692 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28702 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28704 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28738 docs/dev/ENVIRONMENT.md
PR 28750 core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 28765 docs/dev/ENVIRONMENT.md
PR 28766 docs/dev/ENVIRONMENT.md
PR 28768 docs/dev/ENVIRONMENT.md
PR 28786 docs/dev/ENVIRONMENT.md
PR 28787 docs/dev/ENVIRONMENT.md
PR 28793 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28805 docs/dev/ENVIRONMENT.md
PR 28808 docs/dev/ENVIRONMENT.md
PR 28814 docs/dev/ENVIRONMENT.md
PR 28845 docs/dev/ENVIRONMENT.md
PR 28893 docs/dev/ENVIRONMENT.md
PR 28894 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28914 docs/dev/ENVIRONMENT.md
PR 28921 docs/dev/ENVIRONMENT.md
PR 28925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28928 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28930 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28931 docs/dev/ENVIRONMENT.md
PR 28933 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28934 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28935 core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
PR 28936 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 28938 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28939 docs/dev/ENVIRONMENT.md
PR 28941 docs/dev/ENVIRONMENT.md
PR 28943 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28948 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28953 docs/dev/ENVIRONMENT.md
PR 28954 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28955 docs/dev/ENVIRONMENT.md
PR 28957 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 28958 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28960 docs/dev/ENVIRONMENT.md
PR 28962 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28964 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 28971 docs/dev/ENVIRONMENT.md
PR 28973 docs/dev/ENVIRONMENT.md
PR 28980 docs/dev/ENVIRONMENT.md
PR 28983 docs/dev/ENVIRONMENT.md
PR 28985 docs/dev/ENVIRONMENT.md
PR 28986 docs/dev/ENVIRONMENT.md
PR 28995 docs/dev/ENVIRONMENT.md
PR 28999 docs/dev/ENVIRONMENT.md
PR 29000 docs/dev/ENVIRONMENT.md
PR 29014 docs/dev/ENVIRONMENT.md
PR 29022 docs/dev/ENVIRONMENT.md
PR 29032 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29033 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29036 core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
docs/dev/ENVIRONMENT.md
PR 29037 docs/dev/ENVIRONMENT.md
PR 29038 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29039 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 29042 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29051 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 29052 docs/dev/ENVIRONMENT.md
PR 29053 docs/dev/ENVIRONMENT.md
PR 29057 docs/dev/ENVIRONMENT.md
PR 29058 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 29059 docs/dev/ENVIRONMENT.md
PR 29060 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 29066 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29067 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29068 docs/dev/ENVIRONMENT.md
PR 29069 docs/dev/ENVIRONMENT.md
PR 29070 docs/dev/ENVIRONMENT.md
PR 29072 docs/dev/ENVIRONMENT.md
PR 29073 docs/dev/ENVIRONMENT.md
PR 29074 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29076 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29080 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 29081 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 29082 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 29083 core/libs/prx/libSceAgcDriver/Graphics/include/BufferPool.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp
core/libs/prx/libSceAgcDriver/tests/BufferPool.cpp
PR 29084 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29085 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29086 docs/dev/ENVIRONMENT.md
PR 29087 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29089 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29090 docs/dev/ENVIRONMENT.md
PR 29091 docs/dev/ENVIRONMENT.md
PR 29093 docs/dev/ENVIRONMENT.md
PR 29094 docs/dev/ENVIRONMENT.md
PR 29095 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29096 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29097 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29098 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29101 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29102 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29103 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29104 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29105 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29106 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29107 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29108 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 29110 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29113 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29115 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29116 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29117 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29118 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29119 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29120 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29121 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29123 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp
docs/dev/ENVIRONMENT.md
PR 29186 docs/dev/ENVIRONMENT.md
PR 29211 docs/dev/ENVIRONMENT.md
PR 29218 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp

…et read

Main's pool now keeps released image memory in the device tier and reads
the heap budget itself (at most every 100 ms) to drop that image memory
over the budget, frees idle device buffers under storage cache pressure,
and trims the pool before an allocation retry. The VRAM budget had its
own reader and only knew about the buffers its own Put destroyed.

VramBudget no longer queries the driver: the pool's heap budget read
feeds it, so a device buffer Put and an image Put within 100 ms share one
vkGetPhysicalDeviceMemoryProperties2 call, and the read happens under the
pool mutex like the image path's.

Every device-tier free the pool makes between two reads is counted as
released, so Excess() stays right until the next read: Put's evictions,
the image path's drops and evictions, ReclaimIdleDevice and trim(). The
bytes are counted under the pool mutex before the memory is destroyed, so
a read that lands in between can only see the memory still in use, never
count it twice.

Over the target, Put gives back retained image memory before the buffers
the demand floor keeps (main already drops it over the reported budget,
and image takes are not demand), and the floor compares against the
buffers alone.

The refused-allocation host fallback in AllocateMemory now counts in
HostPlacements() too, so the [vram] line reports both placement paths.
APS5_NO_VRAM_BUDGET and APS5_VRAM_BUDGET_MIB are documented in
ENVIRONMENT.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWqixRjxAxzP2dBDkLsjZ6
@github-actions

Copy link
Copy Markdown

This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

@solbjorg1245

Copy link
Copy Markdown
Contributor Author

Merged current main into the branch, with the reconciliation in its own commit (c58f968) so it reads separately from the merge. The budget no longer has its own reader: it takes the pool's existing 100 ms heap budget read, so buffer and image releases share one query. Every device-tier free (image memory in PutImageMemory, ReclaimIdleDevice, the trim() before an allocation retry) now counts as released, and over budget the retained image memory goes before the demand floor applies to buffers. The pool, image, reclaim, cache budget and placement tests pass; #6553 is still open, so this is on plain main and I'll rebase around it if it lands first.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 25, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@solbjorg1245 VramBudget tracks the largest device-local heap, but releasedBytes counts every device-tier free without checking which heap owned it. With two device-local heaps, freeing 64 MiB from the smaller heap can take Excess() from 64 MiB to zero while the tracked heap is still 64 MiB over target. PutImageMemory, image-first eviction and trim can pass those unrelated frees through; ReclaimIdleDevice already guards the single-device-heap case.

Please credit only actual frees from the tracked heap, or disable this policy when there is more than one device-local heap. Add a two-device-heap regression showing that freeing the other heap leaves the tracked excess unchanged, while freeing the tracked heap lowers it once. The current budget mock has only one device-local heap, so it cannot catch this.

If you take the guard route, it only needs to count device-local heaps that have a memory type the device tier can use (DEVICE_LOCAL without HOST_VISIBLE). On the common setups without resizable BAR, the second device-local heap is the small BAR window and all of its memory types are host-visible, so the policy can stay on there.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 28, 2026
@fogydes

fogydes commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Verdict

stale+rebase

Findings

  1. [verified] Merge conflict against current origin/main (bb04a4f1ea): git merge-tree --write-tree origin/main c58f968028ccef496eb2270918aac49579780d6d exits with code 1. The branch is 4,231 commits behind main and conflicts on docs/dev/ENVIRONMENT.md.
  2. [verified] Conventions check passed: python tools/check_conventions.py --base 85a4d7f8c82cf3feeed07f59e7732218958db890 in a scratch worktree succeeds with 0 findings and 0 errors.
  3. [read-only] Missing speed claim artifacts: The PR is titled perf(agc): ... and makes specific frame rate claims ("walk 3.94 FPS with the headroom, 5.63 with the 1 s floor"). Per AGENTS.md, "A speed claim shows tools/trace_digest.py summaries of main and of the change from the same machine and scene" (including the two aps5-summary.jsonl lines). Neither the summary lines nor trace_digest.py summaries are provided in the PR description.
  4. [read-only] Vulkan validation layer comparison requirement: Per AGENTS.md, AGC changes require running the same focused tests on main and the branch with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and comparing logs to verify no new VUID- validation errors are logged. The PR description reports mock device tests (agc_buffer_pool, etc., no GPU needed), but no Vulkan validation layer comparison.
  5. [read-only] Missing PR checklist lines: The PR checklist omits three required template lines from .github/pull_request_template.md:
    • - [ ] Fixes: <!-- issue it closes as Fixes #N, or none -->
    • - [ ] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none -->
    • - [ ] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a -->
      Per AGENTS.md, all checklist lines must be retained and answered (GPUs tested is required for AGC changes).
  6. [author-reported] Author reports passing mock unit tests on main 85a4d7f8c (agc_buffer_pool, agc_buffer_pool_small_device_shared, agc_buffer_pool_small_device_no_staging, agc_device_memory_fallback, sampled and storage cache budget tests, agc_driver_pooled_buffer_range), but notes no title has been run on current main.

Freshness envelope

  • Head: c58f968028ccef496eb2270918aac49579780d6d
  • Base: 85a4d7f8c82cf3feeed07f59e7732218958db890
  • Behind origin/main: 4,231 commits
  • Merge-tree: exit 1 (conflict in docs/dev/ENVIRONMENT.md)

Cross-PR ledger

@JJenkx

JJenkx commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

@solbjorg1245 @oneandonlydean, I prepared an isolated fix for the multi-heap release-accounting finding: commit 5eb7e3be21da593a4ec1227c2757f9baf247b6ed, directly on this PR's c58f968028ccef496eb2270918aac49579780d6d. It can be cherry-picked into this branch; this does not introduce a competing upstream PR or claim to rebase this one.

The policy now enables only when exactly one device-local heap has a DEVICE_LOCAL memory type without HOST_VISIBLE, matching the device tier. It counts heaps rather than memory types. A host-visible BAR-only heap does not disable the policy or become its tracked heap, even if that heap is larger. With multiple eligible heaps, the policy remains disabled, so a free from an unidentified heap cannot reduce another heap's excess. This is the guard approach suggested in the review.

Added VramHeapEligibility to the existing buffer-pool fixture. It checks two eligible device heaps, an ordinary host-visible BAR heap, a larger host-visible BAR heap, multiple types in one eligible heap, and no eligible heap.

Validation on Linux 7.2.14, RX 6650 XT / RADV Mesa 26.2.6:

  • Full parent fixture with the new regression: agc_buffer_pool fails at two device-tier heaps shared a release counter that cannot identify the heap freed; both small-device cases pass.
  • Same full fixture with the fix: 3/3 pass, no skips.
  • Paired Vulkan tests on parent and fix: 5/5 pass each, no skips or VUID errors: sampled-cache budget, memory budget, without storage-image multisample, CPU device selection, GPU device selection. Both arms use ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer; both confirm insertion of validation layer 1.4.363.
  • Isolated builds use this branch's exact declared submodule commits, including the nested modules. Conventions checks against both the parent and origin/main pass. The tested source tree matches the commit; the frozen binaries were built before committing and can retain the parent/dirty revision label.

CPU/GPU evidence and exact patch, SHA-256 01ab91bf81fb7ec247a4db92bcc559d60e7469f8ff4e61e6afcc7f55bd466e81; downloaded archive and all 26 members verified.

This fixes the specific multi-heap finding on the existing branch. It does not resolve the main rebase, provide the requested performance summaries, or establish a title gain. No game was launched for this correctness contribution.

AI-assisted: yes.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — changes requested

Changes are required before merge: fix how device allocation releases update the budget accounting.

What I ran

  • Reviewed head c58f968028ccef496eb2270918aac49579780d6d against base main using repo_read.py to inspect the prepared diff and source files.
  • No build or tests were run. The description reports tests on a different revision (85a4d7f8c); those results are author supplied.

Results

Check Result Note
Diff and source review passed Changed code and relevant callers read
Build and tests not run No execution performed

Findings

Blocking

  • core/libs/prx/libSceAgcDriver/Graphics/src/BufferPool.cpp:627 increments the released-byte allowance for every evicted device-tier allocation, including the buffer being returned by the current Put. That allocation has not necessarily been freed: on the ordinary retention path it is inserted into tier.free at lines 623–625, while vram.Released(...) still counts it as released. After usage was sampled, this makes Excess() understate real heap use and can cause later Put calls to retain additional buffers over the target. Count only allocations that are actually destroyed; retained allocations must not reduce the reported usage.

Non-blocking

  • No verified non-blocking findings.

Not verified

  • Build and automated tests were not run. The reported results in the PR description refer to revision 85a4d7f8c, not this reviewed head.
  • Title behavior and the reported GPU crash improvement were not independently verified.
  • Read all changed files listed as reviewed in the manifest: VulkanDevice.cpp, BufferPool.hpp, Context.hpp, VramBudget.hpp, BufferPool.cpp, VramBudget.cpp, PostCompile.cmake, tests/BufferPool.cpp, and docs/dev/ENVIRONMENT.md. No changed files were excluded by the manifest.

To get this to a good state

  • Correct the release accounting so only allocations destroyed by eviction are added to VramBudget::Released, then rerun the buffer-pool budget tests on the updated head.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs needs rebase Conflicts with main, rebase needed perf numbers missing perf pull request without a before and after summary line perf Performance change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants