Repository navigation
startup: create committed upload and readback resources in their required initial states - #1901
Merged
R0Y00 merged 1 commit intoNov 24, 2026
Conversation
…ired initial states
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 <noreply@anthropic.com>
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.
AI-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