gpu: cover formatted stores on an R32_UINT placed buffer #439

Manually merged
github merged 1 commit from github-bot/gh-435 into main 2026-11-28 01:59:26 +00:00 AGit
Owner

@⁠theappartment on GitHub · 2026-11-27 18:07 UTC · original
theappartment:fix/formatted-structured-buffers-255 → main · +30 −4 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC

Refs #255

Five compute dispatches in two local Series S world traces bound an aligned placed UAV with DXGI 42 (R32_UINT) to buffer_store_format_xyzw. The match follows the instruction to the recorded table slot and entry. The five remained after excluding dispatches flagged for a descriptor rebinding at submission. Structured views with 20- and 32-byte strides were also present in the tables. Those entries did not get an exact static match to a formatted store in the sample.

Extend the existing Metal value test to use a placed R32_UINT UAV with a nonzero first element. It verifies that the formatted store writes the first component, a dword store writes all four words at its own offset, and the formatted load reports the stored value and view length. This is a test-only change. The suspected silent write loss did not reproduce for the identified format on main.

Tests

  • tools/macos/test-native.sh --offline -j 4 -p victory-gpu passed on Metal. 412 passed, 6 ignored.
**@⁠theappartment** on GitHub · 2026-11-27 18:07 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/435) `theappartment:fix/formatted-structured-buffers-255` → `main` · +30 −4 · 1 files · 1 commits · merged 2026-11-28 01:57 UTC Refs #255 Five compute dispatches in two local Series S world traces bound an aligned placed UAV with DXGI 42 (`R32_UINT`) to `buffer_store_format_xyzw`. The match follows the instruction to the recorded table slot and entry. The five remained after excluding dispatches flagged for a descriptor rebinding at submission. Structured views with 20- and 32-byte strides were also present in the tables. Those entries did not get an exact static match to a formatted store in the sample. Extend the existing Metal value test to use a placed `R32_UINT` UAV with a nonzero first element. It verifies that the formatted store writes the first component, a dword store writes all four words at its own offset, and the formatted load reports the stored value and view length. This is a test-only change. The suspected silent write loss did not reproduce for the identified format on main. ## Tests - `tools/macos/test-native.sh --offline -j 4 -p victory-gpu` passed on Metal. 412 passed, 6 ignored.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:10:13 +00:00
github-bot referenced this pull request from a commit 2026-11-28 00:42:29 +00:00
github manually merged commit 8efcff1351 into main 2026-11-28 01:59:26 +00:00
Author
Owner

@⁠Olima34 on GitHub · 2026-11-28 01:57 UTC · original · approved these changes

Check report (helping the maintainer clear the queue):

  • CI: check and macos-scripts green on the current head.
  • Read: the whole diff (test only). It adds an R32_UINT placed buffer UAV to the formatted store/load test: only the first component is stored, a dword store writes all four. The typed-view counts are updated to match.
  • Local check: current main (6f95c132) merged with #507, #417 and #439. On it, the victory-gpu (arm64) and victory tests pass, as do Windows clippy (-D warnings) and cargo xtask policy. One victory-gpu run in three failed main's own multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately, a test that also flakes on main alone.
  • Not checked: no game run (the maintainer asked us to work on GitHub only).

Thanks @⁠theappartment!

**@⁠Olima34** on GitHub · 2026-11-28 01:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/435#pullrequestreview-6095057872) · **approved these changes** Check report (helping the maintainer clear the queue): - **CI:** `check` and `macos-scripts` green on the current head. - **Read:** the whole diff (test only). It adds an `R32_UINT` placed buffer UAV to the formatted store/load test: only the first component is stored, a dword store writes all four. The typed-view counts are updated to match. - **Local check:** current main (6f95c132) merged with #507, #417 and #439. On it, the `victory-gpu` (arm64) and `victory` tests pass, as do Windows clippy (`-D warnings`) and `cargo xtask policy`. One `victory-gpu` run in three failed main's own `multi_mip_array_and_placed_depth_twins_preserve_all_subresources_and_remirror_immediately`, a test that also flakes on main alone. - **Not checked:** no game run (the maintainer asked us to work on GitHub only). Thanks @⁠theappartment!
This discussion has been locked. Commenting is limited to contributors.
No description provided.