Direct DXIL: s_sendmsg MSG_GS_DONE (msg == 3) silently drops emit/cut ops #2412
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#2412
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?
@ahmetbagci8 on GitHub · 2026-11-25 18:07 UTC · original
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.github-bot referenced this issue2026-11-26 05:32:05 +00:00
@oni-swr on GitHub · 2026-11-26 07:59 UTC · original
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.