Skip to content

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

Draft
Yoruiopz wants to merge 1 commit into
trustno1-coder:mainfrom
Yoruiopz:ordered-bindless-refresh-05
Draft

Yoruiopz wants to merge 1 commit into
trustno1-coder:mainfrom
Yoruiopz:ordered-bindless-refresh-05

Conversation

@Yoruiopz

Copy link
Copy Markdown

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 41adb55 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. [v2026.11.29.01] Regression: frequent 1-frame stretched/broken polygons isolated to VICTORY_LATE_WAIT >= 2 (RTX 4090) #2185 continues to track the visual failure.

Checked for overlap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull request: fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants