GPU: skip texture liveness scans while the heap is busy #256

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

@⁠loyodea on GitHub · 2026-11-26 13:14 UTC · original
loyodea:victory-recording-stall → main · +22 −11 · 1 files · 1 commits · open

Related to #20. During command recording, check whether the bindless heap is busy before building the placed-texture liveness snapshot. Release the short probe before inspecting placed textures to preserve lock order. When an eviction is processed, retain recorded slots and queue stale slots in one pass.

Tested

  • An instrumented Windows D3D12 probe on the Radeon RX 9060 XT used 64 synthetic textures, 4,096 recorded slots, and 2,048 recording calls with the heap locked. Abandoned liveness snapshots dropped from 2,048 to zero. The successful retry made 4,096 slot-membership probes versus 8,192 before. Both revisions removed the same 64 stale slots and retained 4,032.
  • The 12 descriptor-host tests passed. The serial victory-gpu suite reported 112 passed, one failed, and four ignored. Clean upstream 4f62c2a failed the same write-watch assertion.

An uncontended eviction pass makes an additional nonblocking mutex probe. The changed file passed the asset-policy check, and the whole-tree check reported the existing oversized shader source. The probe used synthetic textures. Retail frame time and FPS remain unverified. Codex contributed the implementation and verification.

**@⁠loyodea** on GitHub · 2026-11-26 13:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/256) `loyodea:victory-recording-stall` → `main` · +22 −11 · 1 files · 1 commits · open Related to #20. During command recording, check whether the bindless heap is busy before building the placed-texture liveness snapshot. Release the short probe before inspecting placed textures to preserve lock order. When an eviction is processed, retain recorded slots and queue stale slots in one pass. **Tested** - An instrumented Windows D3D12 probe on the Radeon RX 9060 XT used 64 synthetic textures, 4,096 recorded slots, and 2,048 recording calls with the heap locked. Abandoned liveness snapshots dropped from 2,048 to zero. The successful retry made 4,096 slot-membership probes versus 8,192 before. Both revisions removed the same 64 stale slots and retained 4,032. - The 12 descriptor-host tests passed. The serial victory-gpu suite reported 112 passed, one failed, and four ignored. Clean upstream 4f62c2a failed the same write-watch assertion. An uncontended eviction pass makes an additional nonblocking mutex probe. The changed file passed the asset-policy check, and the whole-tree check reported the existing oversized shader source. The probe used synthetic textures. Retail frame time and FPS remain unverified. Codex contributed the implementation and verification.
Check the bindless heap before taking the global texture snapshot and avoid a second membership probe when dropping stale entries. Related to #20.

Co-authored-by: Codex <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 13:14:45 +00:00
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/256/head:github-bot/gh-256'
git switch 'github-bot/gh-256'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-256'
git switch 'github-bot/gh-256'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-256'
git switch 'github-bot/gh-256'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-256'
git switch 'main'
git merge --squash 'github-bot/gh-256'
git switch 'main'
git merge --ff-only 'github-bot/gh-256'
git switch 'main'
git merge 'github-bot/gh-256'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.