Skip to content

D3D12.X: persist both PSOs for translated mesh and geometry - #1942

Open
ZekkJJ wants to merge 3 commits into
xcl-dev:mainfrom
ZekkJJ:upstream/two-pass-driver-cache
Open

ZekkJJ wants to merge 3 commits into
xcl-dev:mainfrom
ZekkJJ:upstream/two-pass-driver-cache

Conversation

@ZekkJJ

@ZekkJJ ZekkJJ commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Persist the passthrough mesh graphics driver blob for translated console MS and VS+GS pipelines. Current main already persists their compute blobs. Part of #1269.

What is in it

  • Uses the normalized two-pass stream identity and shared 256 MiB graphics store. Cached attempts bypass cold admission. Rejected blobs retry under the existing two-pass cold admission and wait diagnostic.
  • The GPU fixture and shared synthetic shader builders account for most of the diff. The fixture accompanies the runtime change to verify cache behavior through both renderer entry points without retail shader data.
  • A driver that refuses export or returns an empty blob leaves the created PSO usable. The fixture verifies both rendered paths and storage effects, and reports a disk-replay subcase skip when native export is unavailable.

Tested

  • Exact head f9c9df37703babb4f6bb9b51841e18c813751c2c on RTX 4060 Laptop (616.56), Ryzen 7 8845HS, Windows 11 build 26200.9974, Rust 1.98.1 MSVC and DXC 1.8.2502.11.
  • cargo test --offline --locked -p xcl --lib mesh_stream_tests -- --nocapture --test-threads=1 passed 4 with no skips. The two new mocks cover E_UNEXPECTED and an empty successful export.
  • cargo test --offline --locked -p xcl --test gpu_two_pass_cache_e2e -- --nocapture --test-threads=1 passed 1 with no skips, including five fresh-process hits, corrupt-blob recovery for each pass, and both pixel readbacks.
  • Complete debug workspace run using cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output passed 1,438 with 0 failures and 47 ignores. There were 26 explicit skip markers (21 no native wave64, 3 refused wave32 per-lane operations, 1 no heap windows, and 1 Windows Developer Mode unavailable).
  • Prior head 7ca01644 passed the local Radeon 780M cache fixture and paired retail smoke. Lum7nt reported the older RTX 3060 driver's export refusal at that head. The five baseline failures on that setup are recorded in the report.

Regression run

Clean release builds on the same RTX 4060 Laptop GPU and retail workload. XCL used a separate title state and DXIL cache for each run.

Main

xcl-smoke v1
commit: b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7
gpu: NVIDIA GeForce RTX 4060 Laptop GPU
title: Retail workload A
seconds: 60
exit: 0x0
frames shown: 355 (PresentX 355)
presents per 2 s (last 3): 19 20 19
device removals: 0
crashes: 0
peak commit: 14781 MB

PR head

xcl-smoke v1
commit: f9c9df37703babb4f6bb9b51841e18c813751c2c
gpu: NVIDIA GeForce RTX 4060 Laptop GPU
title: Retail workload A
seconds: 60
exit: 0x0
frames shown: 573 (PresentX 574)
presents per 2 s (last 3): 46 45 43
device removals: 0
crashes: 0
peak commit: 14821 MB

Not tested

  • RTX 3060 driver 581.42 and independent AMD hardware on the updated head. The mock covers the reported HRESULT.
  • Driver-cold speedup. Windows Developer Mode was unavailable. Retail smoke checks general regression; the synthetic GPU fixture covers the translated mesh and geometry paths.

AI use

OpenAI Codex (gpt-6.2-sol) rebased, implemented the fallback coverage, tested the patch, and prepared the report. The original implementation also used Google Antigravity. Its exact model was unrecorded.

@thehollowedone

Copy link
Copy Markdown

Independent check of 024b2e2 on an RTX 3080 Ti (621.35), Windows 11 build 26300, Rust 1.99.1 MSVC and DXC 1.8.2502.11. The offline locked release workspace build passed. cargo test --offline --locked --release -p xcl --test gpu_two_pass_cache_e2e -- --nocapture --test-threads=1 passed 1/1 with zero skips. A separate cache-disabled run confirmed the RTX 3080 Ti and D3D12 debug-layer activation.

The fixture verified five disk hits in a fresh process, recovery when either pass’s blobs were rejected, and the expected pixel readbacks for both translated mesh and geometry. This covers the published stack with synthetic input. Integration with current main, the title’s ExecuteIndirect path, and retail performance remain untested here.

AI-assisted. Codex (GPT-6 family, exact variant unavailable) ran the tests and drafted this report.

@raylitebull

Copy link
Copy Markdown
Member

Code review on 024b2e2:

  • build_two_pass_pso, finish_two_pass, two_pass_driver_id, and crates/xcl/tests/gpu_two_pass_cache_e2e.rs look solid: mesh_pso is held by RAII if the compute pass fails, rejected RAM blobs also evict their disk counterparts before the cold-compile retry, and the E2E suite exercises both translated MS and VS+GS paths with corrupt-blob recovery and pixel readbacks.

What is needed before merge:

  1. Rebase onto current main (now CONFLICTING): main has since merged #1836 (80f4819, adding read_pso_cached_blob / driver_cache compute-pass caching in finish_two_pass), #1937 (2c95f01), and #1774 (de36462, big_compile_headroom in finish_two_pass). Please reconcile finish_two_pass with those changes and drop the already-merged #1937 hunks.
  2. Independent AMD verification on the rebased head (gpu_two_pass_cache_e2e + retail smoke), as current verification is NVIDIA-only (RTX 4060 Laptop and RTX 3080 Ti).

@gefydev gefydev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of 024b2e2 (read against main bf9eebd; I did not build or run it).

This now overlaps #1836, which was merged. #1836 merged on 2026-11-25 00:04 UTC, after this PR was opened. That is why real.rs conflicts. On main, finish_two_pass already caches the compute pass blob in memory and on disk (compute_blob_key(&tp.cs, rs, 0), driver_cache::path(&tp.cs, 0)). #1836 also added GRAPHICS_BLOBS (256 MiB), graphics_path, graphics_blob_key (field-by-field state hashing, which avoids the padding problem) and read_pso_cached_blob. After a rebase, the compute half of this PR would be a second cache under a different key for the same blob. What is new is the mesh pass cache, which should go through GRAPHICS_BLOBS and graphics_blob_key rather than a separate hasher (two_pass_identity.rs in #1941), a second pso_cached_blob, and COMPUTE_BLOBS. #902 also keeps slow graphics pipeline blobs on disk.

No measured gain at this head. The fresh-process ranges overlap: 2.10–2.45 s with persistence off and 2.21–2.28 s with it on. The 34× figure is historical and includes warm DXIL and NVIDIA driver caches. A run on AMD, or on NVIDIA with the driver's shader cache cleared, would show whether this cache helps.

Code points:

  1. Shared RAM budget. Mesh blobs share the 512 MiB COMPUTE_BLOBS budget with ordinary compute blobs, and that cache has no eviction. With keep_ram = bytes >= COMPUTE_BLOB_MIN_DXIL || took >= min, nearly every MS+PS pair qualifies, so mesh blobs can crowd out the compute blobs the cache was made for.
  2. Misleading record in the compile log. driver_compile_identified gets the two-pass identity hash as record. That field is documented as the console record's hash that matches [SHADER] lines, so the logged "record" will not match anything.
  3. Removed diagnostic. The "two-pass … PSO gated: …, waited N ms" log is gone. The compile log now prints "huge, ungated here" for these builds and drops the slot wait time.
  4. XCL_PSO_DISK_CACHE_MIN_MS covers only the two-pass path. Ordinary compute keep() still uses KEEP. The variable is not documented in the README.
  5. Weakened assertion in an existing test. compute_blob_tests changes the exact before - 3 assertion to the total == sum invariant. This makes sense with the new concurrent test, but please say why in the description, or keep the exact check by giving that test its own key.
  6. Duplicated test helpers and stale expectations. The e2e re-implements the synthetic container helpers (fssm, xbch, dxil_part, mesh_psv) that already exist in shaders_e2e.rs, gpu/xbox.rs and gpu/recomp/mod.rs. Its tp-cs-* file and counter expectations change once the compute half is rebased onto #1836.
  7. AI use. "Google Antigravity; its model is unrecorded" does not meet CONTRIBUTING's requirement to name the exact model.

