Repository navigation
Conversation
|
Independent AMD RDNA4 (native wave64) test report on exact head Tested
Regression run (60 s retail-title smoke, (Matched Not tested
AI use
|
|
Test report on head Tested
Not tested
Tests run and this report drafted with Claude Code (Claude Opus 5.5); I checked the numbers against the logs. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
bmjask
left a comment
There was a problem hiding this comment.
No concrete code defect found. The retained-blob classifier preserves cache on device removal/hang/reset/OOM while keeping fallback retry without the blob across compute, graphics, and two-pass paths; successful retries replace stale blobs. Nonblocking gap: only graphics has focused retention coverage. Please add equivalent compute_container and finish_two_pass device-loss tests, and retain the disclosed lack of real OOM/hung/reset validation.
fdbccf5 to
749cf86
Compare
|
@bmjask thanks for the review. Rebased onto
Suite on Written with Claude Code (Claude Fable 5.2). |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
749cf86 to
9c178b2
Compare
Prime1997
left a comment
There was a problem hiding this comment.
Good within the targeted test scope; retain for integration. Keeps cached driver blobs on device-loss or out-of-memory errors and distinguishes those from a driver refusal of the blob.
Reviewed PR head 9c178b2d6499efae49c654eef243e1134fac7ade. Tested an isolated, uncommitted merge-tree integration with latest main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7, tree 735b5a68b824a4e63dc25a55dcdd2e88ce9124c1; this is not a clean PR-head run. Integration source overlay SHA-256: 5b7ae5fdce161348bc8f83bf24bcbcb02bcb4dbe703ff422ef7a2ebb3a9ae6ef.
Measured: 3 passed, 0 failed, 0 ignored, 0 skipped. Exact selected filters, each run in a fresh process:
hle::d3d12x::real::driver_cache::tests::a_lost_device_or_no_memory_does_not_refuse_a_blobhle::d3d12x::real::compute_blob_tests::a_compute_blob_is_kept_when_the_device_is_lost_and_dropped_when_the_driver_refuses_ithle::d3d12x::real::graphics_blob_tests::cached_graphics_blob_is_kept_when_the_device_is_removed
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: CPU error classification and fake-driver/cache-file fixtures. These use private temporary files and a distinct cache key; no GPU or actual device-loss injection occurred. 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.
abe19ad to
6ab7dba
Compare
|
Source review on head Please evict only when the original HRESULT is a known stale-blob refusal, while still retrying the anomalous success-with-null-output case. Candidate correctiondiff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
@@
- if hr >= 0 || stale_cached_pso_refusal(hr) {
+ if stale_cached_pso_refusal(hr) {Add a deterministic regression for success with a null PSO: retry without the cache, but retain the cached blob. Keep the existing behavior that evicts on a stale refusal and preserves on device removal/OOM. I did not observe the anomalous HRESULT on hardware; this finding is from the retry path’s source conditions. AI use: OpenAI Codex (GPT-6.2 Sol), reviewed by OpenAI Codex (GPT-6.2 Astra). |
|
merge-check claim |
|
merge-check |
Four pipeline creates that are given a driver blob still drop it, in memory and on disk, whatever HRESULT the create failed with: the compute create (compute_container), the translated graphics create (create_graphics_pso_cached) and both passes of a two-pass pipeline (finish_two_pass). A removed or hung device and a driver out of memory fail every create, with a blob or without one, so those failures say nothing about the blob. After a device removal the title lives on for a second or two before it is stopped, and every pipeline it creates in that time deleted a valid file; the next run built those pipelines in the driver again. The native graphics stream path already decides with stale_cached_pso_refusal(hr): only E_INVALIDARG, D3D12_ERROR_ADAPTER_NOT_FOUND and D3D12_ERROR_DRIVER_VERSION_MISMATCH mean the driver refused the blob. The four older sites now use the same rule for the eviction only; each still retries without the blob as before, so on a lost device the retry fails and nothing is deleted, and a blob refused with another code still gets its pipeline built. A mesh pass that returned success without a pipeline dropped its blob as well: that result is no refusal either, so it keeps the blob now and is still retried without it (suggested by thehollowedone in the review of xcl-dev#2426). Measured with the earlier form of this change (a deny list of DEVICE_REMOVED, _HUNG, _RESET and E_OUTOFMEMORY) on 68a284a, RTX 4070 SUPER, a retail title, with the device removed during loading by a local ID3D12Device5::RemoveDevice() switch that is not part of this commit. Compute creates with a blob that failed after the removal (all 0x887a0005) and blob files gone afterwards: main 12/12, 24/24, 12/12; with the change 24/0, 12/0. In a next run under an exe name the driver's own cache had never seen, the 24 pipelines took 22.1 s in the driver without their blobs and 0.7 s with them. Not measured again on the current main. The graphics create has a unit test, and the mesh pass has one for a success without a pipeline (a fake device); the compute creates call the driver inline and have none. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
6ab7dba to
f607b78
Compare
|
@thehollowedone thank you for the review, you were right: applied as you suggested.
@AAsobu your merge-check was on Written with Claude Code (Claude Fable 5.2). |
|
No open or merged PR makes the same change. On main, AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check claim |
|
merge-check |
A pipeline create that was given a driver blob and then failed drops the blob, in memory and the file under
<DXIL cache>\driver\, whatever the HRESULT was. On a removed or hung device every create fails, so in the second or two before the title is stopped each pipeline it creates deletes a valid blob, and the next run builds those pipelines in the driver again.mainalready has the rule for this in the native graphics stream path,stale_cached_pso_refusal(hr): onlyE_INVALIDARG,D3D12_ERROR_ADAPTER_NOT_FOUNDandD3D12_ERROR_DRIVER_VERSION_MISMATCHsay that the driver refused the blob. This PR uses the same rule at the four older sites. Part of #2088 (a warm run reuses the pipelines of the run before).This replaces the earlier form of this PR (a deny list of four codes with its own helpers), which the reviews above were made on:
maingainedstale_cached_pso_refusalin the meantime, and the PR now reuses it instead of adding a second rule. One difference in behaviour from that form: a create that fails with any other code (E_FAIL, for example) now keeps the blob too. It is still retried without the blob, as before.After @thehollowedone's review, the mesh pass of a two-pass pipeline also keeps its blob when the driver returns success without a pipeline (it dropped it there, as
maindoes): that result is no refusal either. That create is still retried without the blob.What is in it
hle/d3d12x/real.rs: the blob is forgotten only whenstale_cached_pso_refusal(hr)in the four creates that take one: the compute create (compute_container), the translated graphics create (create_graphics_pso_cached) and both passes of a two-pass pipeline (finish_two_pass). The retry without the blob is unchanged at all four. A mesh pass that returned success without a pipeline keeps its blob as well.cached_graphics_blob_is_evicted_only_for_a_refusal_and_retried_either_way(it fails without the change increate_graphics_pso_cached) anda_mesh_blob_is_kept_when_the_driver_gives_success_without_a_pipeline(a fake device whoseCreatePipelineStatereturnsS_OKand no pipeline; it fails with the earlier condition in the mesh pass).Tested
RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200, rustc 1.100.0; tests debug, regression runs release.
cargo test --workspace --no-fail-fast -- --test-threads=4(XCL_ADAPTER=nvidia,XCL_NETWORK=0) onf607b78, which is onmain86e86fc: 2891 passed, 0 failed, 51 ignored. The two tests of this PR ran and passed.SKIPPED, 24 lines: 22 "no wave64", 2 "no heap windows".
With the earlier form of this change (the deny list) on
68a284a: a retail title, release builds of68a284aand of68a284a+ the change, each with a local switch that is not in this PR and callsID3D12Device5::RemoveDevice()during loading;XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_TRACE=1, the same 2 975 blob files restored before every run. Compute creates with a blob that failed after the removal (all0x887a0005), and how many of their files were gone afterwards:The next run (100 s, the main build) under an exe name the NVIDIA driver's own cache had never seen: the 24 pipelines of the second row took 22.1 s in the driver without their blobs and 0.7 s with them (the largest: 308 KB of DXIL, 4.8 s). Under the usual exe name the driver's own cache gave a lost one back in 4 ms, so the cost shows only when that cache does not have the pipeline.
Regression run
Both through
scripts/smoke.ps1, 60 s, withXCL_ADAPTER=nvidia XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DEVICE_TYPE=anaconda XCL_TEXTURE_LEVEL_PAGES=1 XCL_UMA_WINDOWS=16, a DXIL cache folder of their own (XCL_DXIL_CACHE) and A pressed at 14, 17 and 21 s. Before them, one 180 s run of themainbuild that is not shown: the cache folder was new, and without that run the first of the pair would have translated on demand what the second found in the cache. A second 60 s run of themainbuild, made right after the one below, gave 1328 frames and 24 785 MB.main:
this PR's head:
Not tested
68a284a, and I did not repeat them with this form or on86e86fc. Every form keeps the blob for0x887a0005.E_OUTOFMEMORY,DEVICE_HUNGand a failure with another code in a real run: only the unit test of the decision.AI use
🤖 Generated with Claude Code