Repository navigation
DirectStorage: honor DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled in CreateQueue1 - #1790
certified-retart wants to merge 1 commit into
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
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. |
|
Thanks for the triage pointer. Comparing against #1599:
|
PR #1790 — DirectStorage
|
Honor
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