graphics: log which GPU memory heap is device-local #2535
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2535
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2535"
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?
@Nawid3333 on GitHub · 2026-11-24 05:59 UTC · original
Nawid3333:fix/log-vma-heap-kind→main· +12 −2 · 2 files · 1 commits · openA log cannot tell which Vulkan memory heap is the GPU's own memory. The
VMA heap Nlines thatLogMemoryBudgetprints after a failed allocation carry no heap flags, and the heap order is up to the driver: on an RX 9070 XT on Windows, heap 1 is the device-local heap and heap 0 is system memory. In #2331 (Avatar: Frontiers of Pandora, an image allocation fails) the two heaps could only be told apart after a test build printed the memory type flags.Change
Vulkan memory heap N: size=<bytes> device_local=true|false.VMA heap Nlines end withdevice_local=true|false, so a log tail that ends at an allocation failure names the heap kind too.Both are
LOGF, like the device lines around them. Nothing else changes.Test
Log text only, so no unit test. Fork CI (Windows, Linux, macOS): https://github.com/Nawid3333/KytyPS5/actions/runs/45330581494/attempts/1
Demon's Souls (PPSA01341) with this branch on an RX 9070 XT (Windows 11, driver 32.0.32015.7029):
The
VMA heap Nlines print only after a failed allocation, which this run did not have.Refs #2331
Written with Claude Code (AI): Claude Code wrote the change and ran the build and the game run.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-11-24 06:01 UTC · original
No actionable comments were generated in the recent review.
Walkthrough
Graphics memory logs now report whether each heap is device-local. The selected physical device log also reports each heap’s index and size.
Suggested reviewers:
nmzikChange: Other
Merge Risk:
Minimal · up to
7d731This change adds device-local status to GPU memory heap logs. It does not alter runtime behavior, so the risk of merging is minimal.
Pre-merge checks:
4
Full details: Title check
Explanation
The title names the main change: GPU memory heap logging that identifies the device-local heap. It matches the summary, which adds device_local status to LogMemoryBudget output and logs each heap when the device is selected. It is concise, specific, and in the commit-style format.
Full details: Description check
Explanation
The description explains the problem (log lines do not show which Vulkan heap is device-local), the change (device_local flags in the heap log lines), and the testing done (a log-only change, with a sample log from a Demon's Souls run). It matches the raw summary, which covers the same two files and the same log changes.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
b04a7513-1ab1-4b0b-981e-2d8d8114a7c3Reviewing files that changed from the base of the PR and between
4e90654506and7d7314cf00.src/graphics/host_gpu/vma.cppsrc/graphics/presentation/window/vulkanWindow.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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.