What is good: build_two_pass_pso takes at most one cold slot per pair and none for blob attempts. Eviction with Arc::ptr_eq handles another thread's replacement correctly. Owning the partial ID3D12PipelineState on failure is cleaner than the manual Release it replaces. The cross-process replay and corrupt-blob e2e is a strong test.

Suggested path: rebase onto main, drop the compute pass half (or explain why two keys for one blob are wanted), cache the mesh pass through GRAPHICS_BLOBS and graphics_blob_key, and add a measurement where the driver's own cache is cold.

Review written with Claude Code (Claude Opus 5.5); I checked each point against the code.

@JJAutoCompare

Copy link
Copy Markdown

PR #1942 GPU verification

D3D12.X: persist both PSOs for translated mesh and geometry

  • Live refs/pull/1942/head from origin was 024b2e2dc51924965df478fdb4f63fbcae9dc0b2. The assigned slot had no Git checkout, so the tests ran in a clean detached checkout under L:\XclTooling\sol-slot-8\source.
  • The fetched origin/main was 3da2abb81606df622610e009f0430de99aa9881c.
  • git merge-tree --write-tree origin/main HEAD exited 1 with a content conflict in crates/xcl/src/hle/d3d12x/real.rs.

Tested

  • STOR-WINLAB, Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175, DoublePrecisionFloatShaderOps=0, and reported wave range 8–32. The suite logged the Arc A770 real D3D12 backend.
  • Rust 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL 1.9.2609.5. Unoptimized dev/test profiles with debug info and incremental compilation disabled.
  • cargo build --workspace and cargo test --workspace --no-run both exited 0 outside the GPU lock.
  • cargo test -p xcl --lib two_pass_identity::tests -- --show-output reported 4 passed, 0 failed, 0 ignored. cargo test -p xcl --lib two_pass_blob_tests -- --show-output reported 2 passed, 0 failed, 0 ignored. Neither run emitted skip markers.
  • Under Invoke-ArcTest.ps1, cargo test -p xcl --test gpu_two_pass_cache_e2e -- --show-output reported 1 passed, 0 failed, 0 ignored, and no skip markers. It exercised cache disablement, cold writes, warm reuse, corrupt blob recovery, and draw readback for translated mesh and geometry. It also passed in the full suite.
  • One locked pass of cargo test --workspace --no-fail-fast -- --test-threads=4 --show-output exited 101. Totals across 20 test binaries and one doctest target were 958 reported passed, 25 failed, 45 ignored. There were 25 SKIPPED markers across 15 binary/test pairs. The markers include skipped subcases and represent gaps in coverage.
  • Skip reasons comprised 17 native wave64 subcases, 3 refused wave32 per-lane forms, and one each for tiled-resource tier below 2, no heap windows, missing d3d12SDKLayers.dll, unavailable D3D12 debug layer, and inability to disable the driver cache. The complete marker list is in pr1942-suite-skips.txt. Full output is in pr1942-suite.log.

Failures

