perf(gpu): shard HostHeap::mirror across descriptor stripes (stable-amd) #182

Open
Vladimir-Human wants to merge 1 commit from upstream-pr/182 into stable-amd
Vladimir-Human commented 2026-11-28 18:13:57 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by Vladimir-Human on 2026-11-28T18:13:57Z.


Re-port of #16 onto stable-amd (v26.11.6, 75022ba).
Supersedes #16 (which targeted main and auto-closed on disjoint-history force-push).

Verification on stable-amd (commit 69baf89, Cargo.lock untouched)

  • cargo check --workspace --tests --locked: passed
  • cargo check -p victory-gpu --tests --locked --features diagnostics: passed
  • HW cargo test --locked -p victory-gpu --lib descriptor: test result: ok. 53 passed; 0 failed; 3 ignored; 0 measured; 440 filtered out; finished in 0.90s
  • WARP (VICTORY_D3D12_WARP=1) cargo test --locked -p victory-gpu --lib descriptor: test result: ok. 53 passed; 0 failed; 3 ignored; 0 measured; 440 filtered out; finished in 0.88s
<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5543193743 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/182). Originally posted by [Vladimir-Human](https://github.com/Vladimir-Human) on 2026-11-28T18:13:57Z. --- Re-port of #16 onto `stable-amd` (`v26.11.6`, `75022ba`). Supersedes #16 (which targeted `main` and auto-closed on disjoint-history force-push). ### Verification on `stable-amd` (commit `69baf89`, `Cargo.lock` untouched) - `cargo check --workspace --tests --locked`: passed - `cargo check -p victory-gpu --tests --locked --features diagnostics`: passed - HW `cargo test --locked -p victory-gpu --lib descriptor`: `test result: ok. 53 passed; 0 failed; 3 ignored; 0 measured; 440 filtered out; finished in 0.90s` - WARP (`VICTORY_D3D12_WARP=1`) `cargo test --locked -p victory-gpu --lib descriptor`: `test result: ok. 53 passed; 0 failed; 3 ignored; 0 measured; 440 filtered out; finished in 0.88s`
HandshakeHackin commented 2026-11-28 18:23:13 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-28T18:23:13Z.


I tested the cross-stripe final-bake case raised on #16 against this stable-amd head (69baf89). Two title slots on different stripes are queued for upload, then rewritten in reverse order before the old uploads publish. The stale publications are rejected, their completion leaves both new writes queued, and the final bake retains real D3D12 textures with the new widths (128 and 256) in the correct slots. The test exercises both the default and striped heap layouts.

The new test passed in three independent Windows WARP processes. The existing stale-invalidation/CBV-overwrite control also passed. This checks descriptor correctness and does not measure physical GPU performance. Test commit · Windows WARP job

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7243750934 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/182#issuecomment-7243750934). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-28T18:23:13Z. --- I tested the cross-stripe final-bake case raised on #16 against this stable-amd head (`69baf89`). Two title slots on different stripes are queued for upload, then rewritten in reverse order before the old uploads publish. The stale publications are rejected, their completion leaves both new writes queued, and the final bake retains real D3D12 textures with the new widths (128 and 256) in the correct slots. The test exercises both the default and striped heap layouts. The new test passed in three independent Windows WARP processes. The existing stale-invalidation/CBV-overwrite control also passed. This checks descriptor correctness and does not measure physical GPU performance. [Test commit](https://github.com/HandshakeHackin/klbf-lab/commit/5b814438b532234ce57894ce37780488b7cfa754) · [Windows WARP job](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46175107955/job/141071922487)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/182:upstream-pr/182'
git switch 'upstream-pr/182'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'stable-amd'
git merge --no-ff 'upstream-pr/182'
git switch 'upstream-pr/182'
git rebase 'stable-amd'
git switch 'stable-amd'
git merge --ff-only 'upstream-pr/182'
git switch 'upstream-pr/182'
git rebase 'stable-amd'
git switch 'stable-amd'
git merge --no-ff 'upstream-pr/182'
git switch 'stable-amd'
git merge --squash 'upstream-pr/182'
git switch 'stable-amd'
git merge --ff-only 'upstream-pr/182'
git switch 'stable-amd'
git merge 'upstream-pr/182'
git push origin 'stable-amd'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
PastiiJay/klbf-lab!182
No description provided.