Skip to content

feat: also parse VRAM budget/usage from vulkaninfo#9800

Merged
mudler merged 1 commit into
mudler:masterfrom
eglia:vulkan-vram-usage
May 13, 2026
Merged

feat: also parse VRAM budget/usage from vulkaninfo#9800
mudler merged 1 commit into
mudler:masterfrom
eglia:vulkan-vram-usage

Conversation

@eglia
Copy link
Copy Markdown
Contributor

@eglia eglia commented May 13, 2026

Description
This is a follow-up to #9669.
It turns out that vulkaninfo does actually report VRAM usage. On my device, it looks like this:

		size   = 34208743424 (0x7f7000000) (31.86 GiB)
		budget = 3748294656 (0xdf6a7000) (3.49 GiB)
		usage  = 0 (0x00000000) (0.00 B)

Usage is always 0, but budget correctly shows the free space.
I'm not sure if this is always the case, so this PR parses budget and usage, and if one of them is 0 calculates it from the other. If both are 0, usage is reported as 0 as before.

Signed commits

  • Yes, I signed my commits.

Signed-off-by: Andreas Egli <github@kharan.ch>
Copy link
Copy Markdown
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

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

sounds good and being defensive doesn't hurt.

@mudler mudler merged commit a2940e5 into mudler:master May 13, 2026
53 checks passed
@mudler mudler added the enhancement New feature or request label May 13, 2026
@eglia eglia deleted the vulkan-vram-usage branch May 14, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants