tests: cover list_copy_texture alignment, partial MSAA, and footprint bounds #3759
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!3759
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3757"
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?
@Ammmae0x on GitHub · 2026-12-01 16:24 UTC · original
Ammmae0x:tests/list-copy-texture-unit→main· +1692 −0 · 5 files · 1 commits · merged 2026-12-02 02:07 UTCRefs #1149.
Standalone portable C++17 unit + 1:1 header-mutation tests for
x2w_list_copy_texture(src/startup_stubs/list_copy_texture.h), with zero edits to existing files (5 new files only, +1692/-0).tests/startup_list_copy_texture_check.cppandCMakeLists.txtare untouched; thelist_copy_texture_unitprefix keeps test names disjoint fromstartup_list_copy_texture.27 cases:
decode_subresource(zero counts, index >= per_plane * planes, valid (mip, slice, plane) decomposition),checked_mul/checked_add(exactUINT64_MAXboundary vs wrap overflow),footprint_end(zero w/h/d ending at the offset, unpadded last row, 4x4 block-compressed rounding,s.heightslice pitch,End::over_pitch,End::overflow), andcheck()+name()over all 14Verdictvalues (ok, buffer_to_buffer, bad_subresource dst/src, sample_mismatch, format_mismatch, bad_box, source_overflow, bad_alignment on start coords and on the box end of a 2x2 mip vs box == nullptr -> ok, partial_multisample and partial_depth_stencil even with a full-size explicit box or a non-zero origin, dest_overflow, bad_pitch 0/non-256/over_pitch, bad_offset non-512, footprint_overflow with the exact end == resource_bytes fit vs +1 overflow).7
WILL_FAIL TRUECMake header-mutation controls, mirrored 1:1 in the meta check (decode_bound,box_end_align,partial_msaa,pitch_align,offset_align,slice_rows_height,footprint_bound), with mutated copies at<mut>/startup_stubs/list_copy_texture.handBEFORE PRIVATEinclude. No mutant uses a literal constant condition, so they stay clean under MSVC/W4as well as-Werrorong++.Verification (Linux, this host,
g++ -std=c++17):Scratch CMake + CTest (standalone configure of the fragment, via symlinked
src/tests; the full configure needs DXC, unavailable on Linux):That is 27 per-case tests,
list_copy_texture_unit_all, and the 7WILL_FAIL TRUEmutation controls.form_coverage_check.pypasses,docs_links_check.pypasses (208 files, 802 links),bidi_controls_check.pypasses (2827 files),git diff --checkis clean, merge-tree exits 0, and the fullpython-linuxsuite passes (all 299 checks passed, including this meta check).No mingw on this host, so no Windows compile check; WIN-VERIFY run is the arbiter.
Windows Verification (
7d1aa4a8)git merge-tree --write-tree upstream/main HEAD->0acb8df3(exit 0),git diff --check upstream/main...HEADcleanpy_compile,form_coverage_check.py,docs_links_check.py(209 files, 806 links),bidi_controls_check.py(2830 files),list_copy_texture_unit_meta_check.py(cl:27 cases, 7/7 mutations killed) passeddev35/35 passed (1.35s);release35/35 passed (1.17s); directlist_copy_texture_unit_check.exe(dev&release):PASS: list_copy_texture_unit: 27/27 cases passed. AI-assisted.