DirectStorage: a memory queue that is not realtime gets its own error #1673
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1683"
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?
Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T19:15:00Z.
CreateQueuealready refuses a memory queue whose priority is not realtime, but it returned the genericE_DSTORAGE_INVALID_QUEUE_PRIORITY(0x89240013). DirectStorage has a code for exactly this case.dstorageerr.hdefinesE_DSTORAGE_INVALID_MEMORY_QUEUE_PRIORITY(0x89240024): "Invalid priority is specified for the queue. Only DSTORAGE_PRIORITY_REALTIME is a valid priority for a memory queue." A priority outside -1…2 keeps 0x89240013.What is in it
crates/xcl/src/hle/dstorage.rs:E_MEMORY_QUEUE_PRIORITY, returned byfactory_create_queuefor a memory queue that is not realtime. Testa_memory_queue_inflates_zlib_and_reports_through_status_and_errorsnow expects it, and checks that priority 3 still getsE_QUEUE_PRIORITY.Tested
cargo test --workspace -- --test-threads=4onadc843d: 858 passed, 0 failed, 42 ignored; SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)left: -1994129389(0x89240013),right: -1994129372(0x89240024)Regression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by MiharaxD on 2026-11-24T21:44:18Z.
Test report on an NVIDIA card, head
adc843d(onmainc160d86), which covers the "NVIDIA" line.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4(debug) onadc843d: 858 passed, 0 failed, 42 ignored (lib tests 809 / 0 / 22).gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64).Regression run
scripts/smoke.ps1 -Game <game folder> -Seconds 60(release builds, start screen, no input).mainisc160d86:main:
this PR's head:
Not tested
AI use: Claude Code (Claude Opus 5.5) built the PR, ran the tests and both smoke runs, read the logs and wrote this report; I checked it before posting.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T21:47:32Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T03:55:18Z.
PR #1683 compatibility verification
Tested
adc843d4491b16bd12c2020d8e37286e277e42econ STOR-WINLAB. The DirectStorage tests passed. The workspace suite reported 18 failures across GPU unit tests and the synthetic title.Environment. 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, andd3d12SDKLayers.dllabsent. DXC/DXIL 1.9.2609.5, Rust 1.100.0 (0ef1bc386, 2026-11-09), unoptimized dev/test profiles with debug info disabled.Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded.cargo test -p xcl hle::dstorage -- --nocaptureunder the shared Arc lock recorded 17 passed, 0 failed, 0 ignored, 0 skip markers. The updated queue test exercised realtime priority 2 (S_OK), non-realtime priority 0 (E_MEMORY_QUEUE_PRIORITY,0x89240024), and out-of-range priority 3 (E_QUEUE_PRIORITY,0x89240013).cargo test --workspace --no-fail-fast -- --test-threads=4under the same lock recorded 840 passed, 18 failed, 42 ignored across 20 result summaries (exit 101). All 17 DirectStorage tests passed again.Workspace failures and skips
CreateComputePipelineStatewith0x80070057, including FP64 cases. Four more recompiler tests reported result mismatches in FMA, implicit-LOD sampling, f16 VALU, and pixel-shader wave reductions.RSSetDepthBiasXwas expected to make it green.SKIPPEDlines. Two report no wave64 and one reports no heap windows. The harness includes those test entries in its pass total. The skipped paths provide no coverage.Not tested. Retail-title smoke on main and the PR head, sample game data, other GPU vendors, and D3D12 debug-layer validation. There was no main baseline run for attributing the workspace failures.
AI use. T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1683-suite.logand published.Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T13:38:08Z.
Independent desktop NVIDIA verification of PR #1683 at head
adc843d4491b16bd12c2020d8e37286e277e42ec(1commit; exact parent & merge-base:c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
adc843d4)cargo test --release -p xcl --lib -- --nocapture a_memory_queue_inflates_zlib_and_reports_through_status_and_errors(3 consecutive runs)1 passed; 0 failed; 0 ignored; 830 filtered out× 3 (0.02s,0.02s,0.02s,0skipped)cargo test --release -p xcl --lib -- --nocapture hle::dstorage::(3 consecutive runs)17 passed; 0 failed; 0 ignored; 814 filtered out× 3 (0.03s,0.03s,0.03s,0skipped)cargo build --release -p xcl1m 22s, exit0,0new warnings indstorage.rs)Paired quiet 60 s retail smoke (
title: 29640639)(Note:
scripts/smoke.ps1atc160d86epredates9683e7a6and printed the local folder basename ontitle:; replaced below with the standard9683e7a6title hash29640639, with all measured fields verbatim.)Exact parent & merge-base (
c160d86ef2efe3a07e4dfb473e4fa72eafb413c0, cached baseline on the same machine):PR #1683 (
adc843d4491b16bd12c2020d8e37286e277e42ec):Limits of coverage
a_memory_queue_inflates_zlib_and_reports_through_status_and_errorsand the fullhle::dstorage::suite (17/17,0skipped) passed3/3, directly verifying thatfactory_create_queuereturnsE_MEMORY_QUEUE_PRIORITY(0x89240024) for a non-realtime memory queue while keepingE_QUEUE_PRIORITY(0x89240013) for priorities outside-1..=2.0device removals,0crashes, steady 60 Hz) without exercising invalid DirectStorage memory-queue priority rejection from a title; single-run frame/commit delta vs. the cached parent reflects normal startup variance.AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:13:24Z.
merge-check claim
head:
adc843d449Imported from ivall/xcl. Originally posted by throny on 2026-11-27T23:27:26Z.
merge-check
base:
2c717a04head:
adc843d449merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); the PR changes an existing test, which ran and passed; base alone: 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines)
review: none. The logic and the test are right, and the test fails without the change by reading the code. Not verified: the error value is the one of the PC DirectStorage header; that the console library returns the same code is assumed.
performance: none.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T01:51:47Z.
merge-check claim
head:
adc843d449Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T02:44:28Z.
merge-check
base:
753e8b1a25head:
adc843d449merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1512 passed, 0 failed, 47 ignored, 25 SKIPPED: 21 no wave64, 3 per-lane f16/f32 forms refused (#1426 semantics), 1 no heap windows; failing: none. The suite ran on this PC at the same time as 6 other PRs' suites, in one queued job.
review: none. Whole diff read (dstorage.rs: a memory queue with a priority other than realtime returns E_MEMORY_QUEUE_PRIORITY 0x89240024 instead of E_QUEUE_PRIORITY; test). The out-of-range priority check keeps E_QUEUE_PRIORITY. The value 0x89240024 was not checked against the SDK (not available here).
performance: no runtime cost (an error code on a refused CreateQueue).
verdict: safe to merge
hardware / tool and model: Windows 11 build 26300.9974, NVIDIA GeForce RTX 2070 SUPER 8 GB (driver 621.40, wave32 only), AMD Ryzen 5 3600XT; rustc 1.100.1 (20ddd0171 2026-11-25) x86_64-pc-windows-msvc, debug test profile; trial merge a38b2bd24204d761febbe20bc4675e3cdb718089 (local, not pushed). Claude Code: Claude Opus 5.5 (coordination, full-diff review, draft).