d3d12_vulkan_device: accept the console's 0x40-byte D3D12_OPTIONS query (RT-XS-DEVICE-VM-OPTIONS) #360
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!360
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/360/head"
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?
@Andretuta on GitHub · 2026-11-24 03:53 UTC · original
ubiquitarianism:feat/xs-device-vm-options→main· +31 −18 · 2 files · 2 commits · merged 2026-11-24 13:44 UTCClaimed in the coordination issue as: RT-XS-DEVICE-VM-OPTIONS (#14)
What and why
Reduced after review to the part with a public measurement behind it:
CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS)(runtime/shims/d3d12_vulkan_device.cpp): accepts the 0x40-byte (16-dword) buffer console titles ask for (docs/d3d12_xs_surface.md§7.1: XCL measured the 0x40 request; the extra 4 bytes are unnamed) as well as the 0x3C-byte PC structure, fills the 15-field PC prefix and zeroes the trailing word. Coverage inruntime/test/d3d12_vulkan_device_test.cpp.Dropped from this pull request: the
D3D12ConfigureVirtualMemoryXVA bounds and device slots 86/108 (no measurement; slot 108 forwardedGetResourceAllocationInfo2'sD3D12_RESOURCE_DESC1array to PCGetResourceAllocationInfo). Slot 81 (GetFrameStatisticsX) moved to #402, which owns the presentation slots.Tested
d3d12.hlacksID3D12GraphicsCommandList8, sod3d12_vulkan_device_testneeds the MSVC CI build.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
@Oliwettoo on GitHub · 2026-11-24 10:30 UTC · original
Read-through, not built (the shims are Windows-only and I had no Windows box). The size math is right: the PC
D3D12_FEATURE_DATA_D3D12_OPTIONSis 15 dwords = 0x3C, so 0x40 is one extraUINT, and the tail is zeroed. This makes the code do whatdocs/d3d12_xs_surface.mdalready describes as current behaviour (§7.1 and theCheckFeatureSupportanswers row), whichmaindoesn't do yet: it still returnsE_INVALIDARGfor 0x40. The test pre-fills the tail with0xdeadbeef, so it does check the zeroing. Looks good to me; a Windows build/ctest run from someone with the toolchain would close it. AI-assisted review.