Twenty library tests failed at CreateComputePipelineState with 0x80070057 (invalid parameter).

  • gpu::dxil::fuzz_tests: fuzz_validate_and_gpu_0 (seed 2), fuzz_validate_and_gpu_1 (506), fuzz_validate_and_gpu_2 (1003), fuzz_validate_and_gpu_3 (1501).
  • gpu::dxil::ops_tests: doubles_match_cpu, groupshared_barrier_and_atomics_run.
  • gpu::dxil::round_tests: gpu_direct_f32_round_modes_dynamic_and_denormals, gpu_direct_f32_round_modes_static.
  • gpu::recomp::lower_dxil::tests: f64_programs_on_the_gpu.
  • gpu::recomp::tests: gpu_clamp_and_omod_per_instruction, gpu_f64_class_compare, gpu_f64_compares_with_nan, gpu_f64_literal_high_word, gpu_f64_math_random, gpu_f64_roots, gpu_f64_rounding_and_conversions, gpu_float_compares_random, gpu_frexp_f64_exp_and_mant, gpu_ldexp_f64, gpu_rndne_f64.

Four other library tests under gpu::recomp::tests failed assertions.

  • In gpu_nonfused_mad_and_mac_prevent_fma_contraction, the fused overflow control returned infinity.
  • In gpu_ps_image_sample_offset_implicit_lod_between_mips, pixel (0, 0) was 25.609375, expected 26.
  • In gpu_valu_16_and_64_bit, the lane 0 v_add_f16 high-half preservation assertion failed.
  • In gpu_wave64_ps_whole_wave_reductions, pixel 0 returned [2, 217, 2], expected [2, 216, 2].

The e2e.rs test test_title_runs_and_game_folder_is_untouched failed the dynamic depth bias check for RSSetDepthBiasX(-1000.5). The top-right pixel was blue, expected green.

Not tested

  • No suite run on origin/main for comparison. The baseline behavior of the failing tests remains unverified.
  • No retail-title scripts/smoke.ps1 runs on main or the PR head. No AMD or NVIDIA adapter coverage.

AI use

  • T3 Code / Codex (gpt-6.2-sol) ran the build and tests and drafted this report. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified the counts against pr1942-suite.log and published this report.
All 25 GPU SKIPPED entries
SKIPPED gpu::recomp::lower::tests::a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower::tests::the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::a_per_lane_2d_or_3d_group_runs_on_the_gpu: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu: f16 packed, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 compares, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 conversions, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer arithmetic, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 rounding, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu: integer carries, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 transcendentals, wave64: no wave64
SKIPPED gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu: f32 three-source, wave64: no wave64
SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
SKIPPED shaders::tests::pso_measurement_compiles_an_exact_synthetic_record: cannot disable the driver cache (Windows Developer Mode is required): The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)
SKIPPED placed_title_textures_share_vram_and_preserve_pixels: tiled tier < 2
SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
SKIPPED heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows
SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

@DavidM1911

Copy link
Copy Markdown
Contributor

Verification on RTX 3060 Ti (Windows 11): merge conflict with current main — needs a rebase before it can be tested.

@throny throny added the goal:world-load Bears on the retail title getting past world loading label Nov 25, 2026
JR-Wiederkehr pushed a commit to JR-Wiederkehr/xcl that referenced this pull request Nov 25, 2026
…etry

The mesh pass of a two-pass (MS / GS) pipeline had no driver blob on disk:
every run compiled it in the driver again. xcl-dev#1942 keeps both passes under
keys of the stream's contents (pointers replaced by what they point to),
the static samplers, the window count and the adapter and driver.

Conflicts with the graphics blob cache resolved: the graphics cache and
remember_compute_blob stay as they were; the two-pass passes use xcl-dev#1942's
build_two_pass_pso (its compute pass key replaces the DXIL-only name, so
compute-pass files of earlier runs are compiled once more); its blob
reader is the existing read_pso_cached_blob; the gate keeps the commit
headroom of the program's size. driver_compile is left to the tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JR-Wiederkehr pushed a commit to JR-Wiederkehr/xcl that referenced this pull request Nov 25, 2026
…s driver blobs named after adapter, driver and windows)
Keep NGG compute and passthrough mesh graphics driver blobs under independent canonical keys. Retry rejected entries under the existing cold-compile policy and validate fresh-process replay, per-pass corruption, and GPU output on synthetic inputs.

Part of xcl-dev#1269. Related to xcl-dev#1836 and xcl-dev#902.

Assisted-by: OpenAI Codex (GPT-6)
@ZekkJJ
ZekkJJ force-pushed the upstream/two-pass-driver-cache branch from 024b2e2 to bdef448 Compare November 26, 2026 08:32
@ZekkJJ

ZekkJJ commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@gefydev @raylitebull The rebase is at 7ca01644 on current main b49be183. The topology, normalized identity, and compute blob cache already on main are reused. Mesh blobs use the 256 MiB graphics store and the existing graphics disk path. The shared retention policy handles a slow mesh compile even if there is no room in the graphics RAM store. The two-pass admission takes one cold turn at most, reports its wait, and skips admission for warm hits. The identity hash no longer appears as a console shader record.

The original 250 ms retention policy remains in production. The small synthetic fixture seeds its entries through a test-only hook. The exact compute-blob accounting assertion remains intact. The parser, shader CLI, and GPU fixtures share the container builders, and the mesh fixture and recompiler test share the mesh PSV builder.

At this exact head on RTX 4060 Laptop (616.56), cargo test --offline --locked -p xcl --test gpu_two_pass_cache_e2e --test shaders_e2e -- --nocapture --test-threads=1 passed 9/9 with zero runtime skips. The cache fixture asserted five fresh-process hits, recovery for either rejected pass, and the expected MS and VS+GS pixel readbacks. The complete debug workspace suite reported 1,436 passed, 0 failed, 47 ignored, and 26 explicit skip markers.

Independent AMD fixture and paired retail smoke remain pending. The local driver-cache-disable probe skipped because Windows Developer Mode is off, so there is no driver-cold speedup claim. Current work used OpenAI Codex (gpt-6.2-sol). The original Google Antigravity model was unrecorded.

@Lum7nt

Lum7nt commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Tested on \7ca016442286780915653fc871acb86fb2a85754\ (\7ca01644, clean PR head on \origin/main\ \�49be183):

  • Hardware / OS / Toolchain: NVIDIA GeForce RTX 3060 12 GB (driver \32.0.15.8142\ / 581.42, wave32), Intel Core i5-10400, Windows 11 (NT \10.0.22631.0),
    ustc 1.100.0\ (\x86_64-pc-windows-msvc), DXC \1.8.2502.11\ (Windows SDK \10.0.26100.0), debug profile, \XCL_ADAPTER=nvidia, Windows Developer Mode off.
  • Focused runs:
    • \cargo test -p xcl --lib two_pass_identity::tests -- --nocapture: 4 passed, 0 failed, 0 ignored (\1332 filtered out)
    • \cargo test -p xcl --test shaders_e2e -- --nocapture --test-threads=1: 8 passed, 0 failed, 0 ignored
    • \cargo test -p xcl --test gpu_two_pass_cache_e2e -- --nocapture --test-threads=1: 0 passed, 1 failed, 0 ignored — \ wo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs\ panicked at \crates/xcl/tests/gpu_two_pass_cache_e2e.rs:526:5\ (\left: (0, 0, 0), right: (0, 0, 2)). On this driver (\581.42), \ID3D12PipelineState::GetCachedBlob()\ fails (\HRESULT(0x8000FFFF)), so 0 driver blobs are persisted.
  • Workspace suite (\cargo build --workspace\ then \cargo test --workspace --no-fail-fast -- --test-threads=4): 1420 passed, 6 failed, 47 ignored (1307 lib + 113 integration; vs \origin/main\ \�49be183: 1420 passed, 5 failed, 47 ignored).
    • The 6 failures are \ wo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs\ plus the 5 pre-existing \GetCachedBlob()\ failures on this driver/setup (also present on \�49be183: \passthrough_mesh_stream_accepts_a_triangle_driver_blob, \split_compute_program_prebuilds_and_caches_chain_pieces, \split_compute_prefers_the_offline_whole_pipeline, \offline_compute_pipeline_is_reused_by_a_second_process, \offline_split_compute_pipeline_is_reused_by_a_second_process).
    • \SKIPPED\ checks: 20
      o wave64, 3 per-lane gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426\ refusals (\V_MUL_F16, \V_PK_MUL_F16, \V_CVT_F16_F32), 2 no D3D12 debug layer (
      o d3d12SDKLayers.dll), 1 \cannot disable the driver cache (0x887A002D), 1
      o heap windows.

