tests: follow the shared word3 decoder in draw preflight #2754

Merged
R0Y00 merged 1 commit from upstream-pr/2762 into main 2026-11-26 06:42:45 +00:00
R0Y00 commented 2026-11-26 06:35:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:35:23Z.


On current main the vertex-fetch control still expects the inline FORMAT guard. #2596 moved that guard to the shared word3 decoder. Keep checking the draw call order, readability and token handling, and test both the call into the shared decoder and the FORMAT guard in it. Both removals are separate negative controls. The patch changes only the test.

On Windows 11 build 26200 at base e3cf6a91 plus this test change, python -B tests/startup_vertex_fetch_formats_check.py controls passed. Refs #2596 and #2006.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6621010040 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2762). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:35:23Z. --- On current main the vertex-fetch control still expects the inline FORMAT guard. #2596 moved that guard to the shared word3 decoder. Keep checking the draw call order, readability and token handling, and test both the call into the shared decoder and the FORMAT guard in it. Both removals are separate negative controls. The patch changes only the test. On Windows 11 build 26200 at base e3cf6a91 plus this test change, python -B tests/startup_vertex_fetch_formats_check.py controls passed. Refs #2596 and #2006.
tedin7 commented 2026-11-26 06:42:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T06:42:27Z.

Review: COMMENTED


Review of head 48be37c3 (test-only change, 1 file).

  • The control now checks both the call into the shared word3 decoder in the preflight and the FORMAT support check inside the decoder. Each removal is its own negative control.
  • Mutation: renaming formatted_buffer_supported( in src/startup_stubs/d3d12_draw.inl makes the check fail (AssertionError). Restored after.
  • Branch is up to date with main. python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py and git diff --check origin/main...HEAD are clean.
  • Win2025 (Build 26100, MSVC 14.44 + D3D12 WARP), ctest -R startup_vertex_fetch_formats: dev 3/3 and release 3/3 passed (startup_vertex_fetch_formats_controls, _warp, _hardware).
  • No other open or merged PR covers the same slice.

Looks sound. No blocking findings.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6069618840 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2762#pullrequestreview-6069618840). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T06:42:27Z. **Review:** COMMENTED --- Review of head 48be37c3 (test-only change, 1 file). - The control now checks both the call into the shared word3 decoder in the preflight and the FORMAT support check inside the decoder. Each removal is its own negative control. - Mutation: renaming `formatted_buffer_supported(` in `src/startup_stubs/d3d12_draw.inl` makes the check fail (AssertionError). Restored after. - Branch is up to date with main. `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py` and `git diff --check origin/main...HEAD` are clean. - Win2025 (Build 26100, MSVC 14.44 + D3D12 WARP), `ctest -R startup_vertex_fetch_formats`: dev 3/3 and release 3/3 passed (`startup_vertex_fetch_formats_controls`, `_warp`, `_hardware`). - No other open or merged PR covers the same slice. Looks sound. No blocking findings. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-26 07:00:24 +00:00
tedin7 commented 2026-11-26 07:00:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T06:42:35Z.


Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 48be37c31f3f278f72d59cd47e9c9fd89f6b3ba1:

  • Debug (--preset dev):
    • Test (ctest --preset dev -R 'startup_vertex_fetch_formats' --parallel 6 --no-tests=error --output-on-failure): 3/3 passed (startup_vertex_fetch_formats_controls, startup_vertex_fetch_formats_warp, startup_vertex_fetch_formats_hardware)
  • Release /O2 (--preset release):
    • Test (ctest --preset release -R 'startup_vertex_fetch_formats' --parallel 6 --no-tests=error --output-on-failure): 3/3 passed (same three tests)
  • Wall: 27.8s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184703407 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2762#issuecomment-7184703407). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T06:42:35Z. --- Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `48be37c31f3f278f72d59cd47e9c9fd89f6b3ba1`: - **Debug (`--preset dev`)**: - Test (`ctest --preset dev -R 'startup_vertex_fetch_formats' --parallel 6 --no-tests=error --output-on-failure`): **3/3 passed** (`startup_vertex_fetch_formats_controls`, `startup_vertex_fetch_formats_warp`, `startup_vertex_fetch_formats_hardware`) - **Release `/O2` (`--preset release`)**: - Test (`ctest --preset release -R 'startup_vertex_fetch_formats' --parallel 6 --no-tests=error --output-on-failure`): **3/3 passed** (same three tests) - Wall: `27.8s` AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2754
No description provided.