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

Merged
theappartment merged 1 commit from upstream-pr/435 into main 2026-11-28 01:57:56 +00:00
theappartment commented 2026-11-27 18:07:53 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by theappartment on 2026-11-27T18:07:53Z.


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.
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5531137076 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/435). Originally posted by [theappartment](https://github.com/theappartment) on 2026-11-27T18:07:53Z. --- 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.
Olima34 commented 2026-11-28 01:57:53 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T01:57:53Z.

Review: APPROVED


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 #503, #413 and #435. 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!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6095057872 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/435#pullrequestreview-6095057872). Originally posted by [Olima34](https://github.com/Olima34) on 2026-11-28T01:57:53Z. **Review:** APPROVED --- 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 #503, #413 and #435. 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!
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
LakshanSivakumar/Native-Victory-macOS!435
No description provided.