Repository navigation
Conversation
Integrated Intel GPUs on the xe driver, such as Lunar Lake and Panther Lake, have no VRAM region, so VRAM always reads 0.0 GiB although a game keeps several GiB of buffers in system memory. The memory region query that is already polled also returns the system memory region, whose used size is what the GPU has placed in system memory (the TT manager's usage). Report that region when the device has no VRAM region. GPUs with VRAM are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 15, 2026
anaveto
marked this pull request as ready for review
November 15, 2026 03:06
Owner
|
SYSMEM.used has different accounting semantics from our VRAM and GTT metrics. On this iGPU, Xe reports no dedicated VRAM region, so I’d leave the VRAM metric alone and skip this fallback. |
Contributor
Author
|
Oh, that makes sense. Thank you, closing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On integrated Intel GPUs with the xe driver, VRAM always shows 0.0 GiB. An integrated GPU has no VRAM region. The GPU keeps its buffers in system memory. Example: an MSI Claw 8 EX (Panther Lake, kernel 7.3.3) in Enshrouded showed VRAM 0.0 GiB, while the game's fdinfo showed
drm-resident-gtt: 6574360 KiB.xe_drm_base::poll()already sendsDRM_XE_DEVICE_QUERY_MEM_REGIONS. The reply also contains the system memory region. For that region, xe reports the usage of its TT manager: the system memory that the GPU uses (xe_query.c,query_mem_regions()). The change keeps that region.get_total_memory()andget_used_memory()return that region when the device has no VRAM region. GPUs with VRAM keep the same values.The
is_apupath (VRAM + GTT, as for AMD APUs) is not used here: for AMD,is_apualso selects the CPU power and the CPU temperature from the GPU metrics.Testing:
ioctl, render node and card node) returned one region: SYSMEM, total 30.8 GiB, used 0.84 GiB with Steam's UI open.mangoappbuilt from master with next: free the xe memory region query after each poll #2209, next: show system memory use for integrated xe GPUs #2210 and next: expose RAPL uncore power as [CPU, UNCORE_POWER] #2211 as the Steam performance overlay in gamescope: the VRAM value in the CSV log of the overlay was 4.92 GiB in Enshrouded, 1.05 GiB in Need for Speed: Most Wanted and 0.62 GiB in the Steam UI after the game. MangoHud 0.8.4 on the same device shows 0.0 GiB.🤖 model: claude-opus-5-5 | effort: xhigh