Ignore padding in placed view keys #44

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

@⁠BottyIvan on GitHub · 2026-12-01 22:17 UTC · original
BottyIvan:proposal/placed-view-padding → main · +108 −8 · 3 files · 1 commits · closed without merging

Reuse the resource padding rule for placed-view records and ignore alignment padding in SRV descriptions while retaining the corresponding meaningful UAV word. VICTORY_PLACED_FILLER=1 keeps these fields for comparison.

Validation: Windows-target victory check passed. The Proton descriptor suite passed 14 tests in each of five configurations: default, inline disabled, placed filler kept, view filler blanked, and inline disabled with placed filler kept. The resource-padding reduction test deliberately skips when preservation is enabled. Offset assertions distinguish SRV and UAV union layouts.

Observed on an earlier combined diagnostic build: a short run reported 35,431 placed shapes versus 134,502 in an earlier run with different scene and settings. This is not a controlled comparison or a measurement of this isolated branch. Geometric glitches persisted; an earlier long run experienced OOM. No claim is made that this change fixes glitches, crashes, OOM or performance; a controlled long in-game test is still needed.

**@⁠BottyIvan** on GitHub · 2026-12-01 22:17 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/44) `BottyIvan:proposal/placed-view-padding` → `main` · +108 −8 · 3 files · 1 commits · closed without merging Reuse the resource padding rule for placed-view records and ignore alignment padding in SRV descriptions while retaining the corresponding meaningful UAV word. VICTORY_PLACED_FILLER=1 keeps these fields for comparison. Validation: Windows-target victory check passed. The Proton descriptor suite passed 14 tests in each of five configurations: default, inline disabled, placed filler kept, view filler blanked, and inline disabled with placed filler kept. The resource-padding reduction test deliberately skips when preservation is enabled. Offset assertions distinguish SRV and UAV union layouts. Observed on an earlier combined diagnostic build: a short run reported 35,431 placed shapes versus 134,502 in an earlier run with different scene and settings. This is not a controlled comparison or a measurement of this isolated branch. Geometric glitches persisted; an earlier long run experienced OOM. No claim is made that this change fixes glitches, crashes, OOM or performance; a controlled long in-game test is still needed.
Reuse the resource padding rule for placed-view records and ignore alignment padding in SRV descriptions while retaining the corresponding meaningful UAV word. VICTORY_PLACED_FILLER=1 keeps these fields for comparison.

Validation: Windows-target victory check passed. The Proton descriptor suite passed 14 tests in each of five configurations: default, inline disabled, placed filler kept, view filler blanked, and inline disabled with placed filler kept. The resource-padding reduction test deliberately skips when preservation is enabled. Offset assertions distinguish SRV and UAV union layouts.

Observed on an earlier combined diagnostic build: a short run reported 35,431 placed shapes versus 134,502 in an earlier run with different scene and settings. This is not a controlled comparison or a measurement of this isolated branch. Geometric glitches persisted; an earlier long run experienced OOM. No claim is made that this change fixes glitches, crashes, OOM or performance; a controlled long in-game test is still needed.

Co-authored-by: Copilot <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 22:22:42 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-05 03:25 UTC · original

Thank you. Since 2026-12-02 main is on a new base (VIctory-xmem), and the files this changes are not there anymore, so it cannot merge as it is. If the same idea helps on the new base, a new pull request against main is welcome.

**@⁠Slaktarn700** on GitHub · 2026-12-05 03:25 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/44#issuecomment-7431045218) Thank you. Since 2026-12-02 main is on a new base (VIctory-xmem), and the files this changes are not there anymore, so it cannot merge as it is. If the same idea helps on the new base, a new pull request against main is welcome.
github-bot closed this pull request 2026-12-05 05:02:42 +00:00
Author
Owner

@⁠Slaktarn700 on GitHub · 2026-12-05 05:01 UTC · original

Thank you. The new base (VIctory-xmem, on main since 2026-12-02) does the same in shape_of (crates/victory-gpu/src/descriptor.rs): the resource description's two padding words are cleared, and for shader-resource views the alignment padding word too, while unordered-access views keep it, as you found. So there is nothing left to merge, and this no longer applies to the new files. Closing as done.

**@⁠Slaktarn700** on GitHub · 2026-12-05 05:01 UTC · [original](https://github.com/Slaktarn700/SlaktarnVI/pull/44#issuecomment-7432306344) Thank you. The new base (VIctory-xmem, on main since 2026-12-02) does the same in `shape_of` (`crates/victory-gpu/src/descriptor.rs`): the resource description's two padding words are cleared, and for shader-resource views the alignment padding word too, while unordered-access views keep it, as you found. So there is nothing left to merge, and this no longer applies to the new files. Closing as done.

Pull request closed

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