GPU: any user-data dword numbered 4 is taken for a root view offset, and the dispatch is dropped #2699
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#2699
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?
@Machad3x on GitHub · 2026-11-25 18:26 UTC · original
In
crates/victory-gpu/src/draw.rs(main13f91ca) the user-data loop hasNone if u.dword == victory_shader::emit::ROOT_VIEW_OFFSETwithout looking atu.root. Root constants with five or more dwords have a real dword 4, so it islooked up as a root view, none is found, and the draw or dispatch is refused.
Introduced with
d71c388.Seen on an RTX 3080 Ti: the ray-tracing builder's dispatches were refused, about
240 a frame and up to 2,171 while the world loaded, with no log line. After
requiring
u.root == RootType::Descriptorin that arm, dropped draws anddispatches went from about 250 to 18 a frame.
Written with Claude Code; tested locally.
github-bot referenced this issue2026-11-26 05:12:22 +00:00
@Creaa on GitHub · 2026-11-25 18:28 UTC · original
Taking this: the root-view-offset arm in
draw.rsalso requiresu.root == RootType::Descriptor(anis_root_view_offsethelper as you suggest), so dword 4 of root constants of five or more dwords is no longer looked up as a root view; with a unit test of the helper.AI use: Claude Code (Claude Opus 5.5) drafted this.
@Calvix2k on GitHub · 2026-11-25 18:35 UTC · original
#2703 implements this (the
is_root_view_offsethelper withu.root == RootType::Descriptor, plus the predicate test) and is green. @Creaa claimed this 11 s before I opened it — if you are already on it, say so and I will close #2703; otherwise it is ready for review, and the patch is small enough to reuse either way.@Marvisak on GitHub · 2026-11-25 18:49 UTC · original
Automated triage for the maintainers.
Confirmed in main (
13f91ca): in the user-data loop ofcrates/victory-gpu/src/draw.rs(the root-constants setup beforeSetComputeRoot32BitConstants/SetGraphicsRoot32BitConstants), the armNone if u.dword == victory_shader::emit::ROOT_VIEW_OFFSETdoes not checku.root, unlikeis_root_view, which requiresRootType::Descriptor. A root constant's or table's dword 4 is therefore looked up as a root view offset, and when none is found the draw or dispatch is refused throughnot_run.Open PR #2703 (by @Calvix2k) adds the
RootType::Descriptorcheck through a helper, with a test. @Creaa also said they would take this; one PR is enough.Generated by Claude Code