Shaders: SP3 text gives a message only the fields it has #283
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!283
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/283/head"
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?
@SkippySteve on GitHub · 2026-11-24 02:02 UTC · original
SkippySteve/victory-pr-own-next14→main· +69 −12 · 1 files · 1 commits · closed without merginggfx10/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.@SkippySteve on GitHub · 2026-11-24 02:29 UTC · original
superseded by #326 (combined shader DX/parser robustness)
Pull request closed