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.
A pipeline create that was given a driver blob and failed dropped the blob, in memory and on disk, whatever the HRESULT was. 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. driver_cache::refused(hr) now decides: DXGI_ERROR_DEVICE_REMOVED, _HUNG, _RESET and E_OUTOFMEMORY keep the blob, every other failure drops it as before. Used by the three creates that take a blob (compute, graphics, the compute pass of a two-pass pipeline); the two compute ones share drop_refused_compute_blob, which has its own test. The retry without the blob is unchanged. Measured 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 this 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. No graphics create with a blob fell after the removal in those runs: the graphics path is covered by the unit test only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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 |
A pipeline create that was given a driver blob and then failed dropped 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. With this changeDXGI_ERROR_DEVICE_REMOVED,_HUNG,_RESETandE_OUTOFMEMORYkeep the blob; any other failure drops it as before. Part of #2088 (a warm run reuses the pipelines of the run before).What is in it
hle/d3d12x/real.rs:driver_cache::refused(hr), used by the three creates that take a blob (compute, graphics increate_graphics_pso_cached, the compute pass of a two-pass pipeline). The two compute creates had the same lines for a failed create with a blob; they are nowdrop_refused_compute_blob. The retry without the blob is unchanged.a_lost_device_or_no_memory_does_not_refuse_a_blob,cached_graphics_blob_is_kept_when_the_device_is_removedanda_compute_blob_is_kept_when_the_device_is_lost_and_dropped_when_the_driver_refuses_it(the last two fail without the change).Tested
RTX 4070 SUPER 12 GB (driver 32.0.16.2101), Ryzen 5 7600, 32 GB, Windows 11 26200, rustc 1.100.0.
cargo test --workspace --no-fail-fast -- --test-threads=4(debug,XCL_ADAPTER=nvidia) on749cf86, which is onmaine1d84b7: 1426 passed, 0 failed, 46 ignored. The three tests of this PR ran and passed.SKIPPED, 25 lines: 21 "no wave64", 3 f16 / f32 programs refused in the per-lane form (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426),
heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Before the rebase: a retail title, release builds of
68a284aand of68a284a+ this 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 the same script, 60 s, with
XCL_ADAPTER=nvidia XCL_NETWORK=0 XCL_TRACE_FAULTS=1 XCL_FRAME_DUMP=300and A pressed at 14, 17 and 21 s.main:
this PR's head:
Not tested
drop_refused_compute_blobcovers what the two compute creates decide about the blob, not the retry around it: that is in twounsafefunctions that call the driver, and has no test.E_OUTOFMEMORY,DEVICE_HUNGandDEVICE_RESETin a real run: only the unit test of the decision.68a284a, not again one1d84b7.AI use
🤖 Generated with Claude Code