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) #1192
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by IxMxAMAR on 2026-11-25T23:27:43Z.
Refs #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.9a9091d: victory-gpu clippy is clean; victory-shader clippy stops on 7 lints invalu_tests.rsandwave64_after_loop.rs, which this change does not touch, andmainreports the same 7 at the same lines. victory-shader 263 passed. The victory-gpu tests end in an access violation intiles::tests::card_wrote_failure_does_not_poison_card_mask, on this branch and onmainalike.xtask'srepository_passes_policyfails as it does onmain:lower.rsis 527,045 bytes onmain, over the 524,288-byte limit, and this change adds 1,477;host.rs(571,758 bytes, untouched here) is over it on both.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.Imported from fxceless/victory-fork. Originally posted by IxMxAMAR on 2026-11-26T01:49:29Z.
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.