D3D12.X: separate compute driver blobs by static sampler state #1420
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1420
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1420"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@venglov on GitHub · 2026-11-24 15:47 UTC · original
venglov:codex/compute-driver-cache-samplers→main· +44 −16 · 3 files · 1 commits · openTwo translated compute pipelines can have identical DXIL and flags while using different static samplers in their root signatures. The disk cache assigned them the same filename, so either pipeline could overwrite or discard the other pipeline’s blob. This is a follow-up to #744.
What is in it
real.rsand the offline precompiler inshaders.rs.Tested
cargo check --workspace --tests --locked --offline --target x86_64-pc-windows-msvcpassed with cross-target SDK headers.Regression run
Pending Windows GPU and retail-title runs for main and this PR’s head.
Not tested
AI use
@anes66 on GitHub · 2026-11-24 16:15 UTC · original · edited 2026-11-24 16:44 UTC
Native Windows/MSVC follow-up for
7490d75a17e950aab1ed49c5155543ba5a3be437, merged onto mainb7aa9f3bd212088e0d927439284dc5ed325ce3c7.Tested integration 873dd8e retains your runtime/test changes. Only README needed a merge resolution: both the DRED note and your cache note are kept. Temporary control instrumentation was removed before the final build and suite.
Tested
cargo test --locked -p xcl --lib hle::d3d12x::real::driver_cache::tests -- --test-threads=1 --show-output: 5 passed / 0 failed, includingidentical_dxil_with_different_static_samplers_uses_separate_files.name()to use the legacy DXIL/length/flags branch even for nonempty samplers, keeping the new signature. The sampler regression fails on the identical filename5752dfa9a5b8154b-7-0.pso. This is a legacy-key simulation, not a build of unmodified main.cargo build --locked --workspace -j 4: passed.cargo test --locked --workspace --no-fail-fast -j 4 -- --test-threads=4 --show-output: 771 passed / 0 failed / 41 ignored, exit 0. The existing cross-process offline compute-cache GPU test passed. Two native-wave64 skips:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.XCL_SAMPLE_*unset; their counted passes are not title coverage.Not tested: your head on its old base, release, AMD/Intel/native wave64, title smoke, or actual driver-blob reuse/rendered output for two different nonempty sampler states. The new key regression is a unit test; the existing GPU reuse fixture has no static samplers. This supplies the missing native build/suite check, not the required main/head title regression run.
AI use: Codex (GPT-6; exact variant unavailable) integrated the patch, ran the checks and negative control, and prepared this report. Your feature code was not rewritten.
Rebase check: current head
867d307572af1e5ec5c980902d611a1c3df2be2ehas identical files to the tested873dd8eintegration except README bullet order. Rust code and tests are unchanged. I compared the trees; I did not rerun the suite on the new commit.Combined #759 / #1420 native cache check
83ac24b combines the #759 integration/cache/help fixes (
ffc40b3) with #1420's rebased867d307on mainb7aa9f3. The clean merge initially failed E0061: the journal warmer still supplied two arguments to the new three-argumentdriver_cache::path. It now passes&compiled.samplers.A new synthetic native-driver regression goes beyond the filename unit test:
The focused test
journal_warmer_reuses_offline_blobs_for_distinct_static_samplerspassed 1 / 0, no skips. A control that supplied an empty sampler slice to the warmer made the code compile but failed its cache-hit assertion. The corrected caller passed. The shared journal encoder is the existing synthetic fixture, factored for reuse.Full results on the RTX 3060 / Windows 10 / Rust 1.100.0 / DXC 1.9 / Agility 1.620.2 setup:
cargo test --locked --workspace --no-fail-fast -j 4 -- --test-threads=1 --show-output: 780 passed / 0 failed / 41 ignored, exit 0, two native-wave64 skips.--test-threads=4: 777 / 3 / 41, five explicit skips. Failures werelist_x::tests::write_buffer_immediate_on_open_existing_heap_visible_to_cpu,rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang, andtimestamps_outside_unified_memory_land_after_the_queue, at queue creation. Additional no-device skips were the console depth-target test, shader-cache-session fallback test and placed-texture test. The cause of these parallel failures is unresolved; this is not a green default-suite claim.Samples were unset. The new regression compiles pipelines and checks cache loading; it does not dispatch the sampler shaders or compare rendered output. No retail title smoke, Wine, AMD/Intel, native wave64, or real driver update. #1368 is not part of this integration.
AI use: Codex (GPT-6; exact variant unavailable) prepared the integration and fixture, reproduced the API/caller failures, ran validation and wrote this update.
@DavidM1911 on GitHub · 2026-11-24 17:13 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main(b7aa9f3) inREADME.md— needs a rebase before it can be tested.@raylitebull on GitHub · 2026-11-25 02:06 UTC · original
Please rebase #1420\ onto current \main\ to clear the \CONFLICTING\ state (e.g. \README.md), update the \Regression run\ section with a matching \xcl-smoke v1\ pair so \PR description\ passes, and obtain an AMD verification pass on the rebased head.
@Toons29 on GitHub · 2026-11-25 03:29 UTC · original
Regression run of
867d3075on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.@voiceovarian1-max on GitHub · 2026-11-25 08:07 UTC · original
Linux + NVIDIA check of
867d307on a local stack: a second offline pass reuses every pipeline of the first.Setup: RTX 4070 Ti 12 GB (NVIDIA 620.73.04), i7-14700K, CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton v3.1 +
scripts/linux/vkd3d-proton-xcl.patch. Release,x86_64-pc-windows-gnu. Tree:main9e3831e+ #1315/#1316 + #867 + #871 + #877 + #1321 + #684 + #640 + #605 + #495 + this PR's diff (shaders.rshunk applied by hand: its context had moved).xcl shaders shaders.rpf --precompile --pipelines --only cs, restricted by a local name filter to the retail pack's records whose name holdscloth_(9 compute pipelines), 6 pipeline threads, vkd3d-proton's and NVIDIA's own caches off so that only XCL's blobs can make a second pass fast:After the first pass 6 of the 9 files carry the sampler suffix (
<hash>-<len>-<flags>-<sampler hash>.pso); the other 3 have no static samplers and keep the old name.I have no clean before/after of the collision itself on this tree: the title's refusals I saw at the time turned out to be the node mask (#1368).
Not tested: the PR's head as a whole, its unit tests, Windows, AMD.
AI use: Claude Code (Claude Fable 5.2) ran the runs and wrote this report; posted with the account owner's approval.
@DavidM1911 on GitHub · 2026-11-26 00:26 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.github-bot referenced this pull request2026-11-26 12:40:17 +00:00
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.