Skip to content

Tests: exercise direct geometry in expanded heap windows - #2440

Draft
venetanji wants to merge 1 commit into
xcl-dev:mainfrom
venetanji:contrib/direct-expanded-window-readbacks
Draft

venetanji wants to merge 1 commit into
xcl-dev:mainfrom
venetanji:contrib/direct-expanded-window-readbacks

Conversation

@venetanji

@venetanji venetanji commented Nov 25, 2026 •

Copy link
Copy Markdown

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

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.
  • Clean public base: 2898511; this head: dc6c7870. 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). Its merge tree is byte-identical to this head. 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.

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 xcl-dev#2088. Complements xcl-dev#2408 and xcl-dev#2383 with executed highest-window data rather than graphics validation alone.

Assisted-by: Codex (GPT-6)
@SlopTart

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants