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 |
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