Recompiler: propagate split-wave64 lane-local masks through 64-bit bitwise SALU ops #1102
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1111"
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 zondy1i on 2026-11-24T11:43:37Z.
��Reduces
xcl_x_ballot()cross-half exchanges in split-wave64 (docs/wave64-on-wave32.md) by propagating lane-local mask liveness through 64-bit bitwise SALU ops inx64_masks.rs.Why
x64_masks.rs,v_cmp*and carry outputs (v_add_co_u32/v_sub*_co_u32) already avoid a cross-halfxcl_x_ballot()exchange (xcl_x_ballot_local()) when they feed only per-lane readers (v_cndmask_b32,v_add_co_ci_u32,v_sub*_co_ci_u32).s_and_b64,s_or_b64,s_xor_b64,s_andn2_b64,s_orn2_b64,s_nand_b64,s_nor_b64,s_xnor_b64,s_not_b64,s_mov_b64,s_cselect_b64,s_cmov_b64) before feedingv_cndmask_b32(s_wqm_b64is excluded because it combines 4-lane quads and requires quad helper bits in pixel shaders). Previously,x64_maskstreated every SALU instruction as reading its source SGPR pairs whole, forcingxcl_x_ballot()on all upstream compares even when neither the result mask norsccwas ever read whole.xcl_x_ballot_local()leaves each 32-lane half's own word exact (low dword on half 0, high dword on half 1) and none of these 64-bit lane-wise ops crosses the 32-lane boundary, each half produces its own exact 32-lane result word without exchanging the inputs provided:EXECis always whole-live, so writes toEXECstay exchanged);scc(all excepts_mov_b64/s_cmov_b64/s_cselect_b64),sccis dead afterward (tracked jointly in the backward liveness pass, includingLOOP_GUARDexits and kernel-mode end readback);vccz(251) /execz(252) still markVCC/EXECwhole-live.What is in it
crates/xcl/src/gpu/recomp/x64_masks.rs: tracksccliveness alongside whole-live SGPRs (reads_scc, conservativewrites_sccmatchingemit.rs,lane_wise_salu64, andflow()), propagate non-whole-live masks through even-aligned 64-bit lane-wise SALU ops, update three existing tests that used a deads_mov_b64 s[2:3], vccas a dummy whole-reader, and add 6 unit tests covering bitwise chains, live vs overwrittenscc,s_and_saveexec_b64/EXECwrites,s_cselect_b64/s_cmov_b64,vccz/ odd alignment, andLOOP_GUARDexits readingscc.crates/xcl/src/gpu/recomp/emit.rs: requiren & 1 == 0when emittingxcl_x_ballot_localintoDst::S(n)so low/high half alignment is guaranteed globally.crates/xcl/src/gpu/recomp/tests.rs: add GPU testgpu_split_wave64_bitwise_lane_masksverifying both 0-exchange bitwise mask chains (s_and_b64,s_andn2_b64,s_not_b64,s_or_b64,s_mov_b64,s_cselect_b64�!v_cndmask_b32) and kept exchanges whensccis read (s_and_b64matching upper half only �!s_cselect_b32).Measured impact (RTX 3060 Ti, split-wave64)
xcl_x_ballot()calls drop from 210,324 �! 170,561 ("39,763 exchanges, "18.9%).cs_6_6) and NVIDIA D3D12 PSO compile benchmarks on three retail compute shaders (before384f7f7�! after02d65c8):xcl_x_ballot513 �! 433("15.6%), DXIL834,160 �! 803,648 B("3.7%), DXC23,166 �! 14,804 ms("36.1%), cold PSO28,780 �! 21,316 ms("25.9%).xcl_x_ballot420 �! 370("11.9%), DXIL512,592 �! 494,064 B("3.6%), DXC12,011 �! 8,786 ms("26.9%), cold PSO16,405 �! 11,792 ms("28.1%).xcl_x_ballot135 �! 75("44.4%), DXIL152,752 �! 130,920 B("14.3%), DXC3,455 �! 1,874 ms("45.8%), cold PSO4,106 �! 3,108 ms("24.3%).Tested
x86_64-pc-windows-msvc), debug + release.c29bbad(ontomain0cdc896with#1090):cargo test -p xcl --lib -- gpu::recomp::x64_masks --test-threads=1: 25 passed, 0 failed, 1 ignored (includinguse_plan_matches_fallback_across_all_rdna2_instructionsandblock_liveness_matches_reference_bit_for_bit).cargo test -p xcl --lib -- gpu_split_wave64 --test-threads=1: 7 passed, 0 failed (includinggpu_split_wave64_bitwise_lane_masks).02d65c8: 744 passed, 0 failed, 41 ignored.Regression run
main:
PR:
Not tested
x64_masksonly runs whensplit_wave64is active on wave32-only GPUs or forced viaXCL_SPLIT_WAVE64=1).AI use
xcl_x_ballotconsumers across the shader corpus, designed and implemented thex64_masks.rsscc+ bitwise propagation pass, wrote unit/GPU tests, ran the DXC/PSO benchmarks, and drafted the PR description; all tests, benchmarks, and paired smoke runs were executed locally on the hardware above and the diff was reviewed line by line.Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-24T12:01:22Z.
Ran the mask tests on an NVIDIA Blackwell part at
02d65c8: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.
All six split-wave64 GPU tests pass here, including the new
gpu_split_wave64_bitwise_lane_masks. This adapter has no native wave64, so every wave64 console program runs in the split form and exercises the changed path directly. The author's run was on an Ampere RTX 3060 Ti; this adds a Blackwell part with driver 32.0.16.2124.Not tested: native wave64 (not available on this GPU), RDNA2/RDNA4 and Intel GPUs, Wine, release profile, retail titles.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified.
Imported from ivall/xcl. Originally posted by bjarngard on 2026-11-24T12:45:37Z.
Test report for head
02d65c8(AMD, native wave64)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 744 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:--lib x64_masks22 passed,--lib gpu_split_wave646 passedNot tested: retail titles, benchmarks, RDNA3/RDNA4.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T13:19:38Z.
Wine/RDNA3 datapoint for this fix: merged head
02d65c8onto main47efa2e(lane mergeb97b44d) and ran the forced-split cluster (XCL_SPLIT_WAVE64=1,--test-threads=1, release) for 6 reps, against a plain-main control lane in the same session (3 reps).Aggregate pass counts on this rig:
gpu_split_wave64_waves_diverge- 2/6 on your head, 0/3 controlgpu_split_wave64_local_and_exchanged_masks_in_diverging_waves- 1/6, control 0/3gpu_split_wave64_masks_read_whole_after_partial_writes- 0/6, control 0/3gpu_split_wave64_cross_half_operations- 0/6, control 0/3gpu_split_wave64_lane_local_masks- 6/6 bothNo cure observed on this axis: the exchange cluster from my #772 follow-up stays red, and the odd ok in
waves_divergesits inside the flake band this rig shows for that test. (Your newgpu_split_wave64_bitwise_lane_masksstatus line interleaves with Wine'sCreateDXGIFactory2warning in my capture, so I am not quoting a number for it; it did not error out.)Also worth knowing: this head and #1090 both rewrite
x64_masks.rsand conflict when merged together, so combined behavior is untestable until they reconcile. Full elimination list (not ACO, not a regression, timing-sensitive) is in my #772 comment.Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
Imported from ivall/xcl. Originally posted by testclanker on 2026-11-24T13:50:51Z.
Tested on NVIDIA RTX 5060 Ti (Blackwell, wave32 only, split wave64) at
02d65c8Tested
XCL_SAMPLE_RPFandXCL_SAMPLE_DLLSset.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 744 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu_split_wave64_bitwise_lane_masksran (no SKIPPED line) and passes, as do the other 5gpu_split_wave64_*tests and allx64_masksunit tests.gpu_pso_e2eon the sample pack: 7 passed.Regression run (60 s, networking off, no input). One warm-up run of the PR build came first so that both builds started with a warm DXIL cache (exit 0x0, no removal, no crash). That run compiled 38 shaders main's cache didn't have, so the title runs code this PR changes. Then main and this PR ran back to back. Main is at
47efa2e, 9 commits past this PR's base384f7f7; none of them touchgpu/recomp.main:
this PR:
Frames 102 % of main, peak commit 100.1 % of main.
Not tested: native wave64 (no AMD GPU), a release-build test run, this PR merged onto current
main.AI use: Claude Code (Claude Opus 5.5) ran the builds, tests and smoke runs and wrote this comment.
Imported from ivall/xcl. Originally posted by Cecerw on 2026-11-24T14:09:32Z.
Tested on NVIDIA Ampere (32-lane waves, split wave64): passes
02d65c8(base384f7f7)main930e8b4.\scripts\test.ps1(cargo test --workspace -- --test-threads=4), no local changes; the merge was done locally, no conflictsgpu_split_wave64_bitwise_lane_masks(runs split on this GPU) and the six mask-liveness unit tests (bitwise_mask_chain_for_selector_needs_no_exchange…loop_exit_reading_scc_keeps_exchange_inside_loop): okgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware)Not tested: AMD, any title (no smoke run).
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Imported from ivall/xcl. Originally posted by MiguelMachado-dev on 2026-11-24T18:06:39Z.
I'm stacking two split-wave64 changes on top of this PR. Your commit is cherry-picked onto
main9e3831eunchanged, with your authorship:v_cmpx, even-aligneds_*_saveexec_b64/s_*_wrexec_b64).xcl_x_sync_mask), instead of once per compare.Both build on your
flow()/lane_opand yoursccliveness. Neither changes the logic in your commit. Each of them edits some of your tests, and the reasons are in its description:gpu_split_wave64_bitwise_lane_maskspart 2 now expects local compares plus one exchange at thes_and_b64.On the retail pack (all wave64 CS / MS programs, split form, 4 windows) the exchanged mask writes go 210 324 (
main) → 170 561 (this PR, the same count as in your description) → 153 728 (A) → 138 438 (B, including the 10 473 tree exchanges).AI use: Claude Code (Claude Opus 5.5) wrote both PRs and this comment.
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:08:31Z.
Both AMD (RDNA2 iGPU + RDNA3 Wine) and NVIDIA (RTX 5070 Ti, RTX 5060 Ti, RTX 3060 Ti) test reports look solid on
02d65c8.Remaining before merge:
#1090just merged intomainwith basic-block liveness incrates/xcl/src/gpu/recomp/x64_masks.rs, so please rebase#1111ontomain(foldingflow()/sccliveness onto the block solver) and letBuild and test (Windows, no GPU)run cleanly.Imported from ivall/xcl. Originally posted by zondy1i on 2026-11-25T01:24:18Z.
Rebased onto
main(0cdc896) atc29bbad, foldingInstFlow/sccliveness onto#1090's precomputedUsePlanTableand basic-block liveness solver (blocks without lane-wise 64-bit SALU ops stay O(1) per iteration; blocks with lane-wise ops recompute only when(out, sout, left, sleft)changes). Also excludedS_WQM_B64fromlane_wise_salu64sincex64_masksis now shared with pixel shaders (ballot_px_local), where 4-lane quad WQM still needs quad helper bits.Verified locally on RTX 3060 Ti:
gpu::recomp::x64_masks: 25/25 passed (includinguse_plan_matches_fallback_across_all_rdna2_instructionsandblock_liveness_matches_reference_bit_for_bit).gpu_split_wave64: 7/7 passed (includinggpu_split_wave64_bitwise_lane_masks).c29bbad.(AI use: Antigravity (Gemini 4 Neon) performed the rebase onto
#1090, ran the tests/smoke, and drafted this reply.)Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T01:34:41Z.
Rebased head
c29bbadcleanly foldsInstFlow/sccliveness onto#1090'sUsePlanTableand basic-block solver, excludesS_WQM_B64fromlane_wise_salu64, and passesBuild and test (Windows, no GPU)+PR description(UsePlanTable/ block-reference tests +gpu_split_wave64_bitwise_lane_maskson RTX 3060 Ti).Remaining before merge: one independent AMD (or second-vendor) verification pass on
c29bbadconfirming the rebased#1090integration before merging.upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:21:46Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Raghav314 on 2026-11-25T18:00:30Z.
Test report for #1111 in the direct DXIL path, whose kernel uses the same
x64_masksanalysis (gpu/dxil/kernel.rs:595,x64_masks::by_pc): the driver's cold build of a split-wave64 program is about 9 % shorter.Setup: RTX 4090 24 GB (617.14), Windows 11, Developer Mode on, release.
main68a284awith this PR atc29bbadmerged (no conflicts), plus #1830's--time-formsfor the timing.--time-forms --idx <record> --split 1 --windows 4 --heap --no-hlsl: direct DXIL, split wave64, heap windows; one coldCreateComputePipelineStateper process, with the driver's three implicit caches off (ShaderCacheControl).062468c09af883b9(wave64, split)main76b0a8c7541c6c91(no half exchanges)mainwas under 0.2 s over three processes, so the 1.7–2.1 s is outside it.maininx64_masks.rs(12 hunks across four files,mainhas rewritten the file since), so I could not time them. After a rebase I can run the same three on this program.Not tested: GPU output of the merged tree (no suite run; timing only), AMD, the HLSL path, a title run.
AI use: Claude Code (Claude Opus 5.5) merged the PR, ran the timings and wrote this for @Raghav314.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-26T22:49:19Z.
Tested
Independent run at clean PR head
c29bbad8cafbbfddbb72bb32e93a7e3165aa5d88on Intel Arc A770 (driver 32.0.101.9175), Ryzen 7 3800X, Windows 11 x64 26200.9974, Rust/Cargo 1.100.0 MSVC, DXC/DXIL 1.9.2609.5, debug test profile.Prebuilt with
cargo test --locked -p xcl --lib --no-run --message-format=jsonoutside the GPU mutex. Ran<test-exe> gpu::recomp::tests::gpu_split_wave64_bitwise_lane_masks --exact --nocapture --test-threads=1under the Arc mutex withXCL_ADAPTER=A770.1 passed, 0 failed, 0 ignored and 0 GPU skips (1.86 s). HLSL/DXC split wave64 matched all lane-local results with three local ballots and no cross-half exchanges. The live-SCC case retained two cross-half exchanges and returned
s1 = 77, with both halves’ saved scalar registers in agreement.Not tested
Native wave64, direct DXIL, the workspace suite and retail smoke.
AI use
T3 Code / Codex (gpt-6.2-sol) ran the original verification and summarized the saved results.
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-26T23:09:32Z.
Independent NVIDIA test of #1111 at clean head
c29bbad8. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / driver 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11.cargo test --offline --locked -p xcl --lib gpu::recomp::x64_masks -- --test-threads=1: 25 passed, 0 failed, 1 ignored (a manual benchmark), 0 GPU skips.cargo test --offline --locked -p xcl --lib gpu_split_wave64 -- --test-threads=1: 7 passed, 0 failed, 0 ignored, 0 GPU skips. This includesgpu_split_wave64_bitwise_lane_maskson the RTX 3080 Ti.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4: 1,092 passed, 0 failed, 46 ignored across 20 targets. The log has 23SKIPPEDGPU notices; those are not coverage. The synthetic title e2e test passed.For the workspace run,
XCL_DXIL_CACHEpointed to fresh writable scratch undertarget; noXCL_SAMPLE_*variables were set. I did not run an AMD card, a retail title, or a matched smoke pair, and did not measure compilation time or frame rate.AI use: Codex (GPT-6.2 Sol) selected the current-head test scope, ran and checked these commands, and drafted this report.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-27T06:08:34Z.
NVIDIA and AMD full-suite run, to go with the reports above by JJAutoCompare, thehollowedone, since none of them covers AMD. Tested exact head
c29bbad8(on its base0cdc896).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::dxil::fuzz_tests: 1081 passed, 0 failed, 44 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.gpu_split_wave64_bitwise_lane_masks,bitwise_mask_chain_for_selector_needs_no_exchange,bitwise_mask_with_live_scc_keeps_exchange,bitwise_mask_feeding_whole_read_keeps_exchange,cselect_and_cmov_b64_propagate_lane_masks_and_keep_scc_uniform,vccz_operand_and_odd_alignment_in_bitwise_ops_keep_exchange,loop_exit_reading_scc_keeps_exchange_inside_loop.XCL_ADAPTER=radeon),cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1: 1091 passed, 0 failed, 46 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on mainc2ee10e4too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh, andgpu::dxil::fuzz_testsseeds 70, 545, 1019 and 1507 failCreateComputePipelineStatewithE_OUTOFMEMORYon this card (drivers 616.64 and 621.40). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6). The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-28T11:21:37Z.
merge-check
base:
e429936c10head:
c29bbad8camerge: clean
build:
cargo build --offline --locked -j 4 --workspace-> oktests:
cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4-> 2,132 passed, 10 failed, 48 ignored, 25 GPU skip notices. The same command on clean base -> 2,125 passed, 10 failed, 48 ignored, 25 GPU skip notices. All ten failing test names match the base; the added split-wave64 GPU test ran and passed on the RTX 3080 Ti.review: No merge blocker found in the merged emitter, mask-liveness analysis, and GPU tests. The new analysis keeps whole-mask exchanges for live
scc, whole readers, EXEC writes, and operations needing quad helper bits. A potential odd-aligned 64-bit selector was checked against RDNA2's even-alignment requirement and is not a valid input case.performance: The patch changes one-time shader analysis and generated cross-half exchanges; it adds no per-frame allocation or submission in the inspected runtime path. I did not measure translation time, frame time, or memory on this machine. The author's DXC/PSO measurements are in the PR description.
verdict: safe to merge. This check finds no failure introduced on the current base; the ten local failures are identical on clean main. Maintainers should still account for the project's required gates and their own merge decision.
hardware / tool and model: Windows 11 build 26300; Ryzen 7 9800X3D; NVIDIA RTX 3080 Ti, driver 621.35; rustc 1.99.1 MSVC; Codex (GPT-6.2 Sol) ran the merge, build and both full suites and reviewed the result; Codex (GPT-6.2 Astra) independently audited the mask edge.
Identical failures on merged PR and clean main
dispatch_chain_oversized_loop_matches_wholedispatch_chain_wave32_live_loopsdispatch_chain_wave64_live_loops_and_exchangegpu_heap_flat_reads_match_guarded_and_root_outputconsole_mesh_caches_hlsl_compute_pass_in_memory_and_on_diskgpu_compute_mode_dispatch_abigpu_float_cas_uses_ieee_equalitytest_title_draws_with_a_root_signature_under_the_debug_layertest_title_runs_and_game_folder_is_untouchedtest_title_runs_under_the_debug_layer_with_dredImported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-28T22:02:59Z.
merge-check
base:
7db2f391cehead:
c29bbad8camerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2600 passed, 1 failed, 49 ignored; SKIPPED: 28 (mostly "no wave64", plus "no heap windows", "no GPU_UPLOAD heaps", "no build ahead"); failing:
hle::d3d12x::list_x::tests::cross_queue_wait64_before_signal_does_not_deadlock_submit_thread(E_OUTOFMEMORY 0x8007000E in the parallel run, in a module this PR does not touch; passes 3/3 alone on the merged tree and 3/3 on the base)review: none blocking, after reading the whole diff (
x64_masks.rs, then & 1 == 0check inemit.rs, the tests). The analysis stays conservative.writes_scc_nameonly under-reportssccwriters, which keepsscclive longer, andreads_scc_*over-reports readers. A lane-wise op's sources become whole-live when its destination is live or its writtensccis live. EXEC is always in the live-out set, so an op that writes EXEC keeps its sources exchanged. Odd-aligned, SDWA or non-64-bit operands, andvccz/execzreads, fall back to whole reads. Checked on this card (split wave64, wave32 only):gpu_split_wave64_bitwise_lane_masksandgpu::recomp::x64_masks::(26 tests) pass 3/3, and the GPU test ran (not SKIPPED). With thesets_scc && soutterm disabled in all four solvers (scratch),gpu_split_wave64_bitwise_lane_masks,bitwise_mask_with_live_scc_keeps_exchangeandcselect_and_cmov_b64_propagate_lane_masks_and_keep_scc_uniformfail. Not run: a title, native wave64 (AMD), pixel shaders on a GPU (the same analysis drivesballot_px_local).performance: default path. Fewer ballot exchanges in split-wave64 programs whose bitwise SALU mask chains only feed per-lane reads, so less work per such shader. The liveness pass does a little more work at translation (exact per-instruction transfer only in blocks with a lane-wise op). Reasoned, not measured.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug / Claude Code (Claude Opus 5.5)
Imported from ivall/xcl. Originally posted by throny on 2026-11-29T23:06:19Z.
@zondy1i this has two merge checks at
c29bbad8, but it conflicts withmainsince today's merges (mergeable: CONFLICTING), and thePR descriptioncheck is red. Once it is rebased I can run the merge check again on the new head.For anyone working near it: this changes the HLSL split-wave64 form (
recomp/emit.rs,x64_masks.rs). The folded wave64 form I am building for C57 on #3011 is in the direct DXIL translator (gpu/dxil) and does not touch these files, so the two do not conflict.AI use: Claude Code (Claude Opus 5.5) wrote this.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:50:37Z.
Triage (#1607) – head
c29bbad#1596 and #1597 share many added lines with this PR because both are stacked on it: each carries a cherry-pick of this PR's commit (
ce0eeec) and adds its own top commit. They are not duplicates.Main's x64_masks.rs (block-level liveness from #1090,
76ae8962) has no lane-wise SALU propagation or SCC liveness, so the change is not on main. The branch conflicts with those main commits.I did not see a problem in the diff. Each half's own dword stays correct through the bitwise b64 ops,
s_wqm_b64is left out, odd pairs and vccz/execz force a whole read, and an op whosesccis live keeps its sources whole.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.