Not tested

  • Drivers where \GetCachedBlob()\ succeeds on this machine, AMD / Intel GPUs, Linux / Wine, \XCL_SAMPLE_*\ tests (unset), and \scripts/smoke.ps1\ (no retail title folder here).

AI use

  • Antigravity (\Gemini 4 Hydrogen (Low)) checked out \7ca01644, ran the focused and workspace suites on this machine, and drafted this report.

Keep successfully created PSOs usable when driver blob export fails or returns empty data. Validate the rendering and actual cache effects of the cold fixture before skipping the optional replay stage.

Assisted-by: OpenAI Codex (gpt-6.2-sol)
@ZekkJJ

ZekkJJ commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Lum7nt I fast-forwarded the branch to f9c9df37. A failed or empty blob export is a cache miss. Both successfully created PSOs stay usable. The fixture separately queries export support on the live mesh and compute PSOs, checks the cache writes the driver can support, and verifies the MS and VS+GS pixel readbacks. On a driver that cannot export all fixture PSOs, it reports only the disk replay portion as skipped.

On this head, all four focused mesh-stream unit tests passed, including mocks for E_UNEXPECTED and an empty blob. The RTX 4060 Laptop fixture passed with zero skips and retained the full fresh-process replay and corruption coverage. The five baseline failures you identified are outside this patch.

The full debug workspace suite on RTX 4060 Laptop reported 1438 passed, 0 failed, and 47 ignored. Clean exact-head retail smoke is in progress.

@Prime1997 Prime1997 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read-through and GPU run of f9c9df3. An AI tool (Claude Code) helped with the reading and ran the tests; each point below was checked against the code at this head.

Test results (RTX 3060 Ti 8 GB, NVIDIA 617.14 / 32.0.16.1714, i5-10400, Windows 11 26200.9974, rustc 1.100.0, DXC 1.9.2609.5, debug, isolated cache and data roots):

  • gpu_two_pass_cache_e2e: 1 passed, 0 failed. The full disk replay half ran here, because this driver does export cached blobs. That complements the earlier RTX 3060 report on 581.42 where the driver did not.
  • shaders_e2e: 8 passed, 0 failed.
  • The two new unit tests pass.

Points for the author

  1. keep_compute_blob checks for the key and then inserts in a separate step (the same check-then-insert shape is already on main; this PR only adds a condition to it). Two threads building the same pipeline can both pass the check, and the byte total is then counted twice for one stored blob. The cap gets hit early rather than anything breaking, but taking the entry once (or subtracting the replaced size) would keep the total honest.
  2. pub fn force_driver_cache_fixture_retention() is a process-wide switch in non-test code. It is #[doc(hidden)], and #[cfg(test)] is not available because the caller is an integration test, but a cargo feature that only the e2e enables, or an environment check, would stop anything else from flipping it.
  3. The on-disk names here are gfx-<hash>-<bytes>.pso, while the nvidia-dev line (which already carries the earlier head 024b2e2 through e6657c0) writes tp-ms- / tp-cs-. After this lands, people coming from that line will have two sets of files for the same pipelines. Worth a sentence in the description, or a one-time cleanup.
  4. Nothing bounds the disk directory. Not new with this PR, but the new entries make it grow faster, so a note or a follow-up issue would help.

None of these block the change as far as I can tell. Point 1 predates this PR and could be a follow-up.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

goal:world-load Bears on the retail title getting past world loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants