GPU: collect deferred texture uploads in one pass #3581
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3581
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3581"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:59 UTC · original
andrewpozdnakov7-jpg:codex2/single-upload-scan→main· +14 −28 · 1 files · 1 commits · openCollect heap-indexed and table texture uploads in the same loop over each submitted command list's deferred records. The two queues preserve their respective order and the copy list still runs before the submitted lists.
I checked the collector with two submitted lists, each containing a heap entry and a table texture copy. The control acquired four deferred-list guards and this change acquired two, collecting two heap entries and two table copies in both cases. Both distinct texture readbacks matched on Windows WARP with Agility SDK 1.620.2.
The AMD report in #3570 prompted this check. The counts above come from the isolated test.
The diagnostics GPU suite passed on Windows WARP (246 project tests plus the SDK identity check, 1 ignored). Strict GPU Clippy passed with default features and all features. The asset policy check passed.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 19:02 UTC · original
Windows CI passed on
704e3214c93916efa9e85982d328cd8cdd471ada, including Clippy with and without diagnostics and the test job. Windows CIThe isolated WARP check acquired four deferred-list guards on the parent and two on this commit. Each run collected two heap entries and two table texture copies, and both table-texture readbacks matched. The full local diagnostics GPU suite passed 246 project tests plus the SDK identity check, with one ignored. The next step is maintainer review.
If you cherry-pick or rebase this commit, please retain its Git author. If you fold it into another commit, please include
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@pickles976 on GitHub · 2026-11-27 20:24 UTC · original
Verified production head
704e3214c93916efa9e85982d328cd8cdd471adaon Linux 6.17 / Wine 11 / physical RTX 4060 Laptop 8 GiB, NVIDIA 590.48.1, 16 GiB host RAM. Diagnostic-relaxed vkd3d-proton2576c0b4adfae4a+, not stock certification; NVIDIA vendor masking disabled.I strengthened only
host::tests::heap_textures_brought_up_together_each_get_their_upload: two actual HostLists submitted together, each containing two heap-indexed textures and one table/deferred texture. Six different full-page 128x128 RGBA8 patterns are copied back by the GPU and every byte checked. Re-submission retains the unchanged/no-second-upload assertion. Host creation, physical NVIDIA identity and readback allocation cannot silently skip.1/1 passed, 0 ignored, 0.67 s after fresh intended-worktree compilation 8.20 s. This exercises the single-pass collection through
Host::execute, rather than only callingbindless::uploadsand inspecting counters. Production unchanged; local test strengthening retained. Evidence:verify-pr3581-multilist-upload-readback-20261127T202248Z/{console.log,result.json}. Sampled GPU peak 222 MiB, available-RAM minimum 11026 MiB, disk minimum 12.052 GiB; original 9 GiB/512 MiB scope and resource guards retained.No local matched-parent, allocation benchmark, title-frame-time or loading-stutter claim. Your lock-count comparison remains separate. Suggested retained consumer coverage: both deferred kinds across multiple lists, distinct full texture bytes, plus no reupload when unchanged. No assets or imagery attached.
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.