test(gpu): host list scratch state tests expect common under enhanced barriers #566
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!566
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-566"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCThe 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