Tests: exercise direct geometry in expanded heap windows #2440

Open
github-bot wants to merge 2 commits from github-bot/gh-2440 into main AGit
Owner

@⁠venetanji on GitHub · 2026-11-25 18:57 UTC · original
venetanji:contrib/direct-expanded-window-readbacks → main · +98 −9 · 1 files · 2 commits · draft

The direct-DXIL test helper falls back to HLSL above four memory windows, even when heap windows support sixteen. That lets a requested direct test pass without exercising direct translation. Honor the existing layout limit and assert a real DXIL result. Part of #2088.

What is in it

  • One existing test file: an isolated CPU sentinel regression for compute and NGG at eight/sixteen heap windows, including the non-heap fallback.
  • Extend the numeric NGG record check to window 15; add a direct legacy-GS compute-prepass check of all 192 reference fields and an untouched window-0 decoy. New direct GPU variants require the selected split-wave64 mode. Existing default fixtures and expected numbers remain.
  • Complements #2408/#2383: these execute highest-window NGG/legacy data; they do not change a compiler backend, shader policy, or runtime.

Tested

  • git diff --check: passes. The only changed file is gpu/recomp/tests.rs, compiled under cfg(test).
  • Targeted integration command: the Wine sandbox invoked each libtest selector with --exact --nocapture --test-threads=1 and XCL_DIRECT_DXIL=1: direct_test_helper_honors_expanded_heap_windows, gpu_mesh_mode_reads_expanded_heap_windows, gpu_geometry_direct_expanded_heap_prefix_counts.
  • Before porting to this clean public base, the same fixture bodies passed in our separate Windows-PE/Wine integration on RTX 3080 Ti / NVIDIA 615.78.08 / vkd3d-proton 3.2: three selected parent invocations passed (one CPU, two GPU), plus one separately asserted child, with zero failures/ignored/skips. The legacy check compares 192 fields plus its decoy. Those integration results do not qualify this portable head.
  • Earlier clean-public revision dc6c7870 on base 2898511. Windows/no-GPU CI passed, using Windows 2025, Rust 1.100.0 MSVC/debug and scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched (workspace build/tests, four test threads). That CI merge tree was byte-identical to revision dc6c7870. Main libtest: 1287 passed, 0 failed, 26 ignored; the script reports 344 explicit GPU skips overall. The new CPU sentinel passes, while both new GPU cases explicitly skip for no wave64. This is not hardware GPU coverage. Central CI awaits maintainer approval.
  • Current head 633b1e42 normally merges upstream 08db8020 without rewriting history. Its diff against that upstream pin is byte-identical to the earlier one-file test patch; all assertions and fixture provenance are unchanged. Current upstream Windows/no-GPU CI awaits maintainer approval; no test counts for this merge head are claimed.

Not tested

  • This clean public head on a real GPU, the full hardware suite, native Windows GPU execution, AMD/Intel/native-wave64-selected mode, or retail rendering/FPS. The legacy fixture is a compute prepass, not native mesh/raster coverage.
  • No production runtime changed and no official retail-smoke results are claimed.

AI use

  • Codex (GPT-6), in coordinated supervised sessions, wrote the narrow test-helper correction and fixture extensions, preserved the existing numeric model, checked provenance/duplicates and prepared this test-only port at the user's request.
