Recompiler: skip VGPR scans without relative indexing #1529
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1539"
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 philip-roy-jones on 2026-11-24T17:24:23Z.
Part of #1269. Only vector moves and swaps indexed through M0 need the highest VGPR number used by a shader. The translator was enumerating every register operand to find it, including for the 48 of 54 sampled programs that used only fixed vector registers.
What is in it
Tested
08db8020d323bf478964fcc586152cce54959cfc. The published head is88452400fe19f2cb2a03b73ac82fb98e80cc083c.git range-diffmarks the old and new patches equivalent. Windows 11 Pro 25H2 (26200.9974), Ryzen 7 7700X, Radeon RX 580 (31.0.21925.1001), Rust 1.100.0 MSVC, DXC/validator 1.9.2609.5.cargo build --locked --workspace,cargo build --locked --release -p xclandcargo test --locked --workspace --no-runpassed on both.xcl-gpu run cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputexited 101 on both revisions. The RX 580 driver (amdxc64.dll) ended the library process at0xc0000005. The remaining workspace targets ran, and the full library inventory was rerun in matching four-thread batches with the crashing case isolated. Main totaled 1,342 passed, 86 failed, 47 ignored, 1 process crash and the PR 1,342 passed, 87 failed, 47 ignored, 1 process crash. 67 distinct explicit skips are included in each pass total. Both crashed ongpu::dxil::lanes::ps_ballot_tests::gpu_direct_ps_masks_hold_helper_lanes_on_triangle_edges. The extra head failure washle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit(407 command-list segments, expected 421). It passed in three isolated runs and three repeats of its original four-thread test group on each revision..\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedsuccessfully. Main reported 1,428 passed and the PR 1,429 passed, each with 0 failed, 47 ignored, 1 filtered and 211 distinct explicit skip names. PR job · Main jobFocused RX 580 command
All 67 explicit RX 580 skip names on this main and head
Previous verification on `
5773e5bb` against `50a9fdef`5773e5bb08c3e230a9f2e4686db6ad261ed45cc9against mergedmainat50a9fdef81cb796b8756a31defb0648301d002ce. Windows 11 Pro 25H2 build 26200.9974, Ryzen 7 7700X, Radeon RX 580 (31.0.21925.1001), Rust 1.100.0 MSVC, DXC/validator 1.9.2609.5.cargo build --locked --workspace(debug) andcargo build --locked --release -p xclpassed on both.xcl-gpu run cargo test --locked -p xcl --lib -- <filters> --test-threads=1 --nocapture, the four original VGPR tests and two upstream tests (compute_globallycoherent_only_when_needed,gpu_ps_readfirstlane_loop_on_a_primitive_edge_ends) all passed on RX 580, zero skipped. Release builds emitted byte-identical HLSL for 36 fixtures covering fixed registers, all five indexed opcodes, late high reads and writes, and native wave32, native wave64 and split wave64 (1,930,662 bytes).xcl-gpu run cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 1,170 passed, 119 failed, 46 ignored on main and 1,171 passed, 119 failed, 46 ignored on the head. Both returned 101 with the same 119 failures and 78 distinct RX 580/runtime skips included in the pass totals. 110 failures on each revision reported device suspension (0x887A0005).xcl-gpu run .\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedstopped in the library on both revisions with WARP and Windows SDK DXC 1.8.2502.11. The testgpu::recomp::lower_dxil::tests::a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barriercounted three group barriers and expected one. Main reported 1,219 passed and the head 1,220 passed, with one failure and 26 ignored on each.lower_dxil.rs:1155. PR job · Merged main jobAll 78 tests that printed SKIPPED on the RX 580 (both revisions)
Measurements and independent reports from the original PR revision
ab24c38aa5db171c10a697d5292a78852f93b18dagainstmainat9e3831e. Radeon RX 580 (31.0.21925.1001), Ryzen 7 7700X, Windows 11 Pro 26200.9974, Rust 1.100.0 MSVC and DXC 1.9.2609.5.recomp::translateon 54 retail VS/PS/CS programs (28,379 instructions, four memory windows). Median time per batch went from 86.63 to 83.84 ms (3.2% less). Each build ran 36 timed batches across four processes, after warmup. Selection used the first six distinct, translatable programs per stage in each native-code size band of 64–511, 512–4095 and 4096–16383 bytes. A separate allocator-counting build recorded 29,369 fewer allocations/reallocations per batch. All 7,571,624 HLSL bytes matched, including on the six programs using relative indexing. Six coldconsole_to_dxil_inbuilds also produced byte-identical DXIL. Timing covers RDNA2-to-HLSL translation.cargo test -p xcl --lib -- relative_vgpr_limit_is_only_needed_for_indexed_vector_registers v_swaprel_b32_uses_the_m0_relative_switch gpu_v_swaprel_b32 gpu_packed_math_dots_movrel --test-threads=1 --nocapturereported 4 passed, 0 failed, 0 ignored, 0 skipped. The new regression failed with the unconditional scan onb7aa9f3.cargo build --workspacesucceeded on both.cargo test --workspace --no-fail-fast -- --test-threads=4lost the library test process on both. Running the remaining cases completed the inventory. Main reported 754 passing, the PR 755. Both had 21 failures, 1 process crash and 41 ignored. The same 22 cases were unsuccessful, and three reported passes on each were hardware skips (two mesh, one heap windows)..\scripts\test.ps1 --skip test_title_runs_and_game_folder_is_untouchedpassed locally with WARP and Windows SDK DXC 1.8.2502.11. It reported 776 passed (215 explicit skips), 0 failed, 41 ignored and 1 filtered.ab24c38on an RTX 3090 and checked the five relative-indexing opcodes and the two uses ofmax_vgpr. Independent RTX 3090 test reportab24c38on AMD integrated graphics. Cargo reported 777 passes (one hardware skip), 0 failures and 41 ignored. All 18 native-wave64 dispatches produced the expected register values. AMD test reportmainon an RTX 3060 Ti. The library suite passed single-threaded. They saw the same intermittent parallel failure on unmodifiedmain. The report gives no merge SHA or test name. RTX 3060 Ti reportRegression run
xcl-gpu run .\scripts\smoke.ps1 -Game <retail folder> -Title Retail -Seconds 60 -Xcl .\target\release\xcl.exe -OutDir <run directory>. All 60-second runs used the source-built offline release loader, the same title and RX 580, fresh title data, no input and the HLSL path. Both arms setXCL_DXC_THREADS=1and disabled async PSOs, PSO preload, the translated-shader cache and the PSO disk cache.The first pair ran the head first from matching copies of the previous 1,044-entry DXIL cache. Main showed 448 frames at 11,057 MB peak and the head showed 14 at 10,662 MB, with 0/0 device removals and 0/0 crashes (main/head). A main-first repeat reset both arms to the same initial cache. Main showed 381 frames at 10,945 MB and the head showed 58 at 10,724 MB, with 0/0 removals and 0/0 crashes. The head fell below 80% of main’s frames in both orders from this seed. The cause of the startup delay remains open.
Both revised builds populated new cache entries during the first pair. The blocks below use two byte-verified copies of main’s resulting 1,928-entry cache. All 823 entries newly produced by both first runs matched byte for byte.
Main
PR head
Previous smoke on `
50a9fdef` and `5773e5bb`, including the default-worker memory and device failuresxcl-gpu run .\scripts\smoke.ps1 -Game <retail folder> -Title Retail -Seconds 60 -Xcl .\target\release\xcl.exe. All runs used clean release builds, the RX 580, no network or input, fresh title data, and the HLSL path withXCL_ASYNC_PSO=0,XCL_PSO_PRELOAD=0,XCL_TRANSLATED_CACHE=0andXCL_PSO_DISK_CACHE=0.With the default compiler worker count and 952 identical initial DXIL cache entries, main showed 1,636 frames at 16,597 MB peak and head showed 1,651 at 22,980 MB. Both exited cleanly, but the head exceeded the 125% memory limit. All 74 new cache entries produced by both runs matched byte for byte. Repeating in reverse order from identical copies of their combined 1,044-entry cache produced the same driver error (
0x887a0020) on both revisions, at 46.6 s on the head and 59.0 s on main.The runs below started from that same 1,044-entry cache with
XCL_DXC_THREADS=1on both revisions to limit concurrent compiler work.Main
PR head
Not tested
XCL_SAMPLE_*variables were unset for the workspace suite. The retail translation timings above were measured on the original revision.AI use
gpt-6.2-astra) at maximum reasoning effort (max) to write the change and regression test, run the comparisons and prepare this PR.gpt-6.2-astra) resolved the rebase, reviewed the full diff on Philip’s behalf, ran the checks and updated the description. The dispatch did not expose its reasoning effort.gpt-6.2-astra) at maximum reasoning effort (max), rebased the existing commit after #2420, reviewed the full diff on Philip’s behalf, ran the comparisons and updated the evidence.Imported from ivall/xcl. Originally posted by MatyEjsr on 2026-11-24T17:45:38Z.
Updated NVIDIA check for the new head
88452400fe19f2cb2a03b73ac82fb98e80cc083c(base08db802). It replaces my earlier report onab24c38.git range-diffshows the same patch; only the hunk context inrecomp/mod.rsmoved. The earlier report raised no defects, so there was nothing to re-check. Reports by others onab24c38: nnonno91 ran the four targeted tests with zero skips on native-wave64 AMD hardware; DavidM1911 saw one intermittent failure under parallel scheduling on the new head, clean at--test-threads=1and tracked in #1978. I saw no such failure at 8 threads. I did not re-run the AMD check on this head; the patch is the same perrange-diff.Tested
cargo test --workspace -j 8 -- --test-threads=8: 1430 passed, 0 failed, 47 ignored. Thexcllib alone: 1305 passed, 0 failed, 27 ignored.main8b957bec(no conflicts), same command: 1447 passed, 0 failed, 47 ignored. The lib alone: 1319 passed, 0 failed, 27 ignored. No flaky failures at 8 threads in either run.no wave64:dispatch_chain_native_wave64_builds_whole, fourrecomp::lowerGPU comparisons, sevenrecomp::lower_dxilprogram tests,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows.the title under the debug layer(no d3d12SDKLayers.dll) anduploads_start_from_each_subresources_state(no D3D12 debug layer).cargo test -p xcl --lib -- relative_vgpr_limit_is_only_needed_for_indexed_vector_registers v_swaprel_b32_uses_the_m0_relative_switch gpu_v_swaprel_b32 gpu_packed_math_dots_movrel gpu_scalar_relative_moves movrel --test-threads=1: 6 passed, 0 failed, 0 SKIPPED.Em::max_vgpris still read only byEm::movrelandEm::swaprel, on this head, on currentmainand onnvidia-dev, so merging brings in no new reader.relative_vgpr_limitmatches all fiveV_MOVREL*/V_SWAPREL_B32opcodes inrdna2_spec.rs.mainornvidia-dev, and the PR also merges cleanly intonvidia-dev(merge only, not built).Regression run (RTX 3090, clean release builds of the PR's base and head, 60 s on the same retail title, shared DXIL cache)
Base
PR head
Frames -1.1% and peak commit +0.1%, one run each. Both trees drew only with translated pipelines (0 skipped).
Not tested
nvidia-devmerge, andXCL_SAMPLE_*tests (unset). The smoke run does not show whether the retail title uses any of the five indexed opcodes.AI use
max_vgprreaders on the head,mainandnvidia-dev, ran the builds, the test suites and the paired smoke runs on the RTX 3090, and wrote this report. Audited by claude-sonnet-5-5-medium, which checked the live PR head, state and mergeability and the feedback since my earlier report.Imported from ivall/xcl. Originally posted by nnonno91 on 2026-11-24T18:20:55Z.
Independent native-wave64 AMD check of
ab24c38aa5db171c10a697d5292a78852f93b18d.Tested
cargo build --workspace --lockedpassed.cargo test --locked -p xcl --lib -- relative_vgpr_limit_is_only_needed_for_indexed_vector_registers v_swaprel_b32 gpu_packed_math_dots_movrel --test-threads=1 --nocapturepassed all four tests with zero skips.cargo test --workspace --locked --no-fail-fast -- --test-threads=4 --show-outputreported 777 passed, 0 failed, and 41 ignored. One reported GPU skip (heap_window_out_of_memory_falls_back_to_the_switch_form, no heap windows). The bundled title passed.cargo test --locked -p xcl --test relative_vgpr_probe -- --exact indexed_registers_preserve_high_operands --nocapture --test-threads=1, generated a fixedV_MOV_B32control plus all five indexed move/swap variants. Every program referencedv61after the instruction under test. All 18 HLSL pairs matched byte for byte on base9e3831e1f570d3646e53ab753b19ec07eb8f1485and the PR across wave32, native wave64 and split wave64.M0settings. The checks compared the written registers against expected values on all 64 lanes, including indexed reads, writes, and swaps targetingv61. All 18 dispatches matched.Not tested
Retail shaders, retail title runs, release builds, and translation timings. The output comparison used six synthetic programs.
AI use
OpenAI Codex (GPT-6 family, exact variant unavailable) wrote the temporary probe, ran the checks, and drafted this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T19:12:55Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T05:40:23Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: 1 failure under parallel scheduling; clean on--test-threads=1rerun (1305 passed, 0 failed, 27 ignored, 81s). Intermittent single-test flake — tracked in #1978.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T23:13:10Z.
Tested head
88452400fe19f2cb2a03b73ac82fb98e80cc083c, merge-base08db8020d323bf478964fcc586152cce54959cfc, RTX 3070 (Ampere) driver 616.56, Windows 11, rustc 1.100.0cargo test -p xcl --lib -- relative_vgpr_limit_is_only_needed_for_indexed_vector_registers v_swaprel_b32 gpu_packed_math_dots_movrel --test-threads=1 --nocapture, 3 runs on head: 4 passed, 0 failed (each run), 0 skips.tests.rshunk (the new test) applied alone to the merge-base does not compile:error[E0425]: cannot find functionrelative_vgpr_limitin modulesuper`` (the function is added by the PR). Without the hunk, the other 3 tests on the merge-base: 3 passed, 0 failed.cargo test -p xcl --lib -- --test-threads=4: head 1305 passed, 0 failed, 27 ignored; merge-base 1304 passed, 0 failed, 27 ignored.Not tested: retail title.
AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T01:06:47Z.
Independent desktop NVIDIA verification of PR #1539 at head
88452400fe19f2cb2a03b73ac82fb98e80cc083c(1commit; exact parent & merge-base:08db8020d323bf478964fcc586152cce54959cfc, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted release tests & build (
88452400)cargo test --release -p xcl --lib relative_vgpr_limit_is_only_needed_for_indexed_vector_registers -- --nocapture(3 consecutive runs)1 passed; 0 failed; 0 ignored; 1331 filtered out× 3 (0.00s× 3)cargo test --release -p xcl --lib gpu::recomp::emit::(3 consecutive runs)4 passed; 0 failed; 0 ignored; 1328 filtered out× 3 (0.24s,0.23s,0.23s,0skipped)cargo test --release -p xcl --lib gpu::recomp:: -- --test-threads=4(3 consecutive runs)399 passed; 0 failed; 20 ignored; 913 filtered out× 3 (6.40s,6.41s,6.65s;376executed on RTX 4060 +23expected Wave32-only/env skips)cargo build --release -p xcl1m 07s, exit0,0new warnings)Paired quiet 60 s retail smoke (
title: 29640639)Exact parent & merge-base (
08db8020d323bf478964fcc586152cce54959cfc, cached baseline on the same machine):PR #1539 (
88452400fe19f2cb2a03b73ac82fb98e80cc083c):Runtime log observations (
xcl.log)9223log lines,0[ERROR]/ device-removal / panic lines.19639 draws with translated pipelines (0 skipped, 0 with PC pipelines), 1024 dispatches (0 skipped); last memory sample14011 MB committed by the process; video memory 6115 MB local, 4683 MB non-local.Limits of coverage
relative_vgpr_limit_is_only_needed_for_indexed_vector_registers(3/3),gpu::recomp::emit::(4/4× 3), andgpu::recomp::(376executed +23expected Wave32-only/env skips × 3 on desktop RTX 4060).title: 29640639and confirms zero runtime regression rather than benchmarking cold shader-recompilation time (frame-count delta vs. cached parent reflects single-run startup variance, not this PR).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by ClosetPie107 on 2026-11-27T12:51:45Z.
Independent test report under Wine/Proton (not native Windows) for head
88452400.Setup
experimental-11.0-20261112, vkd3d-proton masterec207194with a local patch dropping thelpVtblchecks ind3d12_command_allocator_from_iface/d3d12_command_list_from_iface, DXC1.9.2609.5, Rust 1.96.0,x86_64-pc-windows-gnumain83b00818, test commit0ff567b5Tests (debug,
XCL_REQUIRE_GPU=wave64,--test-threads=1)relative_vgpr_limit v_swaprel gpu_packed_math_dots_movrel: 4 passed, 0 failed (main: 3 passed, 0 failed; the new one isrelative_vgpr_limit_is_only_needed_for_indexed_vector_registers)cargo test --workspace --no-fail-fast -- --test-threads=4, lib binary: 1320 passed, 10 failed, 27 ignored (mainthe same run: 1320 passed, 9 failed, 27 ignored). The extra one isgpu_geometry_wave32_prefix_count_over_a_mask, which also failed today on the #2320 and #2506 trees and not on others, so it depends on timing rather than on this PR.Retail title, 300 s (release, every run from a copy of the same warm-cache snapshot;
XCL_DIRECT_DXIL=1 XCL_PREPARE=1 XCL_PSO_PRELOAD=1 XCL_PSO_WAIT_MS=50 XCL_TEXTURE_LEVEL_PAGES=1 XCL_COHERENT_MB=1024 VKD3D_CONFIG=ignore_shared_fence,Apressed every 10 s)0xc0000005inucrtbase.dll+0x171d9(a copy), writing at0x2c49e2740/0x2c4bba840on a title thread, right after theCreateShaderResourceView(RAYTRACING_ACCELERATION_STRUCTURE) … writing empty BVH descriptorwarnings, with the same registers in both.main, 4 runs: all clean (1,892–2,122 presents). But I had the same crash (same offset, a write, right after the same BVH warnings) yesterday on a tree without this PR (af2cecc4), so it is not new with this PR. Four runs cannot say whether it happens more often with it; I'm mentioning it in case someone sees it again.Not tested
AI use
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T13:22:44Z.
Running a native Windows AMD check of head
88452400(RX 7800 XT, RDNA3, native wave64): workspace tests plus a bounded base-vs-head smoke pair; report here in a few hours.AI use: the run and the report are done with Claude Code (Claude Sonnet 5.5).
Imported from ivall/xcl. Originally posted by oni-swr on 2026-11-27T14:14:48Z.
AMD RDNA3 report for #1539, head
88452400(base = merge-base08db8020)Hardware / software: AMD Radeon RX 7800 XT (RDNA3, native wave64), driver 32.0.31035.1003; Ryzen 7 5700X3D, 64 GB; Windows 11 build 26200; Rust 1.100.0 (stable-x86_64-pc-windows-msvc); tests debug, smoke release. Native Windows, no Wine,
XCL_ADAPTERunset.Tested
cargo test -p xcl --lib -- --test-threads=4on the head: 1304 passed, 1 failed, 27 ignored; 6 GPU casesSKIPPED(f16/f32 conversion programs, "refused"). The failure isgpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1(seed 722), which also fails onb49be183(checked on a different PR's merge-base), so it is not from this PR.cargo test -p xcl --lib relative_vgpr_limit: 1 passed (relative_vgpr_limit_is_only_needed_for_indexed_vector_registers).Regression run (
scripts/smoke.ps1, 90 s, retail title, same title and isolated data copy,XCL_NETWORK=0; base has noXCL_PREPARE, so preparation ran in both)08db802088452400Head is 98.3 % of base's frames, 100.0 % of its peak commit. One run each.
Not tested
cargo test --workspace; a shader-compile comparison (compile time or output) of the skipped scans; world load.AI use
🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-27T20:03:45Z.
merge-check
base:
6089122a1c96dff16e93b6fdf04c8ed20cfb6102head:
88452400fe19f2cb2a03b73ac82fb98e80cc083cmerge: Clean local merge, no commit.
build:
cargo build --workspace-> ok.tests:
XCL_ADAPTER=nvidia cargo test --workspace --no-fail-fast -- --test-threads=4-> 1,465 passed, 1 failed, 47 ignored; 25 GPU skip notices. The newrelative_vgpr_limit_is_only_needed_for_indexed_vector_registerstest and the existing relative-move/swap GPU tests passed. The sole failure isgpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk(DXIL not compiled), also observed on untouched base in the current-base #671 check.review: No new finding in the merged diff. The only consumers of
Em.max_vgprare the relative move/swap emitters; the new guard covers their decoded mnemonic family, including VOP1 and VOP3 forms. Without relative indexing, it skips the operand-use scan. With relative indexing, it retains the previous limit calculation. The new test covers all five VOP1 mnemonics; earlier native AMD wave64 coverage checked indexed output as well.performance: A non-relative shader replaces the register-use scan with a mnemonic scan; a shader with a relative operation incurs the mnemonic scan plus its prior register-use scan. I did not measure translation time or frame rate in this check.
verdict: safe to merge on this exact head and base, subject to the maintainer's normal gates. The one workspace failure is reproduced on base. No retail smoke was run for this check.
hardware / tool and model: Windows 11 build 26300; Ryzen 7 9800X3D; RTX 3080 Ti 12 GiB / NVIDIA 621.35; rustc 1.99.1 MSVC; DXC 1.8.2502.11. AI use: Codex (GPT-6.2 Sol) built and ran the tests and checked the merged diff; Codex (GPT-6.2 Astra) independently traced the operand and emitter paths.
Imported from ivall/xcl. Originally posted by throny on 2026-11-27T20:17:35Z.
merge-check claim
head:
88452400feImported from ivall/xcl. Originally posted by throny on 2026-11-27T20:32:02Z.
merge-check
base:
6089122ahead:
88452400femerge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 1466 passed, 0 failed, 47 ignored (26 SKIPPED lines); base alone: 1465 passed, 0 failed, 47 ignored
review: none. With a v_movrel / v_swaprel in the program the result is as before; max_vgpr is read only by those two. The new test asserts 0 for a program without one, where the old code returned a non-zero value, so it fails without the change.
performance: no frame cost; one scan fewer per shader at translation. It changes HLSL translator sources (emit.rs, recomp/mod.rs): every tester re-translates all shaders once.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:01:50Z.
Triage (#1607) – head
8845240No open or merged PR makes the same change; #1961 / #2037 / #3266 touch relative moves in the direct DXIL path, not this scan.
em.max_vgpris only read by the v_movrel* / v_swaprel emitters inemit.rs, so returning 0 when the program has none of them keeps the output the same. Main still runs the full scan intranslate(mod.rs). No problems found in the diff.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.