Tests: synchronize DirectStorage queue option readbacks #2339
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2339
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2339"
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?
@venetanji on GitHub · 2026-11-25 15:35 UTC · original
venetanji:contrib/dstorage-status-readbacks→main· +172 −10 · 1 files · 2 commits · draftStacked on #1599; only the top commit (
7a2d6d0) belongs here. The first commit is #1599's queue implementation, cherry-picked onto0829441with Grein's authorship preserved. This can also be folded into #1599 instead of merged separately.The two queue-option tests poll ordinary destination bytes while the worker writes them.
read_volatiledoes not synchronize those accesses. Wait for the existing status entry with an Acquire load, then check every destination byte after queue cleanup. Delay assertions until cleanup so a failed expectation cannot release buffers while a worker still uses them.What is in it
crates/xcl/src/hle/dstorage.rs, test module only in7a2d6d0: status completion, mutable destination pointers, and cleanup before assertions in the two existing regressions. The half-full fixture uses capacity 6 so its two copies and trailing status reach half capacity together.Tested
git diff --check main..HEAD: passes.scripts/pr_check.pyrejects the missing main/head smoke blocks in the current stacked diff, as expected; no waiver is claimed.7a2d6d0on RTX 3060 12 GB / driver 610.88, Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug. They reportcargo test --workspace --no-fail-fast -- --test-threads=4: 1274 passed, 0 failed, 46 ignored, 25 SKIPPED lines; both queue tests 40/40 and deliberate broken-queue controls failed. These are their results, not independently rerun here. Their original polling controls also passed, so this is no observed Windows-race claim.Regression run
Not tested
AI use
@SlopTart on GitHub · 2026-11-25 15:49 UTC · original
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).Disclosure: this branch carries the cherry-picked #1599 queue commit underneath; the run covers the branch as-is.
gpu_suite (--release --locked,--test-threads=2): 144 passed / 3 failed / 1 ignored, same three baseline failures as plainorigin/mainon this rig (rig's known baseline: fuzz seed 1003 of #2115,gpu_nonfused_mad_and_mac_prevent_fma_contraction,gpu_depth_buffer_created_for_unordered_access_is_placed).hle::dstorage::tests::a_queue_with_auto_submit_disabled_waits_for_submitand...a_full_queue_with_auto_submit_disabled_holds_an_enqueue_until_submit: pass on this lane (--test-threads=1), exercising the real DirectStorage shim (CreateQueue (0x20 desc), options 0x1logged under wine).Not tested: retail titles (no title data on this lane, counts only).
AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
@fromthemoonx on GitHub · 2026-11-25 16:16 UTC · original
Native Windows run: builds and passes. Both queue tests passed 40 of 40, and each one fails on a deliberately broken queue (without hanging). This covers the native build and the two tests listed under Not tested.
Tested:
7a2d6d0, which already containsmain0829441. RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.cargo test --workspace --no-fail-fast -- --test-threads=4SKIPPEDlines (no wave64, refused per-lane forms)a_queue_with_auto_submit_disabled_waits_for_submit, alone, 40 runsa_full_queue_with_auto_submit_disabled_holds_an_enqueue_until_submit, alone, 40 runshle::dstorage::(32 tests),--test-threads=4, 10 runsa9433e7), same repeatsDeliberate breaks in
QueueInner(scratch, 3 runs each):auto_submit: the first test fails,options 0x1: … left: true, right: false.options 0x0: … left: false, right: true.wait_for_roomnever holds: the second test fails atan enqueue into a full queue waits. It runs to the end and doesn't hang, so the asserts placed after cleanup work as intended.One thing to know about the first test: with capacity 6, the two requests fill the queue to 2. It reaches half full (3) only when the test's own
Entry::Statusis enqueued. So in theoptions 0case, the auto-submit is set off by that status entry, not by the requests. The test still tells the two options apart (the first two breaks above), but the commenttwo requests + status: half full at 3is the only place that says so.Not tested: a release build, a title, AMD / Intel.
AI use: Claude Code (Claude Opus 5.5) ran the tests and the scratch breaks, and wrote this report.
@DavidM1911 on GitHub · 2026-11-25 18:25 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.