Shaders: key HLSL dumps by program within each FSSM #1747
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1757"
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?
Imported from ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T20:17:39Z.
Include the program offset in the dump key when an FSSM holds multiple programs, so the programs produce distinct files and can each be selected by hash.
What is in it
crates/xcl/src/shaders.rsassigns per-program keys.crates/xcl/tests/shaders_e2e.rscovers dumping and selecting both programs in a synthetic FSSM.Tested
9a21dc0, the regression passed on Windows using a standalone fixture compiled withrustc1.100.0. The fixture extracted the changed code from the published commit and used synthetic shader data.Regression run
mainand this PR’s commit.Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:20:21Z.
Full-suite run, since this PR has no test report yet. Tested exact head
9a21dc0(on its base85e3826).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 874 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.shaders_dump_and_select_individual_programs_in_one_fssm.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 876 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1327Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-24T21:43:25Z.
Regression run of
9a21dc0aon 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, 99 % 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.upstream-sync referenced this pull request2026-11-24 22:06:54 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:04:42Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T08:01:02Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:40:36Z.
Triage (#1607) – head
9a21dc0No open or merged PR makes the same change; on main
Aggstill names every program of an FSSM{name} FSSM#{fi}, so several programs in one FSSM share oneXCL_DUMP_HLSLfile and oneXCL_RECOMP_ONLYhash.Adding
@ offsetonly when an FSSM has more than one program keeps existing single-program hashes stable. The PR conflicts with main, where thatrc.addcall now also passesfssm_wave64; it needs a rebase.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.