**@⁠venetanji** on GitHub · 2026-11-25 18:57 UTC · [original](https://github.com/xcl-dev/xcl/pull/2440) `venetanji:contrib/direct-expanded-window-readbacks` → `main` · +98 −9 · 1 files · 2 commits · draft The direct-DXIL test helper falls back to HLSL above four memory windows, even when heap windows support sixteen. That lets a requested direct test pass without exercising direct translation. Honor the existing layout limit and assert a real DXIL result. Part of #2088. **What is in it** - One existing test file: an isolated CPU sentinel regression for compute and NGG at eight/sixteen heap windows, including the non-heap fallback. - Extend the numeric NGG record check to window 15; add a direct legacy-GS compute-prepass check of all 192 reference fields and an untouched window-0 decoy. New direct GPU variants require the selected split-wave64 mode. Existing default fixtures and expected numbers remain. - Complements #2408/#2383: these execute highest-window NGG/legacy data; they do not change a compiler backend, shader policy, or runtime. **Tested** - `git diff --check`: passes. The only changed file is `gpu/recomp/tests.rs`, compiled under `cfg(test)`. - Targeted integration command: the Wine sandbox invoked each libtest selector with `--exact --nocapture --test-threads=1` and `XCL_DIRECT_DXIL=1`: `direct_test_helper_honors_expanded_heap_windows`, `gpu_mesh_mode_reads_expanded_heap_windows`, `gpu_geometry_direct_expanded_heap_prefix_counts`. - Before porting to this clean public base, the same fixture bodies passed in our separate Windows-PE/Wine integration on RTX 3080 Ti / NVIDIA 615.78.08 / vkd3d-proton 3.2: three selected parent invocations passed (one CPU, two GPU), plus one separately asserted child, with zero failures/ignored/skips. The legacy check compares 192 fields plus its decoy. Those integration results do not qualify this portable head. - Earlier clean-public revision `dc6c7870` on base `2898511`. [Windows/no-GPU CI passed](https://github.com/venetanji/xcl/actions/runs/45680473633), using Windows 2025, Rust 1.100.0 MSVC/debug and `scripts/test.ps1 --skip test_title_runs_and_game_folder_is_untouched` (workspace build/tests, four test threads). That CI merge tree was byte-identical to revision `dc6c7870`. Main libtest: 1287 passed, 0 failed, 26 ignored; the script reports 344 explicit GPU skips overall. The new CPU sentinel passes, while both new GPU cases explicitly skip for no wave64. This is not hardware GPU coverage. Central CI awaits maintainer approval. - Current head `633b1e42` normally merges upstream `08db8020` without rewriting history. Its diff against that upstream pin is byte-identical to the earlier one-file test patch; all assertions and fixture provenance are unchanged. [Current upstream Windows/no-GPU CI](https://github.com/xcl-dev/xcl/actions/runs/45727735660) awaits maintainer approval; no test counts for this merge head are claimed. **Not tested** - This clean public head on a real GPU, the full hardware suite, native Windows GPU execution, AMD/Intel/native-wave64-selected mode, or retail rendering/FPS. The legacy fixture is a compute prepass, not native mesh/raster coverage. - No production runtime changed and no official retail-smoke results are claimed. **AI use** - Codex (GPT-6), in coordinated supervised sessions, wrote the narrow test-helper correction and fixture extensions, preserved the existing numeric model, checked provenance/duplicates and prepared this test-only port at the user's request.
The test helper returned HLSL above four windows even when heap-indexed layouts support sixteen, so requested direct coverage could silently run another compiler path. Respect the existing window bound and assert an actual DXIL container in an isolated CPU regression.

Execute NGG and legacy geometry compute prepasses against window 15 with the existing numeric models and a window-0 decoy. Preserve the original default fixture path, and report unsupported selected wave modes as skips for the new direct variants. No production runtime or backend changes.

Part of #2088. Complements #2408 and #2383 with executed highest-window data rather than graphics validation alone.

Assisted-by: Codex (GPT-6)
Merge upstream main at 08db8020d3 into the existing PR2440 branch without rewriting its history. The focused diff against upstream is byte-identical to the original test-only patch; all numeric assertions and provenance remain intact.

Assisted-by: Codex (GPT-6)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:30:58 +00:00
Author
Owner

@⁠SlopTart on GitHub · 2026-11-25 19:18 UTC · original

Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite, cold cache: 162 passed / 4 failed. Three are the known baseline trio on this lane; the fourth is the new gpu_promoted_uav_clear_values_pass_create_committed_resource failure that current main carries (reported here), not caused by this PR. Everything else is green.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-25 19:18 UTC · [original](https://github.com/xcl-dev/xcl/pull/2440#issuecomment-7172123715) **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite, cold cache: 162 passed / 4 failed. Three are the known baseline trio on this lane; the fourth is the new `gpu_promoted_uav_clear_values_pass_create_committed_resource` failure that current main carries ([reported here](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2280)), not caused by this PR. Everything else is green. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 20:15 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: 1 real failure, deterministic (also fails --test-threads=1, 1219/1):
gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier
  assertion failed: group barriers in the program (lower_dxil.rs:1155)

The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-25 20:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2440#issuecomment-7173414379) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: **1 real failure**, deterministic (also fails `--test-threads=1`, 1219/1): ``` gpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier assertion failed: group barriers in the program (lower_dxil.rs:1155) ``` The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 02:12 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 02:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/2440#issuecomment-7180565352) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2440/head:github-bot/gh-2440'
git switch 'github-bot/gh-2440'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2440'
git switch 'github-bot/gh-2440'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2440'
git switch 'github-bot/gh-2440'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2440'
git switch 'main'
git merge --squash 'github-bot/gh-2440'
git switch 'main'
git merge --ff-only 'github-bot/gh-2440'
git switch 'main'
git merge 'github-bot/gh-2440'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.