Tests: cover two-pass MS and ES+GS PSO hooks without game files #977
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!977
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-977"
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?
@ChalanaGimhanaX on GitHub · 2026-11-24 09:48 UTC · original
ChalanaGimhanaX:tests/gpu-mesh-e2e→main· +489 −0 · 1 files · 1 commits · openAll two-pass mesh (
MS) and legacy geometry (ES+GS) PSO hook tests incrates/xcl/tests/gpu_pso_e2e.rsskip whenXCL_SAMPLE_RPFis unset, leavingtranslated_mesh_stream,own_stream,translated_gs_pso, andTwoPassPsowithout game-free GPU test coverage. This adds an integration test binary with minimal hand-encoded console MS/PS and ES/GS/PS containers that exercise both hooks end to end on the GPU. No runtime files or game data are touched.What is in it
crates/xcl/tests/gpu_mesh_e2e.rs: two game-free GPU tests coveringID3D12Device2::CreatePipelineStateon a console MS (NGG,hw=7, api=6) + console PS stream (coldXCL_DXIL_CACHE, stack stream + shader buffer overwrite provingown_streamdeep copy, async stand-in resolution,two_pass_ofkind == "MS", two-passDispatch+DispatchMeshexecution with record and pixel readback, andtwo_pass_countcleanup on drop) andID3D12Device::CreateGraphicsPipelineStateon console VS (ES varianthw=2) + GS (hw=3, triangle to triangle-strip parallelogram expansion) + console PS (two_pass_ofkind == "GS", two-pass GPU execution with strip winding and pixel readback inside both original and GS-generated triangles, and drop cleanup).Tested
rustc 1.100.0, debug build, tested on both GPUs on this machine:32.0.21030.11004):XCL_ADAPTER=radeon .\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 718 passed, 0 failed, 41 ignored (0 GPU tests skipped)XCL_ADAPTER=radeon XCL_REQUIRE_GPU=wave64,mesh cargo test -p xcl --test gpu_mesh_e2e: 2 passed, 0 failedXCL_ADAPTER=radeon XCL_SPLIT_WAVE64=1 cargo test -p xcl --test gpu_mesh_e2e: 2 passed, 0 failedXCL_ADAPTER=radeon XCL_ASYNC_PSO=0 cargo test -p xcl --test gpu_mesh_e2e: 2 passed, 0 failedXCL_ADAPTER=radeon cargo test -p xcl --test gpu_mesh_e2e -- --test-threads=1: 2 passed, 0 failed610.88/32.0.16.1088):XCL_ADAPTER=nvidia .\scripts\test.ps1(cargo test --workspace -- --test-threads=4): 718 passed, 0 failed, 41 ignored (2 GPU tests skipped:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64)XCL_ADAPTER=nvidia cargo test -p xcl --test gpu_mesh_e2e: 2 passed, 0 failed (also 2 passed underXCL_ASYNC_PSO=0)XCL_ADAPTER=warp):cargo test -p xcl --test gpu_mesh_e2e: 2 passed (2 skipped:no wave64)cargo clippy -p xcl --test gpu_mesh_e2e: 0 warnings incrates/xcl/tests/gpu_mesh_e2e.rsNot tested
d3d12SDKLayers.dllnot installed) and optionalXCL_SAMPLE_*retail-data testsAI use
crates/xcl/tests/gpu_mesh_e2e.rsand this PR description, checked open PRs for overlap, and ran local dual-GPU verification on AMD Radeon 780M and NVIDIA RTX 5060 hardware.@DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@JJAutoCompare on GitHub · 2026-11-25 05:38 UTC · original
Empirical test report (
47fb4bb5)Verified xcl-dev/xcl PR #977 at
47fb4bb5a831a02d9fce281c0da9f5f2d457c948.Hardware / environment
32.0.101.9175, and AMD x64 CPU (family 23, model 113, stepping 0).10.0.26200,rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.9.2609.5 (01b62ad4), and Cargo's unoptimized test profile with debug info and incremental compilation disabled.Commands and results
cargo test --workspace --no-runcompleted outside the GPU lock with exit code 0.gpu_mesh_e2e-7490f57fced0e70c.exe --nocaptureinsideInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The wrapper acquired and released the GPU lock. The fixture exited 0 after 1.74 s of test time.SKIPPEDlines, so both tests exercised their GPU assertions.Observed behavior
console_es_gs_graphics_hook_executes_two_passes_and_cleans_uppassed. The graphics PSO hook produced a compute pass and a mesh pass. GPU readback matched the expected strip record, including triangle winding, and pixels in both the original and generated triangles.console_ms_ps_stream_hook_executes_two_passes_and_cleans_uppassed. The cold-cache stream hook resolved the async stand-in after the fixture overwrote the caller's stream and shader bytes. GPU readback matched the records and expected pixels for both mesh groups.Not tested
The full GPU workspace suite and game smoke runs were omitted. GPU execution was limited to the two fixtures on the Arc A770.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr977-focused.logand published.@DavidM1911 on GitHub · 2026-11-26 03:23 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
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.