Repository navigation
startup: implement next copy command-list slot in d3d12_xs_device (Part of #870) - #2070
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91c1329631
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
91c1329 to
394dbe3
Compare
|
All 6 review threads fixed and pushed in 394dbe3 (rebased on origin/main). |
R0Y00
left a comment
There was a problem hiding this comment.
The validation currently derives mip using modulo without checking the full subresource index (including array slice and plane), and computes format_src/format_dst without checking compatibility. An invalid subresource can reach the desktop call. A multisample mismatch also needs exact sample-count validation and whole-subresource restrictions. Please begin with a documented slice whose subresource range, formats and sample count are all known, and refuse the others before upload or barriers. Make the footprint extent arithmetic checked at each multiply/add before submitting. Add a source-built wrapped-list readback, with a bad index and incompatible format rejected before any desktop copy; arithmetic-only tests can continue to cover the size checks. Desktop CopyTextureRegion contract
|
Addressed in d7610f5 (code in 2927598). Fix:
Regression tests:
Verification:
AI-assisted; commands listed were executed locally. |
d7610f5 to
677c7ba
Compare
…Y00#870) Maps both copy locations to desktop resources, refuses calls the desktop would reject with a named reason, and forwards the rest with COPY_SOURCE/COPY_DEST states.
…resource (Part of R0Y00#870)
… slot 16 (Part of R0Y00#870) Index = mip + slice * mips + plane * mips * array_size must lie inside the resource; planar, format-mismatched and partial multisampled copies are refused; footprint arithmetic is checked at each multiply and add. Adds a wrapped-list readback test.
677c7ba to
25b9298
Compare
R0Y00
left a comment
There was a problem hiding this comment.
The array-slice, format and footprint changes address the original review. During recheck I found that a multisampled copy could still forward a non-null source box covering the full resource. The desktop API requires a null box for those copies and for depth-stencil copies. I added exact controls for both and kept the existing reasons for other refusals. Windows Release passed all five selected checks. The wrapped-list copies round-tripped both slices and kept the refused index/format cases off the desktop path on WARP and RTX 4060 Laptop.
Part of #870
What this unblocks: command-list slot 16
CopyTextureRegion(texture to texture, texture to buffer, buffer to texture) is no longer dropped in render mode, so title copies reach the desktop list.What changes
COPY_SOURCE/COPY_DESTfor the call (Close returns them toCOMMON), and forwards the call.unknown_resource,buffer_to_buffer,bad_box,source_overflow,dest_overflow,bad_pitch,bad_offset,footprint_overflow,sample_mismatch,bad_alignment.src/startup_stubs/list_copy_texture.h; the handler is inlist_copy_texture.inl(one include and one install line ind3d12_xs_device.cpp).x2w_d3d12_list_copy_texture_statsexports the counters.CopyTiles(18) is left out on purpose. Slots 15, 17, 19 are in startup: copy and resolve whole resources on a recording list (slots 15, 17, 19) #1944.The slot placement follows the unshifted order of slots 12 to 25 and has not been seen in a title log yet.
Verification: (Win2025:
x2w_pipe.py win2025 2070at head 91c1329, debug and release /O2, release ctest 23/23 passed incl.startup_list_copy_textureandstartup_list_copy_texture_overflow_control; Linux checks below)