startup: create committed upload and readback resources in their required initial states #1901
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1901
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1901/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?
@lukaslw-lab on GitHub · 2026-11-24 20:41 UTC · original
lukaslw-lab:startup/committed-heap-initial-state→main· +133 −5 · 3 files · 1 commits · merged 2026-11-24 21:04 UTCAI-assisted (Claude Code).
Change
Device slot 127 (
device_create_committed_x) now passesGENERIC_READfor an upload heap andCOPY_DESTfor a readback heap; other heaps keepCOMMON. The Windows 10 runtime refusesCOMMONthere withE_INVALIDARG. Fixes #1900. Refs #870.Verification
mainat4c5afa8e+ this branch, Windows 10 22H2 (19045), RTX 3080 Ti driver 32.0.16.1047, WARP in-box, debug layer off.startup_committed_heap_state_warp0x80070057startup_committed_heap_state_hardwarestartup_committed_heap_state_upload_texture_control(WILL_FAIL)Affected areas,
devandrelease(full build of each preset):15/15 passed in each preset, 0 failed. Of those, 2 are capability skips (77):
startup_root_heap_warpand_hardware, because the Windows 10 runtime rejects the heap-indexing root flags (#1277); not related to this change.Evidence and follow-up
tests/startup_committed_heap_state_check.cpp, source-built: default, upload (150 x 768 and 320 x 768 bytes, sizes seen in a startup run) and readback buffers through slot 127, as a title passes them. It prints what the runtime does withCOMMONon an upload buffer: refused on Windows 10; a newer runtime that accepts it still passes.main'sd3d12_xs_device.cpp(the change reverted locally): it fails on Windows 10 only, because newer runtimes acceptCOMMON.Checklist
🤖 Generated with Claude Code
Device slot 127 created every resource in COMMON. D3D12 requires upload-heap resources to start in GENERIC_READ and readback-heap resources in COPY_DEST; the Windows 10 runtime refuses COMMON there with E_INVALIDARG. Other heaps keep COMMON. startup_committed_heap_state_{warp,hardware} create default, upload and readback buffers through slot 127; the upload-texture control asks for a 2D texture on an upload heap, which no runtime creates. Co-Authored-By: Claude Opus 5.5 <[email protected]>