Repository navigation
[upstream #1790] DirectStorage: honor DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled in CreateQueue1 - #344
Open
ufoptg wants to merge 3 commits into
Open
[upstream #1790] DirectStorage: honor DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled in CreateQueue1#344ufoptg wants to merge 3 commits into
ufoptg wants to merge 3 commits into
Conversation
…-oom dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Mirror of xcl-dev#1790 (auto-synced, do not edit).