startup: indirect draws refused with "index view has no proven desktop buffer range" (small index views) #3901
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#3901
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?
@SimSalabimse on GitHub · 2026-12-02 23:22 UTC · original
Summary
Indirect draws whose index view points at memory the native path does not track are refused with "index view has no proven desktop buffer range". The views are small (16-bit index ranges), so a snapshot of the range into the upload ring, as the direct draw path does, may be enough.
What was measured
One native-path run of about 410 s on the Windows test PC (Simsalabim), from the indirect-other refusal census:
Idea (not tested)
In the indirect path of
src/startup_stubs/d3d12_xs_device.cpp, where the view is refused, copy the small index range into the upload ring the way the direct path does and build the view on that copy. Whether that is safe for every refused view (size limits, ranges that change between frames) has not been checked.Related
AI-Assisted
@triggered02 on GitHub · 2026-12-03 13:25 UTC · original
Claiming this, with the slice scoped so the safety questions the idea raises get answered in the change rather than assumed away.
What I will do. In the indirect path, when the index view points at memory the native path does not track, snapshot the range into the upload ring the way the direct draw path does, and build the view on that copy — but only for views that fit a size limit, and with the copy taken at submission time so a range that changes between frames is captured per draw rather than aliased.
The three safety questions, and how I intend to answer each:
Verification I can do here: build the shim with clang-cl, run the indirect-draw fixtures under Wine (they run here), and add a fixture case whose index view lives in memory the native path does not track — refused today, drawn through the snapshot after. What I cannot do is measure the effect on the title's 70k refused calls or frame time; that needs the Windows test PC, and the PR will say so.
Overlap: no comments, no assignee, no draft PR (the issue says so). #3479 is the diagnostics thread, not an implementation.
AI-assisted.