Shaders: SP3 text gives a message only the fields it has #283
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/283"
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 Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:02:12Z.
gfx10/sp3.rswrote everys_sendmsgoperand as if it were a GS message, with a GS operation and a stream. So the mesh/NGG stage's allocation request appeared in shader dumps assendmsg(MSG_GS_ALLOC_REQ, GS_OP_NOP, 0), and only four of the GFX10 message ids had names (MSG_GS, MSG_GS_DONE, MSG_ORDERED_PS_DONE, MSG_GS_ALLOC_REQ).Messages are now spelled the way LLVM's AMDGPU assembler spells them:
MSG_GS,MSG_GS_DONEandMSG_SYSMSG(SYSMSG_OP_*).Before → after:
0x0009sendmsg(MSG_GS_ALLOC_REQ, GS_OP_NOP, 0)sendmsg(MSG_GS_ALLOC_REQ)0x0008sendmsg(8, GS_OP_NOP, 0)sendmsg(MSG_EARLY_PRIM_DEALLOC)0x002Fsendmsg(15, GS_OP_EMIT, 0)sendmsg(MSG_SYSMSG, SYSMSG_OP_REG_RD)0x0122sendmsg(MSG_GS, GS_OP_EMIT, 1)0x0019sendmsg(MSG_GS_ALLOC_REQ, GS_OP_CUT, 0)0x0019Only shader dumps use this text (
victoryshader listing viaInstruction::text). Translation matches on the opcode and reads the raw immediate, so its behaviour does not change.The new test
sendmsg_names_only_the_fields_a_message_hasdecodes synthetics_sendmsgwords and needs no game data.Testing on Linux:
cargo test -p victory-shader: 57 passed.cargo clippy -p victory-shader --all-targets: no new warnings. The only warning is the existing unusedconstant_colorinemit/mod.rs, which is onmaintoo.cargo fmt --check -p victory-shader: clean.cargo xtask policy: ok.Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T02:29:33Z.
superseded by #326 (combined shader DX/parser robustness)
Pull request closed