startup: texture uploads report success when staging fails, and video-sized textures share one upload ring #2855
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#2855
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:29 UTC · original
Part of #870
Related: #2837, #2849 (upload ring recycling).
Problem 1: false success.
upload_texture(src/startup_stubs/d3d12_draw.inl) returnstruewithstate.done = falseat five exits when the upload ring cannot stage a level. The caller treatstrueas "uploaded", so a draw samples, or a copy reads, a desktop texture that holds none or only some of its levels, and nothing retries it until the title memory changes.Problem 2: large CPU textures use the shared ring. A linear title texture of 1 MiB or more (for example the planes of a 1920x1080 video frame, about 12 MiB per frame) is copied through the same transient upload ring as everything else. A burst of such uploads can exhaust or retire the ring while other uploads are in flight.
Expected.
upload_texturereturnfalse. A draw then binds no texture, a copy from the title texture is refused (title_backed_source, andsource_not_uploadedfor CopyTextureRegion), and the next bind retries every level.Tests.
startup_slot133_heap_cap_checkgains avideovariant (40 textures of 1920x1080 RGBA8, both corners read back) and astagefailvariant (three-level texture, forced staging failure, then retry; lazy textures off and on). Fixture-only switch:X2W_TEST_UPLOAD_STAGING_FAIL=<n>.Out of scope. Ring recycling itself (#2849).
@tedin7 on GitHub · 2026-11-26 14:29 UTC · original
Claiming this; a Draft PR follows after a confirming run.