translated draws: a failed upload-ring copy of a readable buffer binds null silently; count it (ring_full) and report ring statistics #2863
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#2863
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?
@tedin7 on GitHub · 2026-11-26 14:42 UTC · original
Part of #870
Problem
In
draw_translated(src/startup_stubs/d3d12_draw.inl) a buffer binding whose guest memory is readable but whose frame copy finds no upload-ring space is bound as a null view. The shader then reads zeros as if the title had bound nothing, and the draw goes on with wrong data. The counters cannot tell this from a descriptor the title really left empty: thenull bindingscause split (entry, buffer, token, wrapper, dimension) files it underbuffer.reserve_upload_ringalso gives no view of how full the ring is: a refusal is logged only for the first eight calls, so the point where the ring starts to fail cannot be read from the log.Expected
ring_full.Proposed change
NullCause::ring_full(sixth slot, printedring_full Nat the end of the null-bindings group of thex2w-render totalsline) insrc/startup_stubs/null_binding_cause.h;BindingFacts::ring_failed.ring_fullwhen the range was readable and the copy failed. Unreadable or empty descriptors stay null as before.x2w-render upload ring: reserved N MiB in N reservations, refusals N, capacity N MiBevery 300 frames.startup_null_cause_labels_checkcovers the sixth cause (its--mutate buffer-tokencontrol stays).Real-hardware testing: @Makto94 - thanks for the help.
@tedin7 on GitHub · 2026-11-26 14:42 UTC · original
Claiming this; a Draft PR follows shortly.