GPU: collect deferred texture uploads in one pass #3581

Open
github-bot wants to merge 1 commit from github-bot/gh-3581 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 18:59 UTC · original
andrewpozdnakov7-jpg:codex2/single-upload-scan → main · +14 −28 · 1 files · 1 commits · open

Collect 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 18:59 UTC · [original](https://github.com/Marvisak/VIctory/pull/3581) `andrewpozdnakov7-jpg:codex2/single-upload-scan` → `main` · +14 −28 · 1 files · 1 commits · open Collect 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:01:08 +00:00
Author
Owner

@⁠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 CI

The 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]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 19:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/3581#issuecomment-7226120514) Windows CI passed on `704e3214c93916efa9e85982d328cd8cdd471ada`, including Clippy with and without diagnostics and the test job. [Windows CI](https://github.com/Marvisak/VIctory/actions/runs/46053451774/job/140690192591) The 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]>`.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-27 20:24 UTC · original

Verified production head 704e3214c93916efa9e85982d328cd8cdd471ada on Linux 6.17 / Wine 11 / physical RTX 4060 Laptop 8 GiB, NVIDIA 590.48.1, 16 GiB host RAM. Diagnostic-relaxed vkd3d-proton 2576c0b4adfae4a+, 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 calling bindless::uploads and 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.

**@⁠pickles976** on GitHub · 2026-11-27 20:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/3581#issuecomment-7227468884) Verified production head `704e3214c93916efa9e85982d328cd8cdd471ada` on Linux 6.17 / Wine 11 / physical RTX 4060 Laptop 8 GiB, NVIDIA 590.48.1, 16 GiB host RAM. Diagnostic-relaxed vkd3d-proton `2576c0b4adfae4a+`, **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 calling `bindless::uploads` and 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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3581/head:github-bot/gh-3581'
git switch 'github-bot/gh-3581'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3581'
git switch 'github-bot/gh-3581'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3581'
git switch 'github-bot/gh-3581'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3581'
git switch 'main'
git merge --squash 'github-bot/gh-3581'
git switch 'main'
git merge --ff-only 'github-bot/gh-3581'
git switch 'main'
git merge 'github-bot/gh-3581'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3581
No description provided.