Shaders, GPU: a buffer picked from the view heap where the slot holds no buffer view reads a null view of its class (the _Prev meshlet-cull page faults) #1195
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1195
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1195"
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?
@IxMxAMAR on GitHub · 2026-11-25 23:27 UTC · original
IxMxAMAR:gpu/descriptor-type-safety→main· +758 −31 · 7 files · 3 commits · openRefs #3: the device removals in
CS_BatchCullMeshlets_Prev(fc5e66f8f873d3bb) andCS_BatchCullPreSkinnedMeshlets_Prev(0452fc2d2e2fc4c3) when work is sent ahead.Cause
t255 space1) said 0 for anything that was not a buffer view, a texture's slot included, and the scalar path reads 0 as a constant buffer._Prevfault addresses decode that way (table in #3).Change
SLOT_STRIDES_SKIP(all bits set) for anything else.note_bufferwrites SKIP, andmirrorwrites the real entry only once the slot holds its view, behind a fence.Tests
heap_tests: GFX10 programs lowered, validated, and run on the hardware GPU and on WARP.58de9bf: both clippy passes are clean; victory-gpu 222 passed; victory-shader 232 passed and 1 failed,valu_tests::legacy_mad_fuses_its_product_and_flushes_its_sources(hardware case 0 gives 0 on this card), which fails the same way onmain.xtask'srepository_passes_policyfails here as it does onmain's own CI:lower.rswas already 526,968 bytes at58de9bf, over the 524,288-byte limit, and this change adds 1,477.In game (RX 9070 XT, both
_Prevculls bound, relay on)amdxc64.dll+0x861b9f) on computef16876929fa64f9f(bvh_skinning:CSComputeSkinningTreeAnimVelocity). That crash is unrelated to this change:victory translate --pipelinesreproduces it onmainwithout this change, with anyVICTORY_SHADER_OPT.Relation to #1095
guard + heap_guard(kind)instead.@IxMxAMAR on GitHub · 2026-11-26 01:49 UTC · original
In game since this opened, on an RX 9070 XT (driver 32.0.32029.2010), relay on, both
_Prevculls running, only42683eebec081520skipped:3973179with five other open PRs): both culls ran 17 min with no device removal. The run then ended in AMD's compiler onf16876929fa64f9f, which #1213 fixes.f180b26+dd7a703on32b31f7, with #1213): culls 14 min, closed normally.Before this, every run here that sent work ahead with both culls running lost the device within about 10 minutes, as did all 15 of GamingRipperDoc's on #3.
1208282came after those runs: a buffer's own view (made without a description) now keeps the table's entry 0, element size unknown, instead of SKIP, which made heap picks of it read zeros. Not run in game yet.#1216 (@GamingRipperDoc) fixes the same
_Prevread the other way round: constant buffer slots are marked, and any other non-buffer slot reads zeros. Two differences:Either landing is fine with me: I can rebase this onto #1216's marking, or close it and send those two parts as a follow-up to #1216.
12082820edto7d30344bccView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.