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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Prime1997
left a comment
There was a problem hiding this comment.
Good within the targeted test scope; retain for integration. Checks the capacity before copying shader-cache entries, preserves a previous value when replacement cannot fit, and accounts for replacements correctly.
Reviewed PR head ab861b8196779f65209de31eef1e5f97ee1eb6d8. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree 2c318f747df7b6edd4d82517db51991d57374d37; this is not a clean PR-head run. Integration source overlay SHA-256: eeeb73b447215fc122aff8186c907d88cc4ba0562448502f1012bd6769c666d5.
Measured: 4 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:
hle::d3d12x::shader_cache_session::tests::cache_capacity_rejects_an_oversized_entryhle::d3d12x::shader_cache_session::tests::cache_capacity_accepts_exact_limit_and_rejects_another_keyhle::d3d12x::shader_cache_session::tests::cache_capacity_failed_replacement_preserves_the_previous_valuehle::d3d12x::shader_cache_session::tests::cache_capacity_accounts_for_replacements_in_a_full_store
Build: cargo test --locked --offline -p xcl --lib --no-run --message-format=json --target-dir <isolated-target>. Run each: <test-exe> <exact-filter> --exact --test-threads=1 --nocapture. Private target/executable paths are placeholders. Windows 11 Pro 26200, i5-10400, 32 GiB, Rust 1.100.0 MSVC debug; private temporary/cache paths, two low-priority build jobs, 90-second per-test bound.
Scope: Four CPU boundary and replacement-accounting fixtures. No actual title cache workload or whole-process memory bound was measured. No full suite, retail run, sustained memory pressure or performance benefit is established. Passing these fixtures is not merge certification.
AI use: Codex (GPT-6) inspected the changes and fixtures, ran the checks and verified raw receipts. Optional temporary Discord for coordinating contributor work, testing and comparing results.
ab861b8 to
b2f681a
Compare
|
Tested on an RTX 5070 (616.92), Ryzen 7 5700X3D, Windows 11 26300.10075, using a standalone native D3D12 probe. I opened two simultaneous MEMORY sessions with the same identifier and version. The initial On the current #2332 head Not tested on the #2332 runtime, Wine, AMD or a retail title. OpenAI Codex with GPT-6.2 Sol ran the native probe and prepared the report. |
b2f681a to
225c039
Compare
|
#2878 also changes AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
Keep the fallback shader-cache store within its 32 MiB key/value budget before allocating or copying either input. Address the native StoreValue feedback: existing keys return
DXGI_ERROR_ALREADY_EXISTS, without replacing their values or changing capacity accounting.What is in it
Tested
225c039ab26c025944091419dafc900a02b33cc9, unchanged main53e85fb124eae624641e9884517e4f3c4a7d8794.cargo build --workspace --jobs 2: passed on PR.cargo test -p xcl --lib shader_cache_session --jobs 2 -- --test-threads=1 --nocapture: 5 passed, 0 failed, 0 ignored, 0 skipped on PR.b2f681a157028116009dfcc4ef94671c80a960f4produced 2 passed / 2 failed. Both duplicate regressions failed before the fix.cargo test --workspace --no-fail-fast --jobs 2 -- --test-threads=4 --nocapture: PR 2793 passed, 4 failed, 49 ignored; 12 distinct explicit SKIPPED messages; unchanged main 2789 passed, 4 failed, 49 ignored; 12 distinct explicit SKIPPED messages. All 41 Cargo test/doc-test targets completed on each revision. Explicit skips are not GPU coverage.git diff --check: passed.The same four failed tests were reproduced on unchanged main, with the same assertions. The initial parallel main run additionally aborted in the UMA coherent-window restore path (Windows error 487, process exit 130088963); its library target was incomplete. Its other 40 targets finished with 138 passed, 1 failed and 20 ignored; 11 distinct SKIPPED messages were recorded across that partial run. The main counts above come from the subsequent complete repeat, not that partial run. The PR run completed without this abort; this change does not claim to fix it.
Full-suite failures (see paired results above):
gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_formgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipelinetwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsNative D3D12 probe, directly using
D3D12CreateDevice/ID3D12Device9::CreateShaderCacheSession, without XCL hooks: with a 32 MiB MEMORY cache and a 32 MiB DISK cache, a duplicate with a nonempty oversized value returned0x887a0036. With DISK filled until another 1 MiB entry returned0x887a0034, the same-sized duplicate still returned0x887a0036; the original bytes remained readable. A new oversized key returned0x887a0034. This agrees with the Microsoft StoreValue contract. Native MEMORY eviction differs from the fallback's fixed total budget: a failed large new insertion could evict an earlier key. No identical eviction behavior is claimed.Compatibility with #2878
Reviewed #2878 at
1f4cf9ef8b560974f0abc7d07f800af3f61d121c. Both reject duplicate keys. Theirinsertedits overlap and need a textual conflict resolution retaining this PR's capacity error; session-sharing/lifetime changes are not included here.A temporary local combination of this PR with #2878's session-sharing file, resolving the overlap to retain the capacity checks and both sets of tests, passed the same focused
shader_cache_sessioncommand: 6 passed, 0 failed, 0 ignored, 0 skipped. This is an uncommitted integration check, not the published PR or a full integration-suite result; the original PR tree was restored afterward.Explicit SKIPPED messages from the paired full runs
Regression run
Not run: no owned, runnable retail title is available. This PR remains a draft; no
xcl-smokeblocks are fabricated.Not tested
E_INVALIDARG; native measurements above used valid 32 MiB descriptors.AI use
Created with AI assistance from OpenAI Codex (GPT-6).