Direct DXIL: s_sendmsg MSG_GS_DONE (msg == 3) silently drops emit/cut ops #2402
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from ivall/xcl. Originally posted by ahmetbagci8 on 2026-11-25T18:07:27Z.
Summary
In
crates/xcl/src/gpu/dxil/lower_geom.rs(s_sendmsg, lines 44-52):In RDNA2,
s_sendmsgsupports bothMSG_GS(msg == 2) andMSG_GS_DONE(msg == 3) with the sameop(SIMM16[5:4]: 0 = NOP, 1 = CUT, 2 = EMIT, 3 = EMIT_CUT) andstream(SIMM16[9:8]) fields. Compilers routinely fold the final vertex emit/cut intoMSG_GS_DONE(msg == 3, op == 2 | 3). Because line 48 only checksmsg == 2, anyMSG_GS_DONEcarrying an emit or cut op is silently ignored, dropping the final emitted vertex and its strip triangle(s).Suggested fix
Not tested
082944135cd2b96288470a595861fa608eee08dcwithout a new runtime test.AI use
lower_geom.rsand drafted this report; the author reviewed it before posting.Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-26T07:59:47Z.
Claiming independent Native Windows RX 7800 XT verification for PR #2485 at
45e70181, focused on synthetic geometry emit/cut in both Direct DXIL and HLSL with an exact-parent control.AI use: Codex (gpt-6.2-sol) for coordination and Claude Code (Claude Sonnet 5.5) for planned verification.