tests: cover gfx1013 rectangle geometry expansion #3697

Manually merged
github merged 1 commit from github-bot/gh-3695 into gh-pr/3695/base 2026-12-01 03:13:21 +00:00 AGit
Owner

@⁠Ammmae0x on GitHub · 2026-12-01 02:54 UTC · original
Ammmae0x:tests/gfx1013-rect-geometry → main · +1095 −0 · 5 files · 1 commits · merged 2026-12-01 03:12 UTC

Refs #1149

Direct tests for x2w::native_rectangle_geometry (src/gfx1013_rect_geometry.cpp) with zero edits to existing files (5 new files only, +1095/-0; portable C++17 needing only tests/gfx1013_rect_geometry_check.cpp + src/gfx1013_rect_geometry.cpp).

19 cases: 8 valid paths pinning structural DXIL IR invariants (load/store counts, the exact viewIdState dependency matrix, the axis and right-angle corner guards, flat promotion, the sparse used mask with a nonzero first offset, and the emitStream/cutStream/gs finish) and 11 refusals pinning the exact UnsupportedComputeShader messages (numeric barycentrics, the four unsupported-interface conditions, the five incomplete-position conditions, and the missing position). CMake registers one CTest test per case plus gfx1013_rect_geometry_all and 5 WILL_FAIL TRUE copy mutations (barycentrics, interface, position, missing position, flat). The meta check compiles and runs the real C++ check with g++ -std=c++17 and each mutant copy the same way.

Linux (this host, g++ -std=c++17):

  • tests/gfx1013_rect_geometry_meta_check.py: PASS: gfx1013 rect geometry: 19 cases, 5/5 real C++ mutations killed
  • tests/form_coverage_check.py: passed
  • tests/docs_links_check.py: Checked 198 Markdown files and 765 links
  • tests/bidi_controls_check.py: Checked 2793 tracked source, script and build/CI files: no bidirectional controls
  • git diff --check: clean

Caveat: no mingw on this host, so no Windows compile check; WIN-VERIFY run is the arbiter.

Windows Verification (f523b02f98b545b6cdd2dd8b13e62d5fc87df8c2)

Commit: f523b02f98b545b6cdd2dd8b13e62d5fc87df8c2 (merge-tree upstream/main HEAD -> 6118ee3e, exit 0; git diff --check clean)
dev: cmake --build --preset dev --target gfx1013_rect_geometry_check ... && ctest --preset dev --no-tests=error -R '^gfx1013_rect_geometry' --output-on-failure -> 25/25 passed (0.98s; 19 cases + all + 5/5 mutations killed)
release: cmake --build --preset release --target gfx1013_rect_geometry_check ... && ctest --preset release --no-tests=error -R '^gfx1013_rect_geometry' --output-on-failure -> 25/25 passed (0.86s; 19 cases + all + 5/5 mutations killed)
Direct binary (dev & release): PASS: gfx1013_rect_geometry: 19/19 cases passed
Checks: form_coverage_check.py, docs_links_check.py (199 files, 769 links), bidi_controls_check.py (2796 files) -> passed

AI-assisted.

