Repository navigation
Conversation
91dcf99 to
c256c7e
Compare
bmjask
left a comment
There was a problem hiding this comment.
No blocking Direct-DXIL correctness defect found. The GS_DONE handling is consistent with the supported AMD message operations, and the new tests cover emit/cut/NOP plus stream filtering. Nonblocking coverage gap: the new GPU case only runs split-wave64 lowering; please add a native-wave64 run when supported. Separately, the HLSL backend still treats GS_DONE as a no-op; that appears to be a pre-existing parity follow-up rather than a defect in this PR.
|
Update for head AMD native wave64 run (listed as untested), plus an RTX 3060: the new GPU test passes on both, with the direct translator on. Head
Not tested: retail geometry shaders that use |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Tested
Not tested
AI use
|
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
…ev#2446, xcl-dev#2503 Integrates direct DXIL graphics shader flags (xcl-dev#2451), PS live-lane v_readfirstlane/SCC (xcl-dev#2501), MSG_GS_DONE emit/cut (xcl-dev#2485), VS/PS scalar reload CSE (xcl-dev#2446), and per-lane V_CMP EXEC masking (xcl-dev#2503). Assisted-by: Antigravity (Gemini 4 Neon)
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
In RDNA2 geometry shaders, s_sendmsg MSG_GS_DONE (msg == 3) shares the same op (0 = nop, 1 = cut, 2 = emit, 3 = emit + cut) and stream fields as MSG_GS (msg == 2), and shader compilers fold the final vertex emit/cut into MSG_GS_DONE. Both lower_geom.rs and recomp/emit.rs previously checked only msg == 2, dropping the final vertex and its strip triangle(s). Fixes xcl-dev#2412 Assisted-by: Antigravity (Gemini 4 Hydrogen)
c256c7e to
45e7018
Compare
|
@Oliwettoo Thanks for flagging the HLSL gap. Updated |
|
Independent native AMD test report for #2485 (issue #2412) on exact head Tested
Regression run
Not tested
AI use
🤖 Generated with Claude Code |
|
Independent desktop NVIDIA verification of PR #2485 at head Environment
Targeted release tests & build (
|
| Command | Result |
|---|---|
cargo test --release -p xcl --lib msg_gs_done_emits_in_dxil -- --nocapture |
1 passed; 0 failed; 0 ignored; 1338 filtered out (0.01s) |
cargo test --release -p xcl --lib msg_gs_done_emits_and_cuts_in_hlsl -- --nocapture |
1 passed; 0 failed; 0 ignored; 1338 filtered out (0.00s) |
cargo test --release -p xcl --lib gpu_geometry_msg_gs_done_records -- --nocapture (3 consecutive runs, on-GPU RTX 4060) |
1 passed; 0 failed; 0 ignored; 1338 filtered out × 3 (0.47s, 0.39s, 0.39s) |
cargo test --release -p xcl --lib gpu::dxil:: |
187 passed; 0 failed; 3 ignored; 1149 filtered out (3.37s; dispatch_chain_native_wave64_builds_whole self-skipped on Wave32-only RTX 4060) |
cargo test --release -p xcl --lib gpu::recomp:: |
401 passed; 0 failed; 20 ignored; 918 filtered out (5.44s; Wave64-only and #1426-refused subcases self-skipped as expected) |
cargo build --release -p xcl --bin xcl |
Clean build (1m 14s, exit 0) |
Paired quiet 60 s retail smoke (title: 29640639)
Exact parent & merge-base (b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, cached baseline on the same machine):
xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1518 (PresentX 1518)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14018 MB
PR #2485 (45e7018140f8163e20814a0b7af52099f86fdccd):
xcl-smoke v1
commit: 45e7018140f8163e20814a0b7af52099f86fdccd
gpu: NVIDIA GeForce RTX 4060
title: 29640639
seconds: 60
exit: 0x0
frames shown: 1606 (PresentX 1606)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14006 MB
Runtime log observations (xcl.log)
9223log lines,0[ERROR]/ device-removal / panic lines.- Final draw/memory telemetry in log:
19558 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14005 MB committed by the process; video memory 6114 MB local, 4683 MB non-local.
Limits of coverage
MSG_GS_DONEemit/cut lowering in Direct DXIL (msg_gs_done_emits_in_dxil), HLSL (msg_gs_done_emits_and_cuts_in_hlsl), and on-GPU record generation (gpu_geometry_msg_gs_done_records, 3/3 runs on RTX 4060) passed alongside fullgpu::dxil::andgpu::recomp::.- Wave64-only GPU subcases in
gpu::dxil::andgpu::recomp::self-skipped on the Wave32-only RTX 4060. The 60 s warm-cache retail smoke confirms end-to-end stability and zero regression ontitle: 29640639rather than visual geometry-shader output comparison on a retail GS draw (frame-count delta vs. cached parent smoke reflects single-run startup variance, not this PR).
AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
|
Tested: Clean Not tested: Standalone cut or strip restart on GPU, native wave64 readback, full workspace suite and retail smoke. AI use: T3 Code / Codex ( |
Honor
s_sendmsgMSG_GS_DONE(msg == 3) emit and cut operations on stream 0 in both the Direct DXIL and HLSL geometry lowering paths, instead of only handlingMSG_GS(msg == 2). Shader compilers fold the final vertex emit/cut intoMSG_GS_DONE, which previously dropped the final emitted vertex and its strip triangle(s). Fixes #2412.What is in it
msg == 2 || msg == 3withop != 0 && stream == 0ins_sendmsg(crates/xcl/src/gpu/dxil/lower_geom.rs)msg == 2 | 3onstream == 0ins_sendmsgforMode::Geometry(crates/xcl/src/gpu/recomp/emit.rs)MSG_GS_DONEemit (0x23), cut (0x13), emit+cut (0x33), nop (0x03), and non-zero stream (0x123) (crates/xcl/src/gpu/dxil/geometry_tests.rs)Tested
cargo build --workspace(45e70181): 0 errors, 0 new warningscargo test -p xcl --lib dxil::geometry_tests -- --test-threads=4(45e70181): 7 passed, 0 failed, 0 ignoredcargo test -p xcl --lib geometry -- --test-threads=4(45e70181): 14 passed, 0 failed, 0 ignored (1 SKIPPED GPU test:gpu_geometry_wave32_prefix_count_over_a_mask: no wave64)XCL_ADAPTER=warp cargo test -p xcl --lib geometry -- --test-threads=4(45e70181): 14 passed, 0 failed, 0 ignored (6 SKIPPED GPU tests on WARP)cargo test -p xcl --lib recomp -- --test-threads=4(45e70181code): 400 passed, 1 failed (pre-existinggpu::recomp::tests::gpu_clamp_and_omod_per_instructiononv_pk_add_i16 clamp), 20 ignored (23 SKIPPED GPU lines: 20no wave64, 3refused (unsupported ...)inlower_dxil::tests)cargo test --workspace --no-fail-fast -- --test-threads=4(45e70181):xcl --lib1311 passed, 1 failed (pre-existinggpu::recomp::tests::gpu_clamp_and_omod_per_instruction), 27 ignored (25 SKIPPED GPU lines: 21no wave64, 3refused (unsupported ...)inlower_dxil::tests, 1cannot disable the driver cache); integration (xcl --test '*') 126 passed, 0 failed, 20 ignored (1 SKIPPED GPU test:no heap windows)Regression run
Not tested
no wave64GPU skips on this adapter), and retail geometry shaders usingMSG_GS_DONEemit/cut (the smoke title does not confirm hitting this path)AI use