D3D12.X: derive canonical two-pass driver blob identities #1941
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!1941
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1941/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?
@ZekkJJ on GitHub · 2026-11-24 23:43 UTC · original
ZekkJJ:upstream/two-pass-cache-identity→main· +439 −13 · 2 files · 2 commits · merged 2026-11-25 01:57 UTCAdd canonical cache identities for the NGG compute pass and the passthrough mesh graphics pass. The keys cover shaders, static samplers, ABI version, memory-window mode, driver identity and relevant fixed-function fields. Part of #1269. Coordinate the field serializers with #1836 and #902.
Stacked on #1937. Only
b5767c305e68b34b0981b3e304f73bce85e9f089belongs here.What is in it
crates/xcl/src/hle/d3d12x/real/two_pass_identity.rsdefines the identities and tests state changes, padding, subobject order and rejection of unsupported state. Runtime callers arrive in the next PR.Tested
cargo build --locked --release -p xcl --jobs 1succeeded on cleanb5767c305e68b34b0981b3e304f73bce85e9f089and baseline689f2db477c3c062cf162649781640ef8a977c18..\scripts\test.ps1(Cargo build jobs 1, test threads 4) on stack head024b2e2dc51924965df478fdb4f63fbcae9dc0b2reported 983 passed, 0 failed, 45 ignored across 21 targets. Explicit runtime SKIPPED markers (23) were 18 no native wave64, 3 refused wave32 per-lane operations, 1 Windows Developer Mode unavailable, 1 no heap windows. Optional sample-backed cases also returned early with their sample variables unset. GPU regressions for TRIANGLE replay and both-pass persistence ran without runtime skips.scripts/smoke.ps1 -Game <retail-folder> -Seconds 60 -Title 'Retail workload A' -Xcl <matching-release-binary>on the same anonymized retail workload. NVIDIA selected withXCL_ADAPTER=nvidia.Regression run
main
PR
Not tested
AI use
github-bot referenced this pull request2026-11-26 05:10:45 +00:00
github-bot referenced this pull request2026-11-26 05:31:15 +00:00
@raylitebull on GitHub · 2026-11-25 00:55 UTC · original
Code review on
b5767c3:two_pass_stream_key/two_pass_cs_keyincrates/xcl/src/hle/d3d12x/real/two_pass_identity.rscorrectly canonicalize subobject order, skipROOT_SIGNATURE/CACHED_PSO, fail closed on duplicates, unknown subobjects,NumRenderTargets > 8, or non-zero pointer-bearing subobjects (7/12/22), and hashBLEND,RASTERIZER{,1,2}, andDEPTH_STENCIL{,1,2}field-by-field without struct padding. Verified againstnull::subobject_payloadthat9 | 13 | 14 | 16 | 17 | 18 | 20are all padding-free scalar/2-u32payloads.Build and test (Windows, no GPU)andPR description) is green andmergeStateStatusisCLEAN.What is still needed before merge:
#1937(2c95f01) is now onmain, so rebasing ontomainwill drop the already-mergedtwo_pass_mesh_streamhunks (though Git currently reportsMERGEABLE).@futurepro62 on GitHub · 2026-11-25 00:56 UTC · original · edited 2026-11-25 01:07 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
b5767c3(on its base9492f43).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: 970 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.canonical_stream_key_distinguishes_state_samplers_and_driver,canonical_stream_key_normalizes_padding_and_rejects_pointer_subobjects,two_pass_keys_cover_mem_windows_invalid_counts_and_duplicates,two_pass_cs_key_changes_with_samplers_and_driver.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 979 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 01:45 UTC · original
PR #1941 verification on STOR-WINLAB
D3D12.X: derive canonical two-pass driver blob identities
b5767c305e68b34b0981b3e304f73bce85e9f089, fetched fromorigin refs/pull/1941/head. The detached checkout was clean before and after testing.origin/mainat fetch time was3da2abb81606df622610e009f0430de99aa9881c.git merge-tree --write-tree origin/main HEADexited 0 and produced treef43a7b13523b7666af3d46ee418c4ae9cbe1cfd8.L:\XclTooling\neon-slot-1directory contained no checkout. The run reused the thread’s existing detached checkout and used the assignedL:slot for Cargo output, temporary files, and logs.Tested
DoublePrecisionFloatShaderOps=0), and Windows 11 Enterprise Evaluation build 26200.9974. Rust1.100.0 (0ef1bc386 2026-11-09)and DXC/DXIL 1.9.2609.5. Cargo dev/test profiles with debug info and incremental compilation disabled.cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the GPU lock.cargo test -p xcl --lib hle::d3d12x::real::two_pass_identity::tests -- --show-outputexited 0. All four PR tests passed, with 0 failed, 0 ignored, and 0 reported skips.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-outputcompleted in one pass under the Arc A770 lock viaInvoke-ArcTest.ps1. Cargo exited 101 with 955 passed, 25 failed, 45 ignored across 20 harness summaries. Libtest’s pass count includes early-returning tests. There were 25SKIPPEDrecords across 15 test names. Those skipped cases provide no coverage. Full log:L:\XclTooling\neon-slot-1\tmp\pr1941-suite.log.Failures
CreateComputePipelineStatereturned0x80070057in these 20 tests. The four fuzz tests stopped at seeds 2, 506, 1003, and 1501 respectively.gpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contraction— The fusedv_fma_f32overflow control returned infinity instead of the expected finite value.gpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mips— Pixel (0,0) was 25.609375, expected 26.gpu::recomp::tests::gpu_valu_16_and_64_bit—v_add_f16failed to preserve lane 0’s high half.gpu::recomp::tests::gpu_wave64_ps_whole_wave_reductions— The waterfall-read pixel was[2, 217, 2], expected[2, 216, 2].test_title_runs_and_game_folder_is_untouched— The dynamic depth-bias check (#94) rendered the top-right pixel blue instead of green afterRSSetDepthBiasX(-1000.5).Reported skips
Not tested
Retail-title smoke comparison on main and PR head, a main-branch workspace baseline for attributing the observed failures, game samples gated by
XCL_SAMPLE_*, and other GPU architectures. This revision adds the identity helpers and unit tests. The stacked driver-cache integration was outside this run.AI use
T3 Code / Codex (
gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified the counts againstpr1941-suite.logand published this report.@DavidM1911 on GitHub · 2026-11-25 02:50 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!