shader: take an address in an undeclared SGPR pair as title memory #69
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!69
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-69"
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?
@AnastasisKon on GitHub · 2026-11-26 13:05 UTC · original
AnastasisKon:vibe/sgpr-address-title-memory-63fece→main· +106 −35 · 6 files · 3 commits · merged 2026-11-26 17:08 UTCPart of #4: the vertex shaders' "an address in an SGPR that is no root parameter" refusal. A load or store whose address base is a live-in SGPR pair no root parameter fills now tracks as a title-memory address (MEMORY), like an address loaded from memory, and lowers through the memory-space page table (guessed: the console's user data carries raw addresses; marked in docs/native-host.md).
The layout-rebasing inference compared track results for the old and new layouts by matching that refusal string; it now matches the old side's MEMORY address instead.
Tests: resource::track now reports the site as MEMORY; the refusal tests assert what still refuses downstream (reading the undeclared SGPR itself is "a hardware SGPR input", a descriptor built around the address is still refused). 220 victory-shader tests pass.
What this changes
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victorycargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warningsChecklist
VICTORY_*variable and documented@LakshanSivakumar on GitHub · 2026-11-26 13:26 UTC · original · requested changes
Thanks for looking into this. Two blocking issues before this can land:
lower.rs: Turning"an address in an SGPR that is no root parameter"intoAddress { param: MEMORY, .. }inresource::trackdoes not allow those shaders to lower, becauselower.rsstill has to read the base SGPR pair itself and fails atVal::Missing("a hardware SGPR input")(as seen in the updatedgfx_refusal_tests.rsassertions, andgraphics.rs::testsstopping atresource::trackinstead oflower). It also replaces a specific diagnostic ("an address in an SGPR that is no root parameter") with a less actionable one ("a hardware SGPR input"or"a buffer descriptor built around a computed address"). Eithergraphics.rsneeds to infer the missing root parameter/user-data layout when one exists, orio/lowerneeds a sound way to supply the SGPR input.How it was testedandChecklistboxes in the PR description once updated.@LakshanSivakumar on GitHub · 2026-11-26 14:54 UTC · original · requested changes
Inference now lets these shaders lower, thanks. Please fill in the testing and checklist boxes in the description; after that (and a rebase of the docs line over #93) this can go in.
b662e444edto5a99727688@LakshanSivakumar on GitHub · 2026-11-26 16:03 UTC · original · requested changes
The shader change is fine. Still open: the description's testing and checklist boxes are unfilled (the template is still there). Fill those in, and rebase the docs line over #93. Then this can go in.
@LakshanSivakumar on GitHub · 2026-11-26 17:08 UTC · original
Merged in
8c47ddd. The only conflict wasdocs/ROADMAP.md, which I resolved on our side. Thanks!