GPU: place shared bindless buffer refreshes in submission order #3931

Closed
github-bot wants to merge 1 commit from github-bot/gh-3931 into main AGit
Owner

@⁠Yoruiopz on GitHub · 2026-11-30 12:03 UTC · original
Yoruiopz:ordered-bindless-refresh-05 → main · +293 −32 · 4 files · 1 commits · closed without merging

What it changes

The existing once-per-frame ASIDE gate attaches the buffer refresh to whichever list records first. THIN lists can record in a different order from execution. A list that submits before the recorded owner can therefore use the heap before that frame's refresh has been placed on the queue. The porch trace in #2185 includes seven such submissions.

With VICTORY_HEAP_PASS_ORDERED=1, a host heap shares its existing ASIDE pass across recordings in that frame. Each consumer records its first-use position. After the pass is ready, the first submitted recording that carries the marker consumes it and inserts the refreshes at that position before hazard planning. The readiness wait stays outside the host submission lock. The texture sweep stays with its existing recording owner. This is opt-in and requires ASIDE.

How it was tested

  • Exact .05 base 41adb551 on Windows. Four focused CPU tests passed, covering reversed recording/submission order, a canceled preparer, reset and reuse, and visibility to the existing alternate-shadow planner. Staged asset policy passed.
  • One same-binary Series S porch pair on an RTX 5070 Laptop GPU. ASIDE on in both, DLSS Ultra Performance to 1080p, frame generation off. Only VICTORY_HEAP_PASS_ORDERED changed.
  • Each arm rendered 624 frames in 28 seconds. Rendered FPS was 22.26 with stock ordering and 22.24 with submission-order claims. Frame time p95 was 63.34 and 64.03 ms. Typical reported heap-pass wait was 5.7 and 7.0 ms.
  • The black forearm reproduced in both arms. #2185 continues to track the visual failure.

Checked for overlap

**@⁠Yoruiopz** on GitHub · 2026-11-30 12:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3931) `Yoruiopz:ordered-bindless-refresh-05` → `main` · +293 −32 · 4 files · 1 commits · closed without merging ## What it changes The existing once-per-frame ASIDE gate attaches the buffer refresh to whichever list records first. THIN lists can record in a different order from execution. A list that submits before the recorded owner can therefore use the heap before that frame's refresh has been placed on the queue. The porch trace in #2185 includes seven such submissions. With VICTORY_HEAP_PASS_ORDERED=1, a host heap shares its existing ASIDE pass across recordings in that frame. Each consumer records its first-use position. After the pass is ready, the first submitted recording that carries the marker consumes it and inserts the refreshes at that position before hazard planning. The readiness wait stays outside the host submission lock. The texture sweep stays with its existing recording owner. This is opt-in and requires ASIDE. ## How it was tested - Exact .05 base 41adb551 on Windows. Four focused CPU tests passed, covering reversed recording/submission order, a canceled preparer, reset and reuse, and visibility to the existing alternate-shadow planner. Staged asset policy passed. - One same-binary Series S porch pair on an RTX 5070 Laptop GPU. ASIDE on in both, DLSS Ultra Performance to 1080p, frame generation off. Only VICTORY_HEAP_PASS_ORDERED changed. - Each arm rendered 624 frames in 28 seconds. Rendered FPS was 22.26 with stock ordering and 22.24 with submission-order claims. Frame time p95 was 63.34 and 64.03 ms. Typical reported heap-pass wait was 5.7 and 7.0 ms. - The black forearm reproduced in both arms. #2185 continues to track the visual failure. ## Checked for overlap - [x] Reviewed #3486, #3809, #3881, #2433, #3103 and #2587. #3486 also changes descriptor preparation and ASIDE scheduling, so the two branches need reconciliation if combined.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 12:07:52 +00:00
github-bot closed this pull request 2026-12-01 18:50:59 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:47 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3931#issuecomment-7321561679) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

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/trustno1-coder--VIctory-NVIDIA!3931
No description provided.