Repository navigation
Conversation
|
RTX 5070 12 GB, NVIDIA 616.92, native Windows: A fresh process accepted the graphics PSO blob with a different sampler creation order, then returned the point-sampled value for a static linear sampler. With the PR's disk guard enabled, the same process setup returned the expected linear value on all 16 pixels. At head
The driver accepted the 2,274-byte blob in both replay controls. The fixture uses XCL's native adapter vendor lookup, ABI static sampler root signatures, AI use: OpenAI Codex (GPT-6) designed and ran the native fixture and prepared this report. |
|
Ran the static-sampler disk-blob 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. Both new tests pass: a graphics pipeline with static samplers skips the cross-process disk blob on NVIDIA, and other vendors keep theirs. The thread already has RTX 5070, 3090 and 5090 reports; this adds a 5070 Ti datapoint for the two focused tests. It is a pipeline-selection test, not a rendered tone-map comparison. The PR is a draft pending the sampler-prelude experiment. Not tested: a retail title, the tone-map contour A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, 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. |
4c20b5c to
2fd98c3
Compare
2fd98c3 to
9f81b66
Compare
…atic samplers on NVIDIA On NVIDIA, a graphics pipeline created from what another process made loses the linear filtering of its static samplers. The retail title's tone map samples its 33^3 LUTs through such a sampler, so one made that way sampled them as point: contour bands (xcl-dev#505). On main "what another process made" is two things: the driver blobs on disk (CachedPSO, written by the preparation workers or an earlier run) and the pipeline library the preparation stores. claudetools-gh measured it (RTX 5070 Ti, 621.01): levels per channel on a flat wall went from 10/10/13 with gaps (tone map from a disk blob) to 23/16/12 without gaps when the same pipeline was built without the blob or by the game process itself, and to 24/17/13 with this rule (xcl-dev#505 7235526172). They pointed out that the pipeline library is the same cross-process case (xcl-dev#505 7236405511). One policy, graphics_artifacts_across (blob_across_processes on the adapter's DXGI VendorId, adapter_vendor, per LUID; asked only for a pipeline with static samplers): such a pipeline takes and keeps neither on NVIDIA (0x10DE), nor on an adapter whose vendor is not known (fail closed: a failed lookup is not cached, the next pipeline asks again). Blobs kept in this process's memory still apply. This covers XCL's own artifacts of translated graphics pipelines; a title's own native pipeline library or cached PSO passes as before. - translated_graphics_pso_once: no library load or store, no disk blob; - finish_two_pass: the mesh pass (with its pixel samplers): no library load or store, no disk blob; - the stream graphics path: no disk blob. Compute pipelines (compute_container, the two-pass compute pass, the preparation's compute pipelines) are not covered here. Tests: the policy (NVIDIA, other vendors, an adapter not known), and a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process: with a library entry and a blob file of a translated graphics pipeline there, the desc path's load and disk path (graphics_from_other_processes) and its store (keep_for_other_processes) take and keep them only where the policy lets them across. Old gfx-*.pso files and library entries stay on disk; builds without this keep loading them. Ported from claudetools-gh's fix in xcl-dev#505 7235526172 and their note in 7236405511. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9f81b66 to
395d6bc
Compare
|
No open or merged PR makes the same change. #902 (same area, title similar) adds a disk cache for slow graphics blobs and has no vendor or static-sampler gating. Among the other #505 PRs, none skips the pipeline library and driver blobs for static-sampler pipelines on NVIDIA. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
Review (head 395d6bc, diff read, not a merge-check;
Fine: the gate covers all three graphics paths (desc, both AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Checked: xcl-dev#3169 is open at 395d6bc on main 9dfbe3e; REPO-TRACKER and related xcl-dev#505 behavior.
|
Follow-up review (head 656ede2, since 395d6bc, diff read, not a merge-check):
New:
Fine: the gate still covers the desc path, the two-pass mesh pass and the stream path; the desc path keeps its old AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
Keep the static-sampler policy on every translated graphics artifact path, exercise both allow and deny behavior for pipeline-library and disk lookups, and report cumulative guarded pipeline counts. Share the per-adapter vendor and driver identity lookup. Compute pipelines remain outside the policy.
|
Follow-up review (head ea02c3e, since 656ede2, diff read, not a merge-check; checks red):
New:
AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
On NVIDIA, a translated graphics pipeline created from what another process made loses the linear filtering of its static samplers. In the retail title the tone map samples its 33³ LUTs through such a sampler, so a tone map made that way sampled them as point, giving contour bands (#505). On main, "what another process made" is two XCL artifacts:
CachedPSO), written by the preparation workers or an earlier run;This keeps translated graphics pipelines with static samplers (and the mesh pass of two-pass ones) off both on NVIDIA, and on an adapter whose vendor is not known (fail closed). Blobs this process keeps in memory still apply. It covers XCL's own artifacts of translated pipelines only: a title's own native pipeline library or cached PSO passes as before.
The cause and the fix are claudetools-gh's (#505 7235526172: RTX 5070 Ti, 621.01: levels and gaps per channel on a flat wall 10/2, 10/2, 13/1 with the tone map from a disk blob; 23/0, 16/0, 12/0 built without it or by the game process; 24/0, 17/0, 13/0 with the fix). They pointed out that the pipeline library is the same cross-process case (7236405511).
Part of #505.
What is in it (one commit,
hle/d3d12x/real.rs)graphics_artifacts_across(device, static_samplers): a pipeline without static samplers always may take and keep what another process made. One with them may only on a known adapter that is not NVIDIA's (blob_across_processes, DXGI VendorId 0x10DE).adapter_vendorasks the device's adapter by LUID, and only for a pipeline with static samplers.translated_graphics_pso_once(descriptions and description-compatible streams): no library load or store, no disk blob. The library load and the disk path go throughgraphics_from_other_processes, the store throughkeep_for_other_processes;finish_two_pass: the mesh pass (with its pixel shader's samplers): no library load or store, no disk blob. The NGG compute pass keeps the compute rules as they are;a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process: with an entry of XCL's pipeline library and a blob file of a translated graphics pipeline there (a real device), the desc path's load and disk path take them, and its store keeps a new entry, only where the policy lets them across. It fails if a gate in those functions is removed.pipeline_library::load_graphics, so it is behind the same gate (a guarded pipeline is neither imported from the last run's library nor stored into this one). D3D12.X: record ordered pipeline first use #3175's first-use manifest only logs names and holds no pipeline: nothing to gate there. D3D12.X: strip Xbox root signature flags for PC and honor FORCE_MEMORY_BASED_ABI #3244 changes the title's root signatures only, not the translated pipelines this gates.Tested
656ede245a743aab5c91941cef821966c364b21f: the lib suite was rerun with--test-threads=1: 2,728 passed, 5 failed, 31 ignored; e2e: 4 passed, 1 failed. The five failures weregpu_direct_image_get_resinfo_d16, the threestream_recheck_*tests, andtest_title_runs_and_game_folder_is_untouched(e2e failure: Invalid bitcode signature). The 5090 retry pair is below.53e85fb1(this head9f81b661; the previous head2fd98c3cwas on mainfa204595). The PR checks' earlier failures were 4pipeline_library/warm_librarytests of that older base, which pass on53e85fb1.9f81b661:cargo test -p xcl --lib --no-run, debug and release: both build.cargo test -p xcl --lib -- another_process --nocapture --test-threads=1: 2 passed, 0 failed, 0 ignored, 2684 filtered out.-- other_vendors_keep_their_disk_blobs: 1 passed, 0 failed, 0 ignored, 2685 filtered out.cargo test --workspace --no-fail-fast -- --test-threads=4: 2787 passed, 6 failed, 49 ignored. SKIPPED: 31 (22 no wave64, 3 refused per-lane forms, 3 no debug layer, 2 no heap windows, 1 driver cache cannot be disabled). The run leaves out the 3uma_drivercoherent-window remake tests that kill the lib binary on 621.x.53e85fb1on the same machine: 2784 passed, 6 failed, 49 ignored, 31 SKIPPED. The 6 are main's own:title_textures::tests::placed_title_textures_share_vram_and_preserve_pixels, the 3stream_recheck_*tests,standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline(main's test does not count the stand-in pipeline's deferred release, Related: Tests: account for deferred stand-in pipeline release #3484), e2etest_title_runs_and_game_folder_is_untouched. This head adds 3 passing tests and changes no other outcome.Regression run
main-full-d8bd), the same frozen accepted-terms profile (r18-terms:gamesaveandpls/settings), and held Enter. The first D3D12.X: no disk driver blob for a graphics pipeline with static samplers on NVIDIA #3169 attempt in gate-batch-q ended at 287.5 s with the known two-pass mesh fault (DRED page fault at GPU VA 0, window 10); this is the one retry, completed without removals. The script-made blocks below are verbatim.Main
9dfbe3ea:This head
656ede24(retry):Not tested
graphics_from_other_processes,keep_for_other_processes), nottranslated_graphics_pso_onceitself (that needs a console shader pair with a static sampler, which no test here builds).finish_two_pass(the mesh pass) andtranslated_graphics_stream_onceinline their own guards instead of calling those functions, so a guard removed there would not fail the test: they are tested only through the desc helpers' policy.AI use
🤖 Generated with Claude Code
https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR