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