Repository navigation
Conversation
…dev#3001, 0 ports, 6 keepers archived
|
Tested Clean
Three passed, zero failed, ignored, or skipped. The integration test and CLI hashes held before, under, and after both lock acquisitions. Not tested Split dispatch readback, startup precompile, live compute-stream path, full suite and retail smoke. AI use T3 Code / Codex ( Tested — CPU follow-up at Windows 11 x64 build 26200.9974, Ryzen 7 3800X, Rust 1.100.1 MSVC. I compared the three standalone recipe helpers byte-for-byte with Git blob
In one process, two recipe paths tracked flags independently for the same record. After renaming A's recipe file within its directory, observing flag 8 recreated the file with one row. Repeating the observation kept that single row. B retained its own rows and parsed as Not tested D3D12, GPU execution, real driver blobs, pipeline integration, sharing violations, concurrent writers, cross-process persistence, retail smoke, and the full workspace suite. AI use T3 Code through the Codex harness ( |
|
A transient sharing violation can make
The recorder inserts the tuple into AI-assisted verification with OpenAI Codex (GPT-6). |
|
Tested PR #3001 ( Unit & GPU E2E tests
Smoke check (
|
|
Smoke pair for Regression run, head
This PR's head Tested
Not tested
AI use
|
|
Update for head Update for head
No AMD run (listed as untested), with an RTX 3060 in the same PC: the four new tests pass on both. Tested: pass, at the PR head
Drivers: RX 9070 XT (RDNA4) 32.0.32029.2010, RTX 3060 32.0.16.1088. I didn't check whether the split test builds native or split wave64 on the RX 9070 XT, so this doesn't claim native wave64 coverage. Not tested: retail packs / AI use: Claude Code (Claude Opus 5.5) ran the tests on this machine and wrote this report. |
|
Huge thanks everyone ( Updates pushed
Re-verified locally (Windows 11, RTX 4060 Laptop GPU / Intel UHD)
(AI disclosure: Antigravity (Gemini 4) assisted with resolving the merge conflict, writing the |
|
Merged latest Re-verified locally on Windows 11 (
(Conflict resolution and local test commands assisted by Antigravity (Gemini 4). Note: still no retail title available here for an |
|
Ran the compute PSO flags cache tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The Not tested: AMD and native wave64 hardware, a paired smoke run, the full workspace suite, release profile, a retail title, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
bmjask
left a comment
There was a problem hiding this comment.
The cache-key mismatch is real and the targeted whole/split round-trip tests are strong. I found no concrete defect in recording and replaying nonzero compute PSO flags.
The branch currently conflicts and the required current-head retail smoke is missing. Please rebase, rerun the end-to-end flag round trip on the rebased head, and add exact-head main/PR smoke evidence before merge.
Reviewed at fd53bc6 with Codex (GPT-5).
fd53bc6 to
a20ec00
Compare
|
@bmjask Thanks for the review! Rebased
Re-ran the test suites on the rebased head
Note: I still don't have a retail title set up here to generate the paired (Rebase and local test verification assisted by Antigravity (Gemini 4).) |
3eafef1 to
9f02920
Compare
|
No other PR addresses #2995. #2515 keeps the title's flags in the runtime's cache key, but the offline descriptor still uses AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
9f02920 to
4e861ec
Compare
|
@Foniass Thanks for the triage and good catch! Addressed both points and rebased cleanly onto
Re-verified locally on
(Follow-up edits and local verification assisted by Antigravity (Gemini 4).) |
|
Follow-up review (head 4e861ec, since 9f02920, diff read, not a merge-check; checks red):
New:
Fine: the runtime records flags only after the driver accepts the PSO, with the same AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Record driver-accepted nonzero D3D12_PIPELINE_STATE_FLAGS for translated console compute PSOs in a compute-pso-flags.txt sidecar next to the DXIL cache, and replay those observed flag variants during offline precompile and startup preparation so cached driver blobs match the runtime key. - Load observed_flags once per Pipelines instance (reused by precompile, milestone.rs, and pso_corpus.rs without per-shader disk re-reads). - Only mark (record, flags) seen in memory after writeln! succeeds, and check SEEN via map.get(path) on the hot path without per-call path.exists() syscalls or PathBuf allocations. Reported-by: ettehn
4e861ec to
d78e190
Compare
|
@Foniass Fair points — updated at
Re-verified locally on
(Follow-up test, commit-message edit, and local verification assisted by Antigravity (Gemini 4). Still no retail title locally for paired |
|
Follow-up review (head d78e190, since 4e861ec, diff read, not a merge-check; checks red):
New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Fixes #2995.
What is in it
Offline
xcl shaders --precompile --pipelinesand startup shader preparation previously built compute driver blobs only withFlags = 0, so runtime translated compute PSOs created with nonzeroD3D12_PIPELINE_STATE_FLAGS(such as4or8) missed the offline cache becausedriver_cache::name_forincludes the flags suffix.crates/xcl/src/hle/d3d12x/real.rs:<DXIL cache>/compute-pso-flags.txt(<record:016x> <flags:x>, deduplicated, besideused-pipelines.txt) from both whole (compute_container) and split (dispatch_chain::build) success paths intranslated_compute_pso_oncewhenXCL_PSO_DISK_CACHEis enabled.driver_cache::tests::compute_flags_recipe_records_dedups_and_parses_nonzero_flags.crates/xcl/src/shaders.rs:compute-pso-flags.txtduringprecompile(both CLI--precompile --pipelinesand startupprepare_for_launch) and prebuildsFlags = 0plus every recorded nonzero-flag variant under its matchingD3D12_COMPUTE_PIPELINE_STATE_DESC.Flagsanddriver_cachekey (whole.pso, split.chain.pso, and startup whole chain fallback).flags_refused) so an adapter-specific recorded flag (e.g. from WARP) never aborts startup preparation on another GPU.shaders::pipeline_cap_tests::nonzero_flags_compute_pipeline_is_cached_and_reused_under_flags_key.crates/xcl/tests/gpu_compute_e2e.rs:offline_compute_pipeline_reuses_recorded_nonzero_flags(runtime recordsFlags = 4and8→ wipedriver/→ offline--precompile --pipelinesbuilds-0.pso,-4.pso,-8.pso→ fresh runtime process hits both withdriver_cache_stats == (2, 0, 0)and passes all 1,536 readback words).offline_split_compute_pipeline_reuses_recorded_nonzero_flags(same round-trip for split.chain.psopieces withFlags = 4, verifyingdriver_cache_stats == (pieces, 0, 0)).README.md:compute-pso-flags.txtand the coverage limit for cold shader-only inputs before any runtime observation.Tested
32.0.16.2140) + Intel(R) UHD Graphics (driver32.0.101.7092), Intel Core i5-14500HX,rustc 1.100.0(debug), DXC1.9.2602.17XCL_ADAPTER=NVIDIA cargo test --workspace --locked --no-fail-fast -- --test-threads=4: 1,462 passed, 0 failed, 47 ignored (29SKIPPEDlines: wave64-only, debug-layer, heap-window opt-ins)cargo test --locked -p xcl --lib driver_cache::tests::: 5 passed, 0 failedXCL_ADAPTER=NVIDIAandXCL_ADAPTER=Intelcargo test --locked -p xcl --lib shaders::pipeline_cap_tests:: -- --test-threads=1: 4 passed, 0 failed on both adaptersXCL_ADAPTER=NVIDIA cargo test --locked -p xcl --test gpu_compute_e2e -- --test-threads=1: 9 passed, 0 failed (1 skipped:heap_window_out_of_memory_falls_back_to_the_switch_formwithoutXCL_HEAP_WINDOWS=1)Regression run
main (
623d02e4): offline--precompile --pipelineswrites only-0.pso/-0.chain.pso; runtimeFlags = 4andFlags = 8miss the disk cache (as reproduced in #2995).PR (
894ae3be): runtime recordsFlags = 4andFlags = 8intocompute-pso-flags.txt; after clearingdriver/, offline--precompile --pipelineswrites-0.pso,-4.pso, and-8.pso(and matching-0.chain.pso/-4.chain.psosets for split programs), and a fresh runtime process gets 100% disk hits (driver_cache_stats() == (2, 0, 0)whole,(pieces, 0, 0)split) with exact GPU readback.Not tested
xcl-smokeorXCL_SAMPLE_RPFpacks.TOOL_DEBUG = 1) on hardware.AI use