D3D12.X: declare triangle topology for translated mesh PSOs #1937
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!1937
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1937/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-triangle→main· +68 −13 · 1 files · 1 commits · merged 2026-11-25 00:20 UTCDeclare TRIANGLE on the passthrough mesh graphics pass for translated MS and GS pipelines. The NGG compute pass still executes first. This keeps the stream topology consistent with the mesh shader output and the driver's cached PSO validation. Part of #1269.
What is in it
crates/xcl/src/hle/d3d12x/real.rsbuilds the translated triangle stream and replays a synthetic driver blob against it.Tested
cargo build --locked --release -p xcl --jobs 1succeeded on clean9492f43f6ec1d57657c5ce71df007b485f443c03and 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
@raylitebull on GitHub · 2026-11-24 23:53 UTC · original
@ZekkJJ Thanks for splitting
#1937->#1941->#1942cleanly! On#1937,9492f43passes CI and looks well-scoped (D3D12_PRIMITIVE_TOPOLOGY_TYPE_TRIANGLEfor translated mesh streams), and currently only has NVIDIA RTX 4060 Laptop test results.If an AMD reviewer (RDNA2/3/4) can verify
passthrough_mesh_stream_accepts_a_triangle_driver_blob+ a 60 sscripts/smoke.ps1pair on9492f43(and similarly across#1941/#1942), that will clear cross-vendor verification cleanly.@futurepro62 on GitHub · 2026-11-25 00:12 UTC · original
Adding an AMD GPU (RDNA2, native wave64) to the NVIDIA RTX 4060 Laptop report above, with an NVIDIA run alongside.
passthrough_mesh_stream_accepts_a_triangle_driver_blobpasses on both. Noscripts/smoke.ps1pair: I have no title to run it on. Tested exact head9492f43(on its base689f2db).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::dxil::fuzz_tests: 966 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.passthrough_mesh_stream_accepts_a_triangle_driver_blob.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 975 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 main62265d3too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651) and the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests (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
@DavidM1911 on GitHub · 2026-11-25 02:41 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!