D3D12.X: translated compute pipelines are made with node mask 0 #1368
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!1368
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1368"
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?
@pr1sm-dev on GitHub · 2026-11-24 15:19 UTC · original
pr1sm-dev:nodemask-zero→main· +82 −0 · 2 files · 1 commits · openA title whose compute pipeline descriptions carry a node mask does not take the driver blobs
xcl shaders --precompile --pipelineskeeps for it (#744): it refuses each one, removes the file and compiles the program again. This makes the translated compute pipeline withNodeMask = 0, as the offline pass does. Follow-up to #744; the report is in https://github.com/ivall/xcl/pull/744 (comments of 2026-11-24 14:02Z and 14:23Z).Cause: under Wine the blobs are vkd3d-proton's, and it refuses a cached blob whose description hash differs from the pipeline's (
d3d12_cached_pipeline_state_validate: PSO compatibility hash mismatch; for a compute pipeline that hash isNodeMaskandFlags). The offline pass makes its pipelines with mask 0, a retail title passes 1, and the blob file name covers only the DXIL andFlags, so both forms share one file and each side refuses the other's. XCL drives one adapter, where masks 0 and 1 mean the same.What is in it
crates/xcl/src/hle/d3d12x/real.rs:translated_compute_psosetscopy.NodeMask = 0before the pipeline is made (one line and its comment).crates/xcl/tests/gpu_compute_e2e.rs:a_title_pipeline_with_a_node_mask_takes_the_offline_blobruns the offline pass on a program, then makes the same pipeline through the backend hook withNodeMask = 1; the pass's blob has to stay as written.Tested
x86_64-pc-windows-gnu. No Windows machine: everything below ran under Wine.930e8b4(the blob is removed, one "PSO compatibility hash mismatch" from vkd3d-proton).930e8b4and on main + this change, empty scratch cache (XCL_DXIL_CACHE): the title ran 100 s and built 8 compute pipelines; its blobs were removed and the offline pass wrote 8 blobs for those 8 programs; the title then ran 100 s on those files. main: 8 mismatch lines, 0 pipelines made from blobs, 0 of 8 files left. This change: 0 mismatch lines, 8 pipelines made from blobs, 8 files left.cargo test --workspace --release --no-run, each run under Wine with--test-threads=4, on this commit and on main930e8b4:e2e::test_title_runs_and_game_folder_is_untouched,pls_quota::disk_free_space_ex_reports_pls_quota,predication_e2e::set_predication_buffer_state_and_kickoff); the one more that passes is the new test.oklines, 0FAILED, 20 ignored; main: 524, 0, 20). I have not found where it stops, so I cannot give a total.SKIPPEDon this adapter:gpu_wave32_program_in_wave64_hardwareandgpu_geometry_wave32_prefix_count_over_a_mask(no wave64).Regression run
scripts/linux/smoke.shof #257 (the Linux port ofscripts/smoke.ps1, not merged) under Wine, not withsmoke.ps1. A retail title, 120 s, default settings, A / DOWN pressed every 1.5 s from 12 s.main:
PR:
Not tested
scripts/smoke.ps1andscripts/test.ps1not run. On a native D3D12 driver the title already took the offline blobs in the reports on #744, so there this should change nothing; I could not check that.Credits
offline_compute_pipeline_is_reused_by_a_second_process.NodeMask = 0on both sides a runtime process takes an offline blob, which is what this change relies on.AI use
@futurepro62 on GitHub · 2026-11-24 15:24 UTC · original · edited 2026-11-24 15:27 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
0074749(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_title_pipeline_with_a_node_mask_takes_the_offline_blob.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.Not tested
AI use
@anes66 on GitHub · 2026-11-24 16:28 UTC · original
Native Windows/NVIDIA check of
0074749a9678a697455c48a95f7c4f746ccd602emerged locally ontomain b7aa9f3bd212088e0d927439284dc5ed325ce3c7(no merge conflicts). This is a scoped compatibility result, not a green full-suite report.Tested
cargo test --locked -p xcl --test gpu_compute_e2e a_title_pipeline_with_a_node_mask_takes_the_offline_blob -- --exact --show-output: 1 passed / 0 failed, no skips. The log reports1 compute pipelines made from the driver's blob of an earlier run; the offline file stays unchanged.cargo build --locked --workspace -j 4: passed.cargo test --locked --workspace --no-fail-fast -j 4 -- --test-threads=4 --show-output: first run 769 passed / 2 failed / 41 ignored, repeat 768 / 3 / 41. Your new test passed in both.The first full run failed
list_x::tests::rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hang(DXGI_ERROR_DEVICE_REMOVED) andmid_list_write64_wait64_split_avoids_cycle_and_reuses_spares(E_OUTOFMEMORY) while creating queues. Both passed individually. The repeat failedwrite_buffer_immediate_on_open_existing_heap_visible_to_cpu,rotating_queue_self_deadlock_and_non_monotonic_rescue_do_not_hangandtimestamps_outside_unified_memory_land_after_the_queue.Both full runs printed five explicit skips: the two native-wave64 tests,
gpu_placed_console_depth_target_with_clear_value,rejected_create_shader_cache_session_falls_back_to_working_in_memory_session, and the placed-texture test (no device). Samples were unset. Finally, with the runtime change removed and library source matching main,cargo test --locked -p xcl --lib -- --test-threads=4 --show-outputpassed 722 / 0 / 21, two wave64 skips. This is a library-only comparison, not a clean full workspace rerun; it does not establish why the full runs failed or rule out a regression.Not tested: your exact head on its old base, release, Wine/vkd3d-proton, AMD/Intel/native wave64, or retail title smoke. The local integration was not committed or published as a merge-ready branch. Temporary control edits were removed; the original merge diff was saved before returning to a clean checkout.
AI use: Codex (GPT-6; exact variant unavailable) prepared the local integration, ran the tests and controls, and wrote this report.
@DavidM1911 on GitHub · 2026-11-24 16:33 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored.Thanks!
@voiceovarian1-max on GitHub · 2026-11-25 08:07 UTC · original
Linux + NVIDIA test: with this change the title takes the offline pass's blobs (18 of 286 before, 275 of 288 after).
Setup: RTX 4070 Ti 12 GB (NVIDIA 620.73.04), i7-14700K, 31 GB, CachyOS kernel 7.3.5, Proton Experimental's Wine (wine-11.0), vkd3d-proton v3.1 +
scripts/linux/vkd3d-proton-xcl.patch,VKD3D_CONFIG=ignore_shared_fence. Release build forx86_64-pc-windows-gnu. Not this PR's head: a local stack (main9e3831e+ #1315/#1316 + #867 + #871 + #877 + #1321 + #684 + #640 + #605 + #495 + #1420867d307), with and without this PR'scopy.NodeMask = 0line from0074749(the test was not applied).Before each run:
xcl shaders shaders.rpf --precompile --pipelines --only csfor the 815 compute programs the title had used (814 pipelines made, 1 left out by a local size cap). Retail 1.0.2.1, Series X profile,XCL_PSO_WAIT_MS=10 XCL_COHERENT_MB=1024 XCL_PAGE_BUDGET_MB=4096, A throughXCL_PRESS_A_AT.driverfolderVKD3D_CONFIG=ignore_shared_fence,pipeline_library_log VKD3D_DEBUG=infologgedd3d12_cached_pipeline_state_validate: PSO compatibility hash mismatch7 times; with it, 0 times in 140 s, and XCL's "a driver blob kept on disk was refused" line is gone.Not tested: this PR's test and head as a whole, Windows, AMD.
AI use: Claude Code (Claude Fable 5.2) ran the runs and wrote this report; posted with the account owner's approval.
@xpatfussy69x on GitHub · 2026-11-25 11:16 UTC · original
Test report for head
0074749as pushed (not merged onto currentmain) – Windows, MSVC build, NVIDIA wave32.Tested
.\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 752 passed, 0 failed, 41 ignoreda_title_pipeline_with_a_node_mask_takes_the_offline_blob(tests/gpu_compute_e2e.rs) ran and passed on the native D3D12 driverXCL_SAMPLE_*data set (game-data tests not run)Not tested
scripts/smoke.ps1pair on a title (so nothing here on how many offline blobs a title takes on Windows); AMD GPUs / native wave64; release build; the head merged onto currentmainAI use
@4usphs on GitHub · 2026-11-25 11:52 UTC · original
AMD run on the exact head
0074749(0074749a96), as pushed on its base930e8b4(not merged onto currentmain), on two AMD adapters with native 64-lane waves: RDNA4 and the console's generation, RDNA2.Tested
XCL_TRANSLATED_CACHE=0; adapter picked withXCL_ADAPTER.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:gfx1036), driver 32.0.21045.29003: 752 passed, 0 failed, 41 ignoredSKIPPEDtests on either adapter.a_title_pipeline_with_a_node_mask_takes_the_offline_blobruns and passes on both adapters.Not tested
AI use
@DLampos on GitHub · 2026-11-25 19:06 UTC · original
Independent confirmation on Linux. This is not a run of this PR's commit: I made the same change locally on
mainatc160d86, settingcopy.NodeMask = 0before the driver call intranslated_compute_pso_once. I did not build this PR's branch.The retail title I run (build 1.0.2.1) passes NodeMask 1 in its compute pipeline descriptions. vkd3d-proton keys a cached pipeline on the node mask: for compute, its PSO_COMPAT check covers NodeMask and Flags. So every blob that
xcl shaders --precompile --only cs --pipelineshad kept was refused with E_INVALIDARG, XCL removed the file, and the program was compiled again in the game.Tested
x86_64-pc-windows-gnu(release), running under Proton Experimental's Wine 11 with DXVK's dxgi and vkd3d-proton. vkd3d-proton was built from Proton's commit 2576c0b4 with two local patches for XCL's vtable swap.XCL_DIRECT_DXIL=1and blobs from the same precompile run. The first run removed the blobs it refused, so the two sets are not identical.Notes for vkd3d-proton users
VKD3D_SHADER_CACHE_PATH=0. With vkd3d-proton's own disk cache (the default),GetCachedBlobreturns a 112-byte key, and the pipeline also has to be in the driver's cache.VKD3D_CONFIG=no_descriptor_heapfixed this: reloading 137 such pipelines, 4 at a time, went from 133 s to 2 s.Not tested
AI use
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.