Skip whole shadows for exact buffer views #949

Closed
github-bot wants to merge 1 commit from gh-pr/949/head into gh-pr/949/base
Owner

@⁠Kamiloj9 on GitHub · 2026-11-25 13:31 UTC · original
Kamiloj9:codex/exact-buffer-shadows → main · +138 −72 · 2 files · 1 commits · closed without merging

Summary

  • Choose an existing exact byte-range backing before allocating the whole backing when the descriptor's element alignment already requires the exact copy.
  • Use the same selection for host SRV and UAV creation and for refreshing or copying back the view. Ordinary lookups keep their existing selection rules. In-place mode still resolves the actual backing first because its GPU offset can include an extra bias.

Verification

  • A WARP regression creates placed SRV and UAV views requiring an exact 128-byte range. Both host descriptor creation and refresh select the same D3D12 resource, without allocating an unused 4 MiB window. The unchanged code failed the last assertion.
  • On the PR branch, 21 descriptor tests and five shadow-window tests passed, along with workspace all-features and default binary checks and the staged asset policy.
  • A guarded run on the local integration branch stopped at the memory floor before the world-frame marker. Its memory timeline recorded zero exact-copy lookups in that window. This change addresses the allocation in the regression and in workloads that reach that path.
**@⁠Kamiloj9** on GitHub · 2026-11-25 13:31 UTC · [original](https://github.com/fxceless/victory-fork/pull/949) `Kamiloj9:codex/exact-buffer-shadows` → `main` · +138 −72 · 2 files · 1 commits · closed without merging ## Summary - Choose an existing exact byte-range backing before allocating the whole backing when the descriptor's element alignment already requires the exact copy. - Use the same selection for host SRV and UAV creation and for refreshing or copying back the view. Ordinary lookups keep their existing selection rules. In-place mode still resolves the actual backing first because its GPU offset can include an extra bias. ## Verification - A WARP regression creates placed SRV and UAV views requiring an exact 128-byte range. Both host descriptor creation and refresh select the same D3D12 resource, without allocating an unused 4 MiB window. The unchanged code failed the last assertion. - On the PR branch, 21 descriptor tests and five shadow-window tests passed, along with workspace all-features and default binary checks and the staged asset policy. - A guarded run on the local integration branch stopped at the memory floor before the world-frame marker. Its memory timeline recorded zero exact-copy lookups in that window. This change addresses the allocation in the regression and in workloads that reach that path.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:54:28 +00:00
github-bot closed this pull request 2026-11-26 03:54:29 +00:00

Pull request closed

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