Windows + Intel Arc backend: the umem amdgpu coupling, and the 64-lane mesh requirement that blocks Arc #1
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@borosf on GitHub · 2026-11-30 11:17 UTC · original
Scoping a Windows + Intel Arc backend by reading
greenfield/umemandgreenfield/vkback. Two findings are porting work; the third looks like a scope decision rather than a task, so I'd rather ask before writing anything.1.
umemis welded to amdgpu buffer objects, not to Linux in generalgreenfield/umem/src/lib.rs:1-6: every piece of title memory is an amdgpu buffer object exported as dma-buf, mapped at the title's fixed address withmmap(MAP_FIXED|MAP_SHARED), and theKindset is AMD's memory classes (Vram"through resizable BAR: CPU writes fast, reads very slow",GttCached, write-combined GTT spill).VK_KHR_external_memory_win32with an NT handle from a D3D12 heap,MapViewOfFileExat a fixed base,VirtualProtect/PAGE_GUARDplus a VEH for gating. That is a real port oflib.rs(1,283 lines),mapping.rs(572) andbinds.rs(620), not a shim.Kindpolicy that makes this fast has to be re-derived against Xe's heaps and residency. That is a second memory design, not a backend flag.2.
pipejobrequires 64 lanes for mesh and task stages, and Arc tops out at 32greenfield/vkback/src/pipejob.rs:76-78— "Mesh and task stages keep 64 lanes: RADV compiles mesh shaders as wave64 anyway", with the stage requirement resolved from the shader's[WaveSize]just below. The tree has 269wave64references to 37subgroup.An Arc B580 reports
subgroupSize32 andVK_EXT_subgroup_size_controlcan only lower it, so every stage that needs 64 lanes is unavailable — and mesh pipelines are 6 sites plus whatever the title's own stages declare. My read is that this is a translator project with a per-cross-lane cost, not a porting step, which is why I stopped before touchingcfg.3. What is portable: presentation (
present/xcb.rs, 314 lines of run-time-loaded libxcb →VK_KHR_win32_surface), the rest of the Vulkan recorder, and the RDNA → DXIL → SPIR-V path. The Wine glue is already an explicit seam ingreenfield/wine/*.If this is wanted, the only piece I'd call a normal pull request is step 0: a
cfgsplit socargo check --target x86_64-pc-windows-msvcyields a finite error list from the umem/vkback seams, with no behaviour change on the Linux path.The question that decides whether any of it is in scope: is the 64-lane requirement in
pipejoba console behaviour you intend to reproduce exactly, or a RADV convenience that can be relaxed to 32 on adapters that only offer 32? The first answer puts Arc out of scope until the translator can emulate 64-lane subgroups; the second makes the Win32 surface and one memory class worth starting.I have the full seam inventory (file:line, per-mechanism Windows counterpart, and the three-line stage plan) written up; happy to open it as a docs pull request if you want it in the tree, or leave it here if you'd rather keep docs to proven behaviour.
@borosf on GitHub · 2026-11-30 19:24 UTC · original
Closing too, since no upstream PRs from our side. The seam inventory is kept in our own tree; the 64-lane question will answer itself once we have a Windows build to measure.
@vktory6 on GitHub · 2026-12-02 19:38 UTC · original
Related discussion: https://github.com/vktory6/VKtory/discussions/270 ("Where should the shader translator go next?") is where the translator's direction is being discussed, including the parts this issue touches.