startup: copy and resolve whole resources on a recording list (slots 15, 17, 19) #1811
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!1811
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1811/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?
@tedin7 on GitHub · 2026-11-24 19:04 UTC · original
tedin7:x2w-frontier-list-copy→main· +804 −0 · 7 files · 1 commits · closed without mergingRelated to #870 (no
Fixes).What changes
In render mode, three command-list slots that were dropped now copy whole resources:
CopyBufferRegion, slot 17CopyResource, slot 19ResolveSubresource(unshifted, like slots 12 to 25).COPY_SOURCE/COPY_DESTorRESOLVE_SOURCE/RESOLVE_DESTfor the call and back toCOMMONat Close. An upload buffer stays readable and a readback buffer stays a copy destination.size_mismatch,sample_mismatch,range_overflow,source_not_multisampled, ...). Calls on a closed list are ignored.R16G16B16A16, as in #1729; normalised for the 8-bit and 10-bit families). One with no single choice (for exampleR16_TYPELESS) is refused asbad_format.x2w_d3d12_list_copy_statsexports the counters for fixtures.CopyTextureRegion(16) andCopyTiles(18) are left out on purpose.Code is in new files:
src/startup_stubs/list_copy.h(pure checks) andlist_copy.inl(handlers).d3d12_xs_device.cppgets one include of each, plus three install lines after the slot 52 line.These slots have not been seen in a title log yet; the placement follows the unshifted slot order.
Checks run locally (Linux)
Not run
startup_list_copy_{warp,hardware}and the new device code have not been built or run; they need Windows. The fixture records on one list: clear and copy, a swapped copy (the empty texture stays empty), a 4-sample resolve, a typeless half-float resolve, two buffer copies with offsets, four refused calls (size mismatch, null source, one-sample resolve source, range past the end) and calls on a closed list, then reads everything back and checks the debug layer.AI-assisted; commands listed were executed locally.
@tedin7 on GitHub · 2026-11-24 19:14 UTC · original
Closing this draft for now to help keep the open PR queue manageable; the branch stays preserved on the fork so it can be reopened once the queue clears.
Pull request closed