DirectStorage: honor DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled in CreateQueue1 #1790
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!1790
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1790"
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?
@certified-retart on GitHub · 2026-11-24 20:45 UTC · original
certified-retart:dstorage/auto-submit-disabled→main· +135 −11 · 1 files · 1 commits · openHonor
DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled(bit 0 of theu64options field at+0x18ofDSTORAGE_QUEUE_DESC1) inIDStorageFactoryX2::CreateQueue1instead of discarding it and auto-submitting at half capacity.A retail Scarlett title calls
CreateQueue1withoptions = 0x1(AutoSubmitDisabled). Previouslyfactory_create_queue1logged the extra qword and forwarded tofactory_create_queue, so half-full queues auto-submitted insideEnqueueRequestbefore the title finished populating destination buffers/page arrays and callingSubmit(), andQuery()still reported a finiteRequestCountUntilAutoSubmit.What is in it
crates/xcl/src/hle/dstorage.rs: parseQUEUE_OPT_AUTO_SUBMIT_DISABLED(1 << 0) fromDSTORAGE_QUEUE_DESC1 + 0x18infactory_create_queue1(logging unknown option bits once), storeauto_submit_disabledonQueueInner, suppress half-full auto-submit inQueueInner::enqueueandQueueInner::enqueue_numbered, and reportu16::MAXforRequestCountUntilAutoSubmitinqueue_querywhen disabled.crates/xcl/src/hle/dstorage.rs: addcreate_queue1_auto_submit_disabled_waits_for_submitcovering disabled auto-submit pastcapacity / 2, late source mutation beforeSubmit(),Close()resolving unsubmitted status slots withE_QUEUE_CLOSED, and theoptions == 0auto-submit control case.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), debug tests + release smoke runs (XCL_D3D12_DIRAgility SDK v614).cargo test -p xcl --lib hle::dstorage -- --nocapture: 18 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored.SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).DirectStorage: CreateQueue1 (0x20 desc), options = 0x1 (auto_submit_disabled = true), 0 DirectStorage failures, 0 crashes, 0 device removals. Note: themainsmoke run had a cold DXIL cache while the PR run ran with the warm cache frommain, which accounts for the higher frame count (1685 vs 1185).Regression run
main:
PR:
Not tested
AI use
@futurepro62 on GitHub · 2026-11-24 21:29 UTC · original · edited 2026-11-24 21:49 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
7a6f47a(on its base4178e88).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 890 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.create_queue1_auto_submit_disabled_waits_for_submit.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored.Thanks!
@throny on GitHub · 2026-11-25 00:37 UTC · original
Two contributors checked independently and found that #1599 solves the same problem in a different way: #1607, group D59. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
@certified-retart on GitHub · 2026-11-25 01:39 UTC · original
Thanks for the triage pointer. Comparing against #1599:
@JJAutoCompare on GitHub · 2026-11-25 03:08 UTC · original
PR #1790 — DirectStorage
CreateQueue1on Intel Arc A770Tested
7a6f47a53975d3c1d5367a7742970bf53c547d33on STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave range 8–32,DoublePrecisionFloatShaderOps=0), DXC/DXIL 1.9.2609.5, and Rust 1.100.0 (0ef1bc386). Unoptimized Cargo profiles with debug info disabled.cargo build --workspaceandcargo test --workspace --no-runcompleted successfully.cargo test -p xcl hle::dstorage::tests -- --nocapturereported 18 passed, 0 failed, 0 ignored. The newcreate_queue1_auto_submit_disabled_waits_for_submittest verified that requests and a status entry stayed pending past half capacity,Queryreported0xFFFFfor entries until auto-submit, explicitSubmitcopied the expected bytes, andCloseresolved an unsubmitted status withE_QUEUE_CLOSED. The options-zero control auto-submitted at half capacity. The synthetic title also logged a pass for the legacyCreateQueuefile read, status, and D3D12 fence check.cargo test --workspace --no-fail-fast -- --test-threads=4ran once under the shared Arc lock and exited 101. Across 20 harness summaries, libtest reported 874 passed, 18 failed, 42 ignored. The 17 GPU unit failures comprised 13 compute pipeline creation errors (0x80070057) and four result mismatches involving FMA, texture LOD, packed f16, and pixel wave reduction. The synthetic-title integration test failed its D3D12.X dynamic depth-bias check.The combined log contains exactly 4
SKIPPEDlines. Two cite missing wave64, one cites unavailable driver-cache disabling, and one cites unavailable heap windows. These skips provide no coverage.Not tested D3D12 debug-layer assertions (
d3d12SDKLayers.dllabsent, with the test's early return counted as OK by libtest and its skip message captured), retail-title smoke on either main or the PR head, and other GPUs. Main was not run for comparison, so the suite failures have no baseline from this verification.T3 Code / Codex (
gpt-6.2-sol,reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity,gemini-4-neon) verified counts againstpr1790-suite.logand published this report.@Royalflamejlh on GitHub · 2026-11-26 02:55 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA, the title, 2 runs each of
mainb49be183+ #684e56dbc3, with #17907a6f47aand with #15995b1518f: with #1790 the title had 0 failed DirectStorage requests in 2 of 2 runs (87,489 and 88,842 requests), against 238 and 1,281 onmain; #1599 gave 0 and 0. The setup and the table for all three trees are in the comment on #1599.RtlpWaitForCriticalSection … main process heap sectiontwice; the same hang came on 2026-11-25 on a tree with neither fix, so 2 runs cannot say whether #1790 adds to it.QueueInner::enqueueandenqueue_numberedlet the queue grow pastcapacity.Queryreports0xFFFFas the requests left until the automatic submit. These runs do not show whether a queue reached capacity.Not tested: a queue filled to capacity;
Query's count; the world load past 120 s; the suite; Windows; AMD and Intel.AI use: Claude Code (Claude Opus 5.5) ran the title and wrote this comment.
Posted without review by a person: the account owner was away and reads replies later.
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
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.