DirectStorage: a memory queue that is not realtime gets its own error #1683

Open
github-bot wants to merge 1 commit from github-bot/gh-1683 into main AGit
Owner

@⁠emirduran707 on GitHub · 2026-11-24 19:15 UTC · original
emirduran707:dstorage-memory-queue-priority-error → main · +8 −2 · 1 files · 1 commits · open

CreateQueue already refuses a memory queue whose priority is not realtime, but it returned the generic E_DSTORAGE_INVALID_QUEUE_PRIORITY (0x89240013). DirectStorage has a code for exactly this case. dstorageerr.h defines E_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 by factory_create_queue for a memory queue that is not realtime. Test a_memory_queue_inflates_zlib_and_reports_through_status_and_errors now expects it, and checks that priority 3 still gets E_QUEUE_PRIORITY.

Tested

  • AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release
  • cargo test --workspace -- --test-threads=4 on adc843d: 858 passed, 0 failed, 42 ignored; SKIPPED: heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)
  • the test without the change: left: -1994129389 (0x89240013), right: -1994129372 (0x89240024)

Regression run

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1321 (PresentX 1323)
presents per 2 s (last 3): 44 22 24
device removals: 0
crashes: 0
peak commit: 47832 MB

this PR:

xcl-smoke v1
commit: adc843d4491b16bd12c2020d8e37286e277e42ec
gpu: AMD Radeon RX 9060 XT
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1237 (PresentX 1241)
presents per 2 s (last 3): 1 22 7
device removals: 0
crashes: 0
peak commit: 49467 MB

Not tested

  • A title that branches on this code; the smoke title's run is a regression check only.
  • NVIDIA and Intel GPUs.

AI use

  • Claude Code with Claude Opus 5.5: found the problem, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above.

🤖 Generated with Claude Code

**@⁠emirduran707** on GitHub · 2026-11-24 19:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/1683) `emirduran707:dstorage-memory-queue-priority-error` → `main` · +8 −2 · 1 files · 1 commits · open `CreateQueue` already refuses a memory queue whose priority is not realtime, but it returned the generic `E_DSTORAGE_INVALID_QUEUE_PRIORITY` (0x89240013). DirectStorage has a code for exactly this case. `dstorageerr.h` defines `E_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 by `factory_create_queue` for a memory queue that is not realtime. Test `a_memory_queue_inflates_zlib_and_reports_through_status_and_errors` now expects it, and checks that priority 3 still gets `E_QUEUE_PRIORITY`. **Tested** - AMD Radeon RX 9060 XT (driver 32.0.31044.16), Ryzen 5 5600, Windows 11 Pro 26300, Rust 1.100.0; tests debug, smoke release - `cargo test --workspace -- --test-threads=4` on adc843d: 858 passed, 0 failed, 42 ignored; SKIPPED: `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) - the test without the change: `left: -1994129389` (0x89240013), `right: -1994129372` (0x89240024) **Regression run** main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1321 (PresentX 1323) presents per 2 s (last 3): 44 22 24 device removals: 0 crashes: 0 peak commit: 47832 MB ``` this PR: ``` xcl-smoke v1 commit: adc843d4491b16bd12c2020d8e37286e277e42ec gpu: AMD Radeon RX 9060 XT title: retail-title seconds: 60 exit: 0x0 frames shown: 1237 (PresentX 1241) presents per 2 s (last 3): 1 22 7 device removals: 0 crashes: 0 peak commit: 49467 MB ``` **Not tested** - A title that branches on this code; the smoke title's run is a regression check only. - NVIDIA and Intel GPUs. **AI use** - Claude Code with Claude Opus 5.5: found the problem, wrote the change, the test and this description; I reviewed the diff and ran the tests and smoke runs above. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CreateQueue refused it with E_DSTORAGE_INVALID_QUEUE_PRIORITY;
dstorageerr.h has E_DSTORAGE_INVALID_MEMORY_QUEUE_PRIORITY (0x89240024)
for exactly this case (only DSTORAGE_PRIORITY_REALTIME is valid for a
memory queue). A priority outside -1..2 keeps the generic code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:01:30 +00:00
Author
Owner

@⁠MiharaxD on GitHub · 2026-11-24 21:44 UTC · original

Test report on an NVIDIA card, head adc843d (on main c160d86), which covers the "NVIDIA" line.

Tested

  • RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17.
  • cargo build --workspace, then cargo test --workspace --no-fail-fast -- --test-threads=4 (debug) on adc843d: 858 passed, 0 failed, 42 ignored (lib tests 809 / 0 / 22).
  • SKIPPED: 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). main is c160d86:

main:

xcl-smoke v1
commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1586 (PresentX 1586)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15055 MB

this PR's head:

xcl-smoke v1
commit: adc843d4491b16bd12c2020d8e37286e277e42ec
gpu: NVIDIA GeForce RTX 3070 Ti
title: game
seconds: 60
exit: 0x0
frames shown: 1596 (PresentX 1597)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15849 MB

Not tested

  • A title that creates a memory queue with a non-realtime priority: the smoke run is a regression check only.
  • AMD / Intel, gameplay past the start screen.

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.

**@⁠MiharaxD** on GitHub · 2026-11-24 21:44 UTC · [original](https://github.com/xcl-dev/xcl/pull/1683#issuecomment-7145322707) Test report on an NVIDIA card, head `adc843d` (on `main` `c160d86`), which covers the "NVIDIA" line. **Tested** - RTX 3070 Ti 8 GB (driver 621.01), Intel i5-14400F, 32 GB RAM, Windows 11 Pro 10.0.26300, Rust 1.100.0, DXC 1.9.2602.17. - `cargo build --workspace`, then `cargo test --workspace --no-fail-fast -- --test-threads=4` (debug) on `adc843d`: **858 passed, 0 failed, 42 ignored** (lib tests 809 / 0 / 22). - SKIPPED: `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). `main` is `c160d86`: main: ``` xcl-smoke v1 commit: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0 gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1586 (PresentX 1586) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15055 MB ``` this PR's head: ``` xcl-smoke v1 commit: adc843d4491b16bd12c2020d8e37286e277e42ec gpu: NVIDIA GeForce RTX 3070 Ti title: game seconds: 60 exit: 0x0 frames shown: 1596 (PresentX 1597) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 15849 MB ``` **Not tested** - A title that creates a memory queue with a non-realtime priority: the smoke run is a regression check only. - AMD / Intel, gameplay past the start screen. **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.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 21:47 UTC · original

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 unmodified main.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 21:47 UTC · [original](https://github.com/xcl-dev/xcl/pull/1683#issuecomment-7145393350) 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 unmodified `main`.) Thanks!
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 03:55 UTC · original

PR #1683 compatibility verification

Tested adc843d4491b16bd12c2020d8e37286e277e42ec on 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, and d3d12SDKLayers.dll absent. 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 --workspace and cargo test --workspace --no-run succeeded.
  • cargo test -p xcl hle::dstorage -- --nocapture under 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).
  • One run of cargo test --workspace --no-fail-fast -- --test-threads=4 under 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

  • 13 GPU unit tests failed at CreateComputePipelineState with 0x80070057, including FP64 cases. Four more recompiler tests reported result mismatches in FMA, implicit-LOD sampling, f16 VALU, and pixel-shader wave reductions.
  • The synthetic title failed D3D12.X dynamic-depth-bias check #94. The top-right pixel was blue where RSSetDepthBiasX was expected to make it green.
  • The log has 3 SKIPPED lines. 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.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 03:55 UTC · [original](https://github.com/xcl-dev/xcl/pull/1683#issuecomment-7152363542) # PR #1683 compatibility verification Tested `adc843d4491b16bd12c2020d8e37286e277e42ec` on 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`, and `d3d12SDKLayers.dll` absent. 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 --workspace` and `cargo test --workspace --no-run` succeeded. - `cargo test -p xcl hle::dstorage -- --nocapture` under 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`). - One run of `cargo test --workspace --no-fail-fast -- --test-threads=4` under 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** - 13 GPU unit tests failed at `CreateComputePipelineState` with `0x80070057`, including FP64 cases. Four more recompiler tests reported result mismatches in FMA, implicit-LOD sampling, f16 VALU, and pixel-shader wave reductions. - The synthetic title failed D3D12.X dynamic-depth-bias check #94. The top-right pixel was blue where `RSSetDepthBiasX` was expected to make it green. - The log has **3 `SKIPPED` lines**. 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.log` and published.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1683/head:github-bot/gh-1683'
git switch 'github-bot/gh-1683'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1683'
git switch 'github-bot/gh-1683'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1683'
git switch 'github-bot/gh-1683'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1683'
git switch 'main'
git merge --squash 'github-bot/gh-1683'
git switch 'main'
git merge --ff-only 'github-bot/gh-1683'
git switch 'main'
git merge 'github-bot/gh-1683'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.