**@⁠Ammmae0x** on GitHub · 2026-12-01 02:54 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3695) `Ammmae0x:tests/gfx1013-rect-geometry` → `main` · +1095 −0 · 5 files · 1 commits · merged 2026-12-01 03:12 UTC Refs #1149 Direct tests for `x2w::native_rectangle_geometry` (`src/gfx1013_rect_geometry.cpp`) with zero edits to existing files (5 new files only, +1095/-0; portable C++17 needing only `tests/gfx1013_rect_geometry_check.cpp` + `src/gfx1013_rect_geometry.cpp`). 19 cases: 8 valid paths pinning structural DXIL IR invariants (load/store counts, the exact `viewIdState` dependency matrix, the axis and right-angle corner guards, flat promotion, the sparse `used` mask with a nonzero `first` offset, and the `emitStream`/`cutStream`/gs finish) and 11 refusals pinning the exact `UnsupportedComputeShader` messages (numeric barycentrics, the four unsupported-interface conditions, the five incomplete-position conditions, and the missing position). CMake registers one CTest test per case plus `gfx1013_rect_geometry_all` and 5 `WILL_FAIL TRUE` copy mutations (barycentrics, interface, position, missing position, flat). The meta check compiles and runs the real C++ check with `g++ -std=c++17` and each mutant copy the same way. Linux (this host, `g++ -std=c++17`): - `tests/gfx1013_rect_geometry_meta_check.py`: `PASS: gfx1013 rect geometry: 19 cases, 5/5 real C++ mutations killed` - `tests/form_coverage_check.py`: passed - `tests/docs_links_check.py`: `Checked 198 Markdown files and 765 links` - `tests/bidi_controls_check.py`: `Checked 2793 tracked source, script and build/CI files: no bidirectional controls` - `git diff --check`: clean Caveat: no mingw on this host, so no Windows compile check; WIN-VERIFY run is the arbiter. ### Windows Verification (`f523b02f98b545b6cdd2dd8b13e62d5fc87df8c2`) ```text Commit: f523b02f98b545b6cdd2dd8b13e62d5fc87df8c2 (merge-tree upstream/main HEAD -> 6118ee3e, exit 0; git diff --check clean) dev: cmake --build --preset dev --target gfx1013_rect_geometry_check ... && ctest --preset dev --no-tests=error -R '^gfx1013_rect_geometry' --output-on-failure -> 25/25 passed (0.98s; 19 cases + all + 5/5 mutations killed) release: cmake --build --preset release --target gfx1013_rect_geometry_check ... && ctest --preset release --no-tests=error -R '^gfx1013_rect_geometry' --output-on-failure -> 25/25 passed (0.86s; 19 cases + all + 5/5 mutations killed) Direct binary (dev & release): PASS: gfx1013_rect_geometry: 19/19 cases passed Checks: form_coverage_check.py, docs_links_check.py (199 files, 769 links), bidi_controls_check.py (2796 files) -> passed ``` AI-assisted. <!-- WIN-VERIFY: passed | sha=f523b02f98b545b6cdd2dd8b13e62d5fc87df8c2 | targets=gfx1013_rect_geometry_check gfx1013_rect_geometry_barycentrics_mut gfx1013_rect_geometry_interface_mut gfx1013_rect_geometry_position_mut gfx1013_rect_geometry_missing_position_mut gfx1013_rect_geometry_flat_mut | ctest=^gfx1013_rect_geometry | release=true -->
Refs #1149

Direct tests for x2w::native_rectangle_geometry
(src/gfx1013_rect_geometry.cpp) with zero edits to existing
files: 19 cases (8 valid paths pinning structural DXIL IR
invariants, 11 refusals pinning the exact
UnsupportedComputeShader messages) plus 5 WILL_FAIL TRUE
mutation controls, a g++ meta check, and a note.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 02:54:55 +00:00
github-bot changed target branch from main to gh-pr/3695/base 2026-12-01 03:13:17 +00:00
github manually merged commit f523b02f98 into gh-pr/3695/base 2026-12-01 03:13:21 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-01 03:11 UTC · original · approved these changes

Reviewed the source-built rectangle expansion and interface checks, including the CMake mutation controls for position, barycentrics and flat parameters. ctest --test-dir <build> --no-tests=error -j1 -R '^gfx1013_rect_geometry_' --output-on-failure passed in the Windows integration.

**@⁠R0Y00** on GitHub · 2026-12-01 03:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3695#pullrequestreview-6124497736) · **approved these changes** Reviewed the source-built rectangle expansion and interface checks, including the CMake mutation controls for position, barycentrics and flat parameters. `ctest --test-dir <build> --no-tests=error -j1 -R '^gfx1013_rect_geometry_' --output-on-failure` passed in the Windows integration.
This discussion has been locked. Commenting is limited to contributors.
No description provided.