Tests: pin the pipeline stream subobject table to the PC headers #2006
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!2006
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2006/head"
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?
@brandostrong on GitHub · 2026-11-25 00:38 UTC · original
brandostrong:subobject-table-test→main· +48 −0 · 1 files · 1 commits · merged 2026-11-25 19:23 UTCThe stream reader's payload table (
subobject_payload) had no test: a wrong size or alignment silently mis-parses every pipeline stream. This pins each known type to thewindowscrate's constant and the header struct's own size and alignment, and pins that 23 is unknown — the console's mesh numbering puts AS there and mesh at 24 (the PC's AS), the shapereal.rstakes as a mesh-only pipeline. Part of the validation line claimed on #1269.What is in it
crates/xcl/src/hle/d3d12x/null.rs(#[cfg(test)]only):the_stream_subobject_table_matches_the_pc_headers(28 pinned entries) andsubobject_23_is_unknown— no runtime changeTested
cargo build --workspace+cargo test --workspace -- --test-threads=4on4ba1964: 988 passed, 0 failed, 45 ignored; 22 SKIPPED, all adapter limits of this wave32 cardwindows0.62.2 as pinned inCargo.lockNot tested
#[cfg(test)]-only; atest-onlylabel would waive the smoke check per CONTRIBUTING item 3)AI use
🤖 Generated with Claude Code
@raylitebull on GitHub · 2026-11-25 01:13 UTC · original
Code review on
4ba1964:the_stream_subobject_table_matches_the_pc_headersandsubobject_23_is_unknownincrates/xcl/src/hle/d3d12x/null.rscleanly pinsubobject_payloadsizes and alignments directly against thewindowscrate D3D12 definitions, andBuild and test (Windows, no GPU)is green.Remaining before merge:
PR descriptioncheck.4ba1964.@futurepro62 on GitHub · 2026-11-25 01:03 UTC · original · edited 2026-11-25 01:14 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
4ba1964(on its base62265d3).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 978 passed, 0 failed, 43 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.the_stream_subobject_table_matches_the_pc_headers,subobject_23_is_unknown.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 987 passed, 0 failed, 45 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main7994cd1too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests andconst_and_null_mask_operands_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 02:42 UTC · original
Empirical verification — PR #2006 (
4ba19645164a5cc2493103e45a9f5efa18d81be4)Tested clean detached PR head
4ba19645164a5cc2493103e45a9f5efa18d81be4on STOR-WINLAB.Environment
26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0,d3d12SDKLayers.dllabsent).rustc 1.100.0 (0ef1bc386 2026-11-09)(CARGO_INCREMENTAL=0, debug info 0). Standalone DXC/DXIL1.9.2609.5was onPATH; the test title logged Windows SDK DXC1.9.2602.17(21d28f72).Tested
cargo build --workspaceandcargo test --workspace --no-runexited 0 outside the GPU lock.cargo test -p xcl --lib the_stream_subobject_table_matches_the_pc_headers -- --nocapture: 1 passed, 0 failed, 0 ignored.cargo test -p xcl --lib subobject_23_is_unknown -- --nocapture: 1 passed, 0 failed, 0 ignored.cargo test --workspace --no-fail-fast -- --test-threads=4(underInvoke-ArcTest.ps1, exited 101): 963 passed, 25 failed, 45 ignored across 20 test binaries, with 22 visibleSKIPPEDlines (excluded from coverage; libtest pass counts include early returns).xcl --libshader/DXIL tests (20CreateComputePipelineState0x80070057+ 4 shader output assertions) and 1 ine2e(test_title_runs_and_game_folder_is_untouched,RSSetDepthBiasX#94). All unrelated to this test-only PR (no parent baseline run).Not tested
XCL_DXC_DIR.AI use
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr2006-suite.logand published this report.@DavidM1911 on GitHub · 2026-11-25 03:51 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@Toons29 on GitHub · 2026-11-25 03:40 UTC · original · edited 2026-11-25 10:24 UTC
Regression run of
17d22c18on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainoncbc296ab, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@throny on GitHub · 2026-11-25 17:58 UTC · original
Two contributors checked independently and found that #2374 solves the same problem in a different way: #1607, group D106. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@ivall on GitHub · 2026-11-25 19:23 UTC · original
Merging: pins the stream subobject sizes to the PC headers.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.
@DavidM1911 on GitHub · 2026-11-26 07:05 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on--test-threads=1rerun (1311 passed, 0 failed, 27 ignored, 90s). Intermittent single-test flake — tracked in #1978.Thanks!
— Devin