Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Note
Not tested
AI use
|
GonZiin
left a comment
There was a problem hiding this comment.
The translated-shader cache can persist a transient DXC error and prevent a retry. The lower DXIL cache excludes a failed compiler invocation such as Compile: … (0x8007000E). The outer translated::cached_in receives the formatted error, treats it as cacheable and writes an .err marker. The next call for that shader returns the saved error before calling the translator or compiler.
Tested
- Windows 11 Pro build 26300, Ryzen 7 7800X3D, Rust 1.100.0 MSVC, debug. I ran
cargo test -p xcl --lib review_a_transient_dxc_error_allows_retry -- --nocapturewith one temporary probe appended topso.rsin an isolated checkout. The probe injects the formatted DXC out-of-memory error on the first call and supplies a successful compile result on the second. - Base
b7aa9f3bd212088e0d927439284dc5ed325ce3c7retried once and returned the successful result. Head451ae68ed5e1493b663a65064cb4b6976efdd097returned the original error with zero retry calls.
The outer cache should persist deterministic translator refusals and let the lower cache handle compiler errors, or carry retryability through the result type. This would keep transient or invalid-output errors retryable even after the outer cache sees them.
Not tested
Real system memory exhaustion, GPU behavior and retail titles. The probe injected the error at the translated-cache boundary.
AI use
Codex (gpt-6.2-sol) reviewed the error path, wrote and ran the probe, and drafted this review.
|
Duplicate note: #1472 (opened two minutes earlier) also fixes #1412, in the same two files ( AI use: Claude Code (Claude Opus 5.5) compared the diffs and wrote this. |
451ae68 to
3db920c
Compare
|
Thanks @GonZiin for the catch! Updated ranslated::is_cacheable_error in 3db920c so errors formatted by the lower DXIL cache (DXIL cache ...) are only cached when DXC itself deterministically rejected the HLSL (: dxc: ), keeping transient failures like Compile: ... (0x8007000E) or invalid-container outputs retryable. Added unit test coverage for both cases in ranslated_cache_caches_refusals_by_capability_identity and reran scripts/smoke.ps1 on 3db920c. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Ran on the PR's head (3db920c): RTX 5070 Laptop (Blackwell, driver 616.87), cargo build --workspace: ok One design question: every raw error from compile() that starts with "dxc: " is Not tested: the runtime effect across repeated boots (no retail pack here), |
…lity Adapt Alp Pesen's xcl-dev#1474 to staging 7209e87. Preserve direct backend and adapter identities. Carry typed failures across translation, compilation and caching. Persist only deterministic refusals. Ignore legacy rejection markers. Bypass caches for shader diagnostic overrides. Original-commit: 3db920c Assisted-by: Antigravity (Gemini 4 Neon) Assisted-by: Codex (gpt-6.2-astra)
|
Test report at the current head
(This PR is in duplicate group D7 with #1472 in #1607.) AI-assisted (Claude Code). Synthetic tests only. |
ad4fbe5 to
7f97ba3
Compare
|
Two errors that can be transient are kept as refusals at
The refusal tests in
Test 1 calls Not tested: a real DXC internal error, a title. I can post the tests. AI use: Claude Code (Claude Opus 5.5) read the change, wrote and ran the tests; checked with Claude Fable 5.2. |
…lity
Persist deterministic negative cache markers (.err) alongside positive shader cache entries so repeated boots do not re-lower refused programs or re-invoke DXC on deterministically failing HLSL:
- dxc.rs: cache deterministic DXC compiler rejections (raw error starting with 'dxc: ') in {key:016x}.err (keyed by crate version, DXC toolchain identity, profile, entry, and HLSL source). Subsequent runs return the identical error text with zero DXC invocations. Transient/missing-DLL errors and cached_only deferrals are never cached.
- pso.rs: cache translator refusals and compile errors in translated/v2/{ident:016x}/...err (keyed by XCL_TRANSLATOR_SOURCE_ID, DXC toolchain identity, blob hashes/length, stage, sampler_base, windows, and split_wave64). Updating translator sources, DXC DLLs, or wave mode automatically invalidates prior markers; debug/capability env overrides bypass the cache via cache_allowed.
Fixes xcl-dev#1412.
Assisted-by: Antigravity (Gemini 4 Neon)
7f97ba3 to
f51058f
Compare
|
Thanks @pvfreis for the detailed review and tests! All three points are fixed in
Verified on AMD RX 6800 ( |
|
Independent check of f51058f on Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC and DXC 1.8.2502.11. The clean head built with I also exercised the production DXC disk cache from four fresh test processes with one synthetic HLSL input and a private cache directory. The first process made one compiler attempt and wrote one refusal marker. The next process replayed the diagnostic in normal and cached-only modes with zero compiler attempts and no deferral. Corrected HLSL compiled once and passed DXIL validation. Deleting the refusal marker made the original input reach DXC again. All four runs passed with zero skips using Synthetic inputs only. No retail run or induced DXC out-of-memory failure. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote the temporary fixture, ran the tests and drafted this report. |
|
Test report for Tested
Regression run (retail title, main: this PR: Not tested
AI use: Claude Code with Claude Opus 5.5 ran the build, the suite and the regression run and wrote this report at my request. |
Fixes #1412.
Repeated boots re-attempt the same deterministic translator refusals and DXC compile errors on every run because only successful
.dxil/ translated blobs are persisted on disk.What is in it
.err) for deterministic translator refusals incrates/xcl/src/gpu/recomp/pso.rs(translated::cached_inandtranslated::cached_rerouted, keyed by capability/source/rerouted identity so any translator, DXC, wave-mode, or direct-DXIL update invalidates them).: dxc:, excludingInternal Compiler error:) incrates/xcl/src/gpu/recomp/dxc.rswhile keeping transient failures (E_OUTOFMEMORY0x8007000EfromCompileorGetStatus,Internal Compiler error:, cross-process mutex lock errorsDXIL cache: ..., missing/olddxcompiler.dll,cached_onlydeferrals, invalid DXIL containers) uncached and retryable.pso.rs(including directtranslated::cached_reroutedcoverage) anddxc.rscovering capability/version invalidation,cached_onlydeferral isolation, cross-process lock errors, and transient vs deterministic DXC errors.Tested
rustc 1.100.0, DXC1.9.2602.17.cargo test -p xcl --lib gpu::recomp::pso: 22 passed, 0 failed, 1 ignored, 0 skipped.cargo test -p xcl --lib gpu::recomp::dxc: 16 passed, 0 failed, 0 ignored, 0 skipped.06c9f55.Not tested
06c9f55.Regression run
AI use
@GonZiinand@pvfreison transient DXC/lock/internal errors andcached_reroutedtest coverage, rebased onto06c9f55, ran the tests and pairedscripts/smoke.ps1runs, and drafted this PR description.