Repository navigation
Conversation
|
Tested: current PR head merged onto current
Caveat, one-off: the very first suite run on this head died mid-suite with AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
|
Independent focused verification of exact PR head Tested
I did not reproduce a host cache-session refusal beyond the fixture's deliberately invalid flags, run a full workspace suite, or run a title smoke pair on this PR. AI use: OpenAI Codex (GPT-6) ran the tests and prepared this report. |
The fallback shader cache copied keys and values before checking its 32 MiB limit, then reported S_OK even when it discarded the entry. Reject oversized inputs before copying, check remaining capacity under the store lock, and return DXGI_ERROR_CACHE_FULL without losing a previous value.
What is in it
shader_cache_session.rs, four regression tests, and README documentation. This affects the fallback used when the host refuses CreateShaderCacheSession.Tested
ab861b8196779f65209de31eef1e5f97ee1eb6d8, base06c9f5505f63f10c5ec49ef932d75b2c28177324. Windows 11 Pro build 26300, Ryzen 7 8840HS, Radeon 780M (driver 32.0.31033.3), rustc 1.100.0 MSVC, debug.cargo build --locked --workspace --jobs 2: passed.cargo test --locked --workspace --no-fail-fast --jobs 2 -- --test-threads=4: 1268 passed, 1 failed, 46 ignored. All four new tests and the existing fallback-session GPU test pass. The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722), reproduced on unchanged main before the rebase too.ab2ff4dc8d82e524ac5230dc58c2fcdc2989766a, additionally carrying upstream PRs Shaders: preserve first active lane reads across divergent switches #2192, Direct DXIL: lower i64 min/max as compare/select #1946 and Shaders: reverse the halves of an i64 Bfrev with shifts and masks on AMD #2237, builds and passes the full command above: 1271 passed, 0 failed, 46 ignored. Those commits are NOT included in this PR.git diff --checkpasses.Regression run
Not run: no unpacked retail title is available. The required main/head smoke pair is still needed before merge.
Not tested
Retail titles, Wine/vkd3d-proton, other GPUs, ignored tests and optional XCL_SAMPLE_* inputs (unset). No measured peak-memory or world-load improvement. The PR branch's complete suite is not green until the independent shader failure is resolved upstream.
AI use
This PR was created with AI assistance from OpenAI Codex (gpt-6-astra).