test(gpu): host list scratch state tests expect common under enhanced barriers #566

Manually merged
github merged 1 commit from github-bot/gh-566 into main 2026-12-05 17:30:09 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 09:42 UTC · original
Kal0s-design:fix/host-list-scratch-state → main · +13 −5 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC

The two host list tests that check the indirect scratch buffer's tracked state fail on native Windows. They are host_list_reuses_and_grows_scratch_across_submissions and host_list_window_executions_need_no_barrier_of_their_own, and both see COMMON where they expect INDIRECT_ARGUMENT right after a clamp.

Nothing is wrong in the product. When the device reports enhanced barrier support, around() takes the named path. The clamp is then ordered by global barriers, and clamp_into deliberately does not mark the scratch buffer readable, so indirect_state stays COMMON. If it did mark it, indirect_common would record a legacy transition that matches nothing. batches_common skips its transitions under the same condition. The tests hard-coded the legacy expectation, which only holds on devices without enhanced barriers.

The tests now ask waits::precise() which state to expect. Every other check in them is unchanged, including the dispatch hit count and the debug layer checks.

I tested on one NVIDIA desktop card and on WARP. Both report enhanced barriers and both failed before this change. Both pass now, also with the diagnostics feature and VICTORY_D3D12_DEBUG=1. The debug layer was confirmed live with a deliberately bad barrier, and it reported nothing for these tests apart from an unrelated descriptor heap size message. The legacy branch of the new helper did not run on this hardware. The full victory-gpu lib suite goes from 352 passed and 5 failed to 355 passed and 2 failed. The two left are the pipeline::host library load tests that already fail on main, and the third one that cleared is a known flaky watch test (see #559).

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 09:42 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/566) `Kal0s-design:fix/host-list-scratch-state` → `main` · +13 −5 · 1 files · 1 commits · merged 2026-12-05 17:26 UTC The two host list tests that check the indirect scratch buffer's tracked state fail on native Windows. They are host_list_reuses_and_grows_scratch_across_submissions and host_list_window_executions_need_no_barrier_of_their_own, and both see COMMON where they expect INDIRECT_ARGUMENT right after a clamp. Nothing is wrong in the product. When the device reports enhanced barrier support, around() takes the named path. The clamp is then ordered by global barriers, and clamp_into deliberately does not mark the scratch buffer readable, so indirect_state stays COMMON. If it did mark it, indirect_common would record a legacy transition that matches nothing. batches_common skips its transitions under the same condition. The tests hard-coded the legacy expectation, which only holds on devices without enhanced barriers. The tests now ask waits::precise() which state to expect. Every other check in them is unchanged, including the dispatch hit count and the debug layer checks. I tested on one NVIDIA desktop card and on WARP. Both report enhanced barriers and both failed before this change. Both pass now, also with the diagnostics feature and VICTORY_D3D12_DEBUG=1. The debug layer was confirmed live with a deliberately bad barrier, and it reported nothing for these tests apart from an unrelated descriptor heap size message. The legacy branch of the new helper did not run on this hardware. The full victory-gpu lib suite goes from 352 passed and 5 failed to 355 passed and 2 failed. The two left are the pipeline::host library load tests that already fail on main, and the third one that cleared is a known flaky watch test (see #559). AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With enhanced barriers around() takes the named path and clamp_into does
not mark the scratch readable, so indirect_state stays COMMON. The tests
hard-coded INDIRECT_ARGUMENT, which only holds on the legacy path.

AI-assisted: yes

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 09:45:54 +00:00
github manually merged commit 6ebb8d818b into main 2026-12-05 17:30:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.