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/gamingwithhomie--larp!455
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-455"
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?
@ZerefDragnee1l on GitHub · 2026-12-06 01:05 UTC · original
ZerefDragnee1l:fix/amd-rdna2-world-load-page-faults→main· +431 −288 · 5 files · 1 commits · openAddresses GPU-side page-fault (
0x887A0005/0x887A0006) vectors reported on AMD RDNA2/RDNA3 GPUs at world load (#288, #280, #234, #111), with 0% shader cache invalidation (all shader-translator fixes are separated into a companion PR).(Companion PR #447 also fixes
COPY-queuelist7.BarrierEnhanced Barrier access flags.)Changes
draw.rs):crate::shadow::zeros()viaroot_at(..., Arg::Cbv, ...)(or drop the draw/dispatch if unavailable) instead of leaving root descriptor SGPRs uninitialized.SLOT_MEMORY,SLOT_TABLES,SLOT_STRIDES, orSLOT_SHIFTSisNone.draw.rs):SizeInBytes(andrefreshlength) tou64::from(v.size).min(shadow.left(v.address)), preventing IA fetches past smaller shadow windows.raw_at/raw_uav_atand non-byte-view SRV 4 GiB limits (descriptor/host.rs,byteviews.rs):NumElementsinraw_atandraw_uav_attobuffer.GetDesc().Width.saturating_sub(offset) / 4(and0xFFFF_FFC0when!byteviews::supported(&host.device)forraw_at), falling back to a null raw view if 0.0xFFFF_FFC0) by-element SRV limit inbuffer_view_okwhenunordered == falseand byte-offset views are unsupported (matchingbyteviews.rs).rt.rs):TRIANGLESvertex()withif (vertices == 0u) return float3(0.0, 0.0, 0.0);sovertices - 1unever underflows to0xFFFFFFFFduring BLAS copy dispatches while still writing geometry header dwords.Bottom) -> TLAS (Top) builds and whenever two BLAS builds share a non-zero scratch VA in the same batch.from.leaseon the command list incopied(), retiresgonestructures inended(), and reusesRecordScratchtemporary buffers cleanly via RAII drop guard.CARD_COMPARE_WIDEdispatch count (host.rs):groups = pieces.clamp(1, 65535)as a 7th root constant and loops inCARD_COMPARE_WIDE(matchingCARD_FETCH) instead of dispatchingpiecesdirectly past D3D12's 65,535 limit.Verification
cargo check -p larpon this branch (exited0, 0 errors, 0 warnings in modified files).Scope note regarding issue #379
view heap base + 0xF0000000(slot0x07800000) GPU page fault during world-loadDispatchMeshIndirectMultithat persisted onv1.1.6-amd.raw_at/raw_uav_at/buffer_view_okincluding the0xFFFF_FFC0cap whenbyteviews::supported == false, VB/IBSizeInBytes, root CBV/SRV/UAV addresses), RT scratch barriers, andcardhash>65,535-group dispatches. None of those bounds modify root descriptor-table handles orDispatchMeshIndirectMultiindirect descriptor fetches that could synthesize a descriptor heap VA0xEE17B800past the heap's end.@vanya890 on GitHub · 2026-12-06 01:21 UTC · original
One report worth checking against this change is issue #379: RX 6900 XT RDNA2 faults at exactly
view heap base + 0xF0000000during world-loadDispatchMeshIndirectMulti, with earlier runs also showing out-of-range view-heap slots. Your raw-view and wide-dispatch bounds are relevant, but the issue author says the same failure persisted in a newer v1.1.6-amd test.Could you map the reported VA/slot to one of the bounds this PR changes, or explain why it is outside this patch's coverage? That would help avoid implying this PR fixes #379 solely because both reports involve AMD page faults.
@ZerefDragnee1l on GitHub · 2026-12-06 01:37 UTC · original
Good catch raising #379 — I want to be explicit that issue #379 is outside PR #455's coverage, and this PR does not claim to fix #379:
What PR #455 actually bounds:
HostHeap::raw_at/raw_uav_atandbuffer_view_ok(clampingNumElementsto backingWidth, plus0xFFFF_FFC0max width whenbyteviews::supported == falseon RDNA 2), VB/IB descriptorSizeInBytesindraw.rs, and root CBV/SRV/UAV byte bounds + RT scratch barriers inhost.rs/rt.rs.cardhashdispatches: splits >65,535-groupDispatchcalls inhost.rs.Why #379's fault is outside this patch:
view heap base + 0xF0000000(0xEE17B800/ slot0x07800000past the view heap's end) withDispatchMeshIndirectMultimarkers in progress, and persisted onv1.1.6-amd.SetGraphicsRootDescriptorTable/ heap base + offset) or rewriteDispatchMeshIndirectMultiindirect arguments/fetches (moreover, translated shaderheap_handlealready clamps toVIEW_LIMIT, so a slot-0x07800000 view-heap VA points toward an unbound/stale descriptor table handle, indirect command payload, or driver/hardware fetch path that this PR does not touch)."a host command list did not reset"not appendingremoval_datainfail()), which is worth addressing in its own focused change.PR description updated accordingly so #379 is not conflated with this PR.
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.