Recheck the texture budget before each indexed copy #605

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

@⁠DoubleD17 on GitHub · 2026-11-25 03:04 UTC · original
DoubleD17:fix/indexed-texture-budget-per-copy → main · +205 −2 · 3 files · 1 commits · closed without merging

The indexed texture pass reused one admission decision across several new copies. If the first copy reached the limit, the same pass could still create a second one. Check the current budget for each new copy. Keep pending work queued when creation is deferred, and allow uploads to existing copies when the limit is full. The diagnostic counts passes that deferred at least one new copy.

A synthetic D3D12 WARP regression on Windows 11 used a 10 MiB manual limit. Base c96b4f2b83 reached 12 MiB. Candidate d3d9d3631c69f09c58d25bc84b60d180a6d73558 stayed at 10 MiB and kept the second slot due with the same generation. The next pass created that copy after the first was released, without rewriting the descriptor. Uploads for an existing copy and a second view recorded 2 MiB each without creating another placed resource. The fixture covers creation, reuse, and upload command recording. Submission, GPU pixel output, automatic DXGI budgeting, and prologue effects remain unverified.

AI-assisted.

**@⁠DoubleD17** on GitHub · 2026-11-25 03:04 UTC · [original](https://github.com/fxceless/victory-fork/pull/605) `DoubleD17:fix/indexed-texture-budget-per-copy` → `main` · +205 −2 · 3 files · 1 commits · closed without merging The indexed texture pass reused one admission decision across several new copies. If the first copy reached the limit, the same pass could still create a second one. Check the current budget for each new copy. Keep pending work queued when creation is deferred, and allow uploads to existing copies when the limit is full. The diagnostic counts passes that deferred at least one new copy. A synthetic D3D12 WARP regression on Windows 11 used a 10 MiB manual limit. Base c96b4f2b8365bf43d54ab074940923ef8267f4c6 reached 12 MiB. Candidate d3d9d3631c69f09c58d25bc84b60d180a6d73558 stayed at 10 MiB and kept the second slot due with the same generation. The next pass created that copy after the first was released, without rewriting the descriptor. Uploads for an existing copy and a second view recorded 2 MiB each without creating another placed resource. The fixture covers creation, reuse, and upload command recording. Submission, GPU pixel output, automatic DXGI budgeting, and prologue effects remain unverified. AI-assisted.
Use the current budget at the admission gate after earlier slots may have created copies. Retain the existing reupload policy for descriptors already mirrored.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:47:16 +00:00
github-bot closed this pull request 2026-11-26 11:20:15 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.