Skip to content

Recompiler: compute programs follow S# constants across blocks too - #2935

Draft
pvfreis wants to merge 1 commit into
xcl-dev:mainfrom
pvfreis:recompiler/compute-s-sharp-across-blocks-nvidia-dev
Draft

pvfreis wants to merge 1 commit into
xcl-dev:mainfrom
pvfreis:recompiler/compute-s-sharp-across-blocks-nvidia-dev

Conversation

@pvfreis

@pvfreis pvfreis commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

In kernel and compute programs, an S# set before a branch and sampled after it falls back to sampler-heap entry 0 (point, wrap, mip 0). 82e4a9b follows S# constants across blocks in vertex and pixel programs only; this extends that to kernel and compute programs, in both translators. Mesh and geometry programs stay block by block. Plan: #2835.

Part of #2835. Overlaps #1573 (rewrites the same loop on main) and #811 (on main: sgpr_uses does not see the SGPR an SDWA compare writes, so a constant in it is kept; with this change that reaches compute programs across blocks too).

Rebased onto main 078358a0; the direct translator is the default path for every stage since ab37583.

Draft, opened early so the compute part is not done twice. Test reports on other cards are welcome, AMD in particular.

Why compute was left out, and what we know. fbfac4d followed the constants in every program. 82e4a9b limited that to vertex and pixel programs; its message says compute programs read this way gave ExecuteIndirect 2,055 counts out of range in 75 s on a retail title, and the device hung after 140 s. The cause is still unknown, and this change could bring it back. What we have:

  • This turns on kernel and compute programs only, not the mesh and geometry programs fbfac4d also followed.
  • On one retail title, the main form of this change (before d360233's s_bfm_b32 and 64-bit literal cases) finds the same static samplers in compute programs as fbfac4d's function: no difference in 60 programs, or in the 269 programs of a 1-in-10 sample of its shader pack. With d360233's cases it can find more; that was not counted.
  • Ruled out on NVIDIA 617.14: a compute PSO reusing a driver blob built for other static samplers. A point and a linear S# give different DXIL in both translators, and the driver refuses a blob made with the other root signature (E_INVALIDARG, both translators).
  • The title runs made before the rebase are under Before the rebase below.

What is in it (one commit, efbab65f)

  • gpu/recomp/mod.rs, gpu/dxil/kernel.rs: follow is on for kernel and compute programs. s_movreld and s_movrelsd_2 (writes to SDST + an offset from M0, a register the operands do not name) forget every known constant, in every program.
  • gpu/dxil/kernel.rs: the direct translator hands constant_samplers every Cfg block's start. Before, a block that is only an s_branch or s_endpgm had none, and constant_samplers takes a block's way on from its last instruction, so s_cbranch X; s_branch Y read as one block lost the way to X and a constant set on one path only could stay. For vertex and pixel programs on the direct path (the default since ab37583) this also follows programs that branch to such a block, which fell back to block by block before.
  • gpu/recomp/tests.rs:
    • 82e4a9b's static_sampler_set_before_a_branch_is_a_constant_after_it now expects the kernel to find the sampler after the branch.
    • Kernel and compute, both translators: an S# set before an if, an if/else, a loop or a divergent branch is the static sampler after it. With other words on one path, an s_load, an s_movreld or s_movrelsd_2 that reaches the S# through M0, or an S# from memory, the program keeps the heap lookup.
    • The branch programs on the GPU (kernel), with heap entry 0 linear.
    • d360233's s_bfm_b32 / 64-bit literal S#, set before a branch in a kernel.
    • Other words set past a lone s_branch (the direct translator's case above): no static sampler, both translators.

Tested

  • RTX 3060 12 GB (driver 617.14, 32-lane waves only), Ryzen 9 5900XT, Windows 11 26300, Rust 1.100.0, debug, in a non-interactive session at Low integrity. cargo test --workspace --locked --offline --no-fail-fast -- --test-threads=4 at efbab65f: 3007 passed, 2 failed, 52 ignored (xcl lib 2856 passed, 1 failed, 32 ignored). On main 078358a0, in the same kind of session: 3004 passed, 2 failed, 52 ignored (lib 2853 passed, 1 failed, 32 ignored). The same two tests fail on both: ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it and the e2e test_title_runs_and_game_folder_is_untouched.
  • The three new tests and 82e4a9b's changed test pass at efbab65f. gpu_s_sharp_set_before_a_branch runs on the GPU as two 32-lane halves (no wave64 on this card). ee1efda's gpu_static_samplers_from_constants_in_code (a compute program whose prologue branches) passes too.
  • SKIPPED on this card, the same 24 at both commits: 22 wave64 forms (no wave64) and two heap-window tests (no heap windows).
  • Thanks to @LocranKing for a test report at cc893099 on an RTX 3060 Ti 8 GB: the focused unit test passes, and a 180 s Series S smoke run had no crash or device removal, but it stayed in the menus because preparation re-translated the compute shaders first (comment).

Before the rebase (on the old base nvidia-dev; each run names its commit)

  • Without the change (these tests on ecc0bb57, in a session of the same kind), four tests fail and the rest is as at cc893099: s_sharp_set_before_a_branch_is_a_static_sampler_after_it (no static sampler, heap lookup kept), gpu_s_sharp_set_before_a_branch (1.5, heap entry 0 linear, where the S# gives 2), s_sharp_from_s_bfm_and_a_64_bit_literal_move_before_a_branch_is_a_constant_in_a_kernel, and 82e4a9b's test with its kernel check.
  • With the change but without the s_movreld / s_movrelsd_2 line, s_sharp_set_before_a_branch_is_a_static_sampler_after_it fails on exactly those two cases (kernel and compute, both translators: a static sampler where M0 overwrote the S#).
  • With the change but without the block-start line in kernel.rs, the same test fails only on other_words_past_a_lone_branch, direct translator, kernel and compute (a static sampler where one path set other words).
  • One title run on nvidia-dev af2cecc4 (before d360233) with this change, RTX 3060: no out-of-range line from the ExecuteIndirect guard (the log does not show how many it checked) and no device removal. No present after 282 s; our memory guard stopped the run at 450 s. The same tree without the change, one run: no out-of-range line, no device removal, no present after 282 s, stopped at 465 s. One run each, so this does not rule the hang out.
  • On ecc0bb57, four runs each: one burst of counts out of range with this change (63) and one without it (24), with the same two float triples in the same three programs, no device removal (next bullet). So the burst shows on the old base without the change too.
  • In-title runs, not smoke blocks: b2a4ef48 (this change without the block-start line in kernel.rs; the runs did not use the direct translator: no XCL_DIRECT_DXIL, and no direct-DXIL fallback in the logs) and its base ecc0bb57, four runs each, RTX 3060, release, XCL_PREPARE=0, XCL_NETWORK=0, empty DXIL cache, stopped at 600 s. All eight stop presenting after 86 to 98 s and go on submitting in batches. One run with the change logged 63 ExecuteIndirect counts out of range, all within 1 ms at 182 s, at 63 argument addresses; one run of the base logged 24, all at 200.8 s. Both bursts are in the same programs (1ada4908, 9387face, 4401d482; the first also 51788b20, a6724f20) and repeat the same two float triples (465.0 x 1000.0 x 1 is one: 30 of the 63, 20 of the 24); the rest are other data that are not counts. The other six runs logged none. No device removal in any. The five compute programs dispatched with those arguments get the same static samplers with and without the change (a decode of 2,682 of the 2,737 compute programs the first run with the change used; 459 of them get more static samplers with the change).

Regression run

  • scripts/smoke.ps1 -Game <folder> -Seconds 60 of the same retail title on main 078358a0 and on this head efbab65f (no uncommitted changes in either), RTX 3060 12 GB (driver 617.14), release, all with XCL_PREPARE=0 (not the default: the shader preparation is left out), every run from an empty DXIL cache and a fresh copy of the same data folder, with no build or other title run at the same time. Two runs each, alternating main / head. Pair 2:
xcl-smoke v1
commit: 078358a058f7ba5d16690dba8dc4e55d2c88ae0a
gpu: NVIDIA GeForce RTX 3060
title: b6ca0868
seconds: 60
exit: 0x0
frames shown: 1609 (PresentX 1609)
presents per 2 s (last 3): 60 57 60
device removals: 0
crashes: 0
peak commit: 15417 MB
xcl-smoke v1
commit: efbab65f4ef1f84d174dad21e34d362e6ffebe86
gpu: NVIDIA GeForce RTX 3060
title: b6ca0868
seconds: 60
exit: 0x0
frames shown: 1616 (PresentX 1616)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 15276 MB
  • Pair 1: main 1,200 frames, 15,158 MB peak commit; this head 1,636 frames, 15,267 MB. No device removal or crash in any of the four.

Not tested

  • A title run at this head longer than the 60 s smoke runs: the in-title runs before the rebase (b2a4ef48, 600 s) stopped presenting after 86 to 98 s, which is after the smoke runs end. A run with the shader preparation on (the default).
  • The ExecuteIndirect in-title checks above were not repeated on main after the rebase.
  • The controls under Before the rebase (the new tests failing without the change, without the s_movreld / s_movrelsd_2 line, and without the block-start line) were not repeated on main.
  • AMD; wave64 GPUs. On this card only 32-lane forms run in the GPU tests.
  • The XCL_SAMPLE_* buffer-chain replay tests (offline_cold_profile.rs), which need sample data.
  • Whether it changes anything on screen.
  • The SGPR an SDWA compare writes (Recompiler: SDWA register uses come from the extension dword #811) is not handled here.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change and the tests, ran the tests and the title runs, and wrote this description. Claude Fable 5.2 rechecked it.
  • Claude Code (Claude Opus 5.5) rebased it onto main, reran the suite and the smoke runs and updated this description. Claude Fable 5.2 rechecked the rebase and this description against the logs.

🤖 Generated with Claude Code

@ettehn

ettehn commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Independent Windows negative/positive control on RTX 5070 Ti Laptop (621.24), Windows 11 26200.9974, Rust 1.97.1 MSVC, DXC/DXIL 1.8.2502.11, debug, XCL_ADAPTER=NVIDIA and separate XCL caches. cargo test --offline --locked -p xcl -j 4 --lib -- s_sharp static_sampler --test-threads=1 --nocapture at clean b2a4ef48 passed 9/9, no ignores or capability skips. At exact parent ecc0bb57 with only the PR's test-file diff applied, the same command gave 5 passed / 4 failed, with the four failures listed in the PR description.

The GPU negative control returned 1.5 (linear heap entry) on both sides of each tested uniform and divergent branch for both translators. The head passed the corresponding 2.0 point-sampler assertions. The translation-only controls also confirmed heap lookup remains for a descriptor overwritten through s_movreld or s_movrelsd_2. This covers synthetic shaders on a second wave32 NVIDIA generation. It leaves retail ExecuteIndirect, device-removal behavior and AMD untested. OpenAI Codex (6.2sol) assisted with verification.

@SzczepanGrela

SzczepanGrela commented Nov 27, 2026 •

Copy link
Copy Markdown

Updated RX 9070 / RADV / Wine report for head 26ab11f0587b720e4ee98e9e62d5b3e705eb85d2, compared with previous head b2a4ef48c586fb430ea341df922cb41cf6267a04. The lone-branch correction passes the tested native wave32/wave64 sampling cases; the previous head reproduces an incorrect static sampler in direct DXIL.

Tested

  • RX 9070 16 GB, RADV GFX1201 / Mesa 26.3.1-arch3.5, Ryzen 7 7700, CachyOS 7.3.0-5-cachyos. Windows GNU release executables, Rust 1.97.1, GE-Proton11-12 / Wine 11.0 Staging, native DXGI/D3D12 through vkd3d-proton 8293130ebe370b1+ (local asserts-disabled build), DXC/DXIL 1.9.2602.17. Actual adapter LUID 00000000:000003ef checked.
  • Separate pinned source copies. The previous head carries the identical updated-head test file; capture observations precede unchanged upstream assertions. The production difference between these two heads is the kernel.rs block-start collection. The PR targets nvidia-dev at ecc0bb57976b1bc94854199ddf4f915fd00e0a59; this comparison is between the two PR revisions, not integration onto main.
  • Build each copy: cargo test --offline --locked --release --target x86_64-pc-windows-gnu -p xcl --lib --no-run --message-format=json-render-diagnostics.

Run through Wine:

<unit.exe> s_sharp static_sampler --nocapture --test-threads=1
<unit.exe> s_sharp static_sampler --nocapture --test-threads=4
Revision Threads 1 Threads 4
Previous head + current tests 8 passed, 1 failed 8 passed, 1 failed
Updated head 9 passed, 0 failed 9 passed, 0 failed

No selected tests were ignored or skipped. Captures verify all 44 kernel/compute translation records per run. On the previous head, the sole failing test identifies other_words_past_a_lone_branch in direct-DXIL kernel and compute forms. The updated head retains heap lookup there. Other positive/conservative translation cases remain correct. The original 16 native-wave64 GPU branch readbacks per run remain correct on both revisions, with identical shader containers.

Additional owned filter gpu::recomp::tests::workflow_sampler_lone_branch_readback --exact --nocapture --test-threads=1, three fresh processes per revision, eight dispatches each: native wave32/wave64, HLSL/direct DXIL, both uniform branch outcomes. An owned 4x4 RGBA32F texture is sampled at (0.5, 0.125). Heap entry 0 is point, entry 1 linear. S# word 3 starts at 0; s0 == 0 selects 1, while s0 == 1 passes through a block containing only an unconditional branch and preserves 0.

  • Updated head: 8/8 readbacks correct in each process, 1 passed / 0 failed.
  • Previous head: both direct-DXIL s0 == 0 cases return point [2,0,2,1] instead of linear [1.5,0,1.5,1], on all 32/64 lanes respectively. The two other direct cases and all four HLSL cases are correct. The fixture collects all eight cases before reporting 0 passed / 1 failed.

Across the repeated checks: 112 captured GPU dispatches, 88 native wave64, 25,600 RGBA words, all independently checked. The previous head has the expected 576 differing words; the updated head has zero. A separate decoder checks the owned encoded program, branch targets, inputs and selected heap index. Readbacks repeat byte-for-byte within each revision. DXIL wave metadata, unchanged original GPU controls and HLSL containers were checked independently.

Inherited XCL_* cleared; XCL_NETWORK=0, RX 9070 selected, XCL_REQUIRE_GPU=wave64, XCL_DXC_THREADS=1; private enabled caches per process.

Not tested

Retail or smoke runs, the reported ExecuteIndirect/device-hang symptom, performance, full suite, native Windows, integration onto main, or GPU execution of the translation-only guest Mode::Compute controls. GPU execution here uses synthetic kernel fixtures.

AI use

OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed the revision change, wrote the owned test-only fixture and captures, ran comparisons, independently verified source/executable provenance, program paths and all captured words, and drafted this report. Publication authorized by the account owner.

@pvfreis
pvfreis force-pushed the recompiler/compute-s-sharp-across-blocks-nvidia-dev branch from b2a4ef4 to 26ab11f Compare November 27, 2026 02:53
@andrewDoing

Copy link
Copy Markdown
Contributor

I checked the new lone-branch case on exact updated head 26ab11f0587b720e4ee98e9e62d5b3e705eb85d2 and the previous head b2a4ef48 with only the new test case overlaid. The updated head passed the focused test (1/1). The prior head failed it with two mismatches: direct-DXIL kernel and compute forms incorrectly treated the sampler as static for other_words_past_a_lone_branch. The HLSL controls matched on both revisions.

Both builds used separate output directories; neither test reported a skip. This is a native Windows CPU translation test, not a GPU rendering or GTA VI run.

AI use: OpenAI Codex with GPT-6.2 Astra ran the comparison; Codex coordinated and prepared this report.

@andrewDoing

Copy link
Copy Markdown
Contributor

Follow-up to my metadata comparison: I exercised the same lone-branch topology with a native GPU sampling fixture, using the previous head b2a4ef48 and updated head 26ab11f0587b720e4ee98e9e62d5b3e705eb85d2, each with the identical test-only overlay and separate caches.

On the previous head, the direct-DXIL s0=1 path returned point-filtered [2,0,2,1] on all 64 lanes where the selected linear sampler expected [1.5,0,1.5,1]. The other branch and both HLSL runs matched their expectations. On the updated head, all four dispatches matched every lane without reported skips.

This is a synthetic native kernel readback, not a guest compute-ABI test or GTA VI title run. AI use: OpenAI Codex with GPT-6.2 Astra built and ran the paired fixtures; Codex coordinated and prepared this follow-up.

rootw0rm pushed a commit to rootw0rm/xcl that referenced this pull request Nov 27, 2026
@pvfreis
pvfreis force-pushed the recompiler/compute-s-sharp-across-blocks-nvidia-dev branch from 26ab11f to cc89309 Compare November 27, 2026 04:22
@LocranKing

Copy link
Copy Markdown

Tested PR #2935 (cc893099) on Windows 11 (Ryzen 5 5500, 32 GB RAM, NVIDIA GeForce RTX 3060 Ti 8 GB, driver 32.0.16.2140).

Unit test

cargo test --locked -p xcl --lib -- s_sharp_from_s_bfm --nocapture on cc893099:

  • gpu::recomp::tests::s_sharp_from_s_bfm_and_a_64_bit_literal_move_before_a_branch_is_a_constant_in_a_kernel — ok (1 passed, 0 failed)

Smoke run scope & outcome (180 s, lockhart)

Using a frozen nvidia-dev DXIL cache (XCL_DIRECT_DXIL=1, XCL_HEAP_WINDOWS=1, XCL_TEXTURE_LEVEL_PAGES=1, XCL_PREPARE_GRAPHICS=0, XCL_DRED=1):

  • exit: 0x0, 0 crashes, 0 device removals, 5021 frames (PresentX 5021, presents per 2 s (last 3): 60 60 60), peak commit 15032 MB, peak local VRAM 4835 MB, peak non-local 4048 MB.
  • Scope caveat: Because #2935 invalidated/re-translated compute shaders during startup preparation, first guest timer: finest happened at 411.240 s, after the scripted 18:A..82:A button presses finished — so this run remained in splash/menus and did not exercise the open world.

@KDenKC

KDenKC commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

@pvfreis the whole suite of your head on an RTX 3090, against its base ecc0bb57 on the same machine: no failure the base doesn't have, and your three new tests pass, the GPU one included.

Tested: cc893099 and its base nvidia-dev ecc0bb57.

  • RTX 3090 24 GB, NVIDIA 621.24, i7-10700T x8 (a VM with the GPU passed through), Windows 11 26H2 (26300.9974), Rust 1.99.1 (stable-x86_64-pc-windows-msvc), debug, no XCL_* set.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom --skip uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment --skip uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window (those three end the lib test binary on 621.24, at the base too)
  • base: 1,820 passed, 9 failed, 48 ignored; head: 1,823 passed, 9 failed, 48 ignored. The new tests: s_sharp_set_before_a_branch_is_a_static_sampler_after_it, s_sharp_from_s_bfm_and_a_64_bit_literal_move_before_a_branch_is_a_constant_in_a_kernel, gpu_s_sharp_set_before_a_branch (ran on the GPU, not skipped).
  • The 9 failures are the same tests on both, from the older base and this VM. On 54225f58 here, the texture_upload, mesh-stream, async-PSO, two-pass and split_compute_prefers_the_offline_whole_pipeline ones pass.
  • SKIPPED: 30, the same on both.

Not tested: a title run: your note about the ExecuteIndirect counts seen with an earlier form of this (we would run one with the guard log on); the rebased head on current nvidia-dev; AMD / Intel.

AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon.

@Prime1997
Prime1997 changed the base branch from nvidia-dev to main November 28, 2026 20:14
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Triage (#1607) – head cc89309

No open or merged PR makes the same change. main's 82e4a9b deliberately limited constant_samplers' cross-block follow to vertex and pixel programs after a compute ExecuteIndirect hang; #1573 rewrites the same loop for another purpose (sampler constants up to image instructions).
This turns the follow on for kernel and compute (recomp/mod.rs translate, dxil/kernel.rs), makes s_movreld / s_movrelsd_2 forget every known register, and gives the direct translator every block start as a leader. The doc comment on main recording the hang is removed, but the hang's cause is still not known, as the description says, so an AMD run is still missing before this is on by default. The branch conflicts with main now.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

82e4a9b follows S# constants through branches in vertex and pixel
programs only. In kernel and compute programs a block's start still
forgets them, so a sample after a branch falls back to
SamplerDescriptorHeap[word3 & 0x7FF]. For an S# built in code that is
the border-colour pointer, usually 0: sampler-heap entry 0 (point, wrap,
mip 0).

This turns `follow` on for kernel and compute programs in both
translators (HLSL and direct DXIL), and makes s_movreld and s_movrelsd_2
(writes to SDST + an offset from M0) forget every known constant.
82e4a9b's test now expects a kernel to find the sampler after the
branch.

The direct translator handed constant_samplers the starts of its Cfg
blocks that have instructions left once the branch is taken out, so a
block that is only an s_branch or s_endpgm had none. constant_samplers
takes a block's way on from its last instruction: `s_cbranch X; s_branch
Y` read as one block lost the way to X, and a constant set on only one
path could stay. It now gets every block's start, as the HLSL path does.
For vertex and pixel programs on the direct path (the default since
ab37583) this also follows programs that branch to such a block, which
fell back to block by block before.

Tests: kernel and compute, both translators, an S# set before an if, an
if/else, a loop and a divergent branch is the static sampler; one with
other words on one path, an s_load, an s_movreld or s_movrelsd_2
reaching the S# through M0, or an S# from memory keeps the heap lookup;
the same on the GPU with heap entry 0 linear; d360233's s_bfm / 64-bit
literal S# before a branch; other words set past a lone s_branch (the
direct translator's case above) keep the heap lookup, both translators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pvfreis
pvfreis force-pushed the recompiler/compute-s-sharp-across-blocks-nvidia-dev branch from cc89309 to efbab65 Compare December 3, 2026 01:27
@Foniass

Foniass commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Follow-up review of efbab65f, since cc89309 (code reading only, not a merge-check; draft) · 1 medium

In short: Since the triage note on cc89309, this push only rebases onto main. The PR's own change is the same apart from context, where main moved under it, and the commit message now says the direct path is the default since ab37583 (git range-diff). The conflict is gone. The open point from the triage is unchanged.

Medium

  1. The follow is on by default for compute programs while the hang that 82e4a9b turned it off for is unexplained (still open). 82e4a9b limited the cross-block follow to vertex and pixel programs after 2,055 out-of-range ExecuteIndirect counts and a device hang on a retail title. The description says the cause is still unknown. The only title evidence is one run each with and without the change on an RTX 3060. Neither reached a present, so the run does not rule the hang out. Before this is on by default, a run on the title and GPU where the hang happened (or any AMD run reaching gameplay) would settle it. Otherwise, put the compute part behind a switch.
Checked and fine
  • The rebase kept the change: the follow is turned on for kernel and compute in recomp/mod.rs (now in translate_inner) and dxil/kernel.rs, s_movreld / s_movrelsd_2 forget every known register, and the direct translator gets every block start as a leader.
  • Tested reports, at efbab65f, the three new tests and 82e4a9b's changed test passing. It also says which tests fail without the change, and which without each of its two other lines.

Written by Claude Code (Claude Opus 5.5) and posted by Foniass without a human check of each point.

@github-actions github-actions Bot added area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 area:tests Unit, integration, e2e tests, or testtitle gpu:amd Code is specific to AMD / RDNA / wave64 GPUs (scope tag; see needs:amd-test) labels Dec 3, 2026
@pvfreis

pvfreis commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main 078358a0 as efbab65f; the suite counts and a new smoke pair on an RTX 3060 are in the description. What is still missing before this leaves draft is an AMD run at this head: a suite run or a title run on an AMD card, reported here, would help.

@pvfreis

pvfreis commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Two runs of efbab65f past loading, for the open point about the compute follow being on by default. Neither is one of the two runs asked for: they are not AMD, and 82e4a9b's message does not name the title, card or profile behind its 2,055 counts and the hang, so they do not reproduce those conditions.

  • RTX 3060 12 GB (driver 617.14), 32 GB RAM, release build, one run per profile, this PR alone (no main run beside it). XCL_PREPARE_WORKERS=8, XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_FRAME_DUMP=61, A pressed every 4 s (XCL_PRESS_BASE=frame, XCL_PRESS_A_AT), its own data and cache folders; startup preparation on (the default), from a shader cache made by the same build.
  • XCL_DEVICE_TYPE=lockhart (Series S profile): first present after 775 s (the preparation). From about 958 s the log has world-level draw and dispatch counts (780,477 dispatches in the 310 s that followed); the frames are the opening sequence, not play. Stopped by us at 1,268 s.
  • 0 ExecuteIndirect counts out of range (the guard at its default), 0 device removals, no crash, presents up to the stop. 1,840 presents and 803,100 dispatches in the whole run. In those 310 s: 31 to 44 presents per 30 s for the first 240 s, then 24 and 18. Those two intervals contain a 4.7 s driver compile of a compute pipeline on a title thread and waits of 1.7 s and 10.3 s for a graphics pipeline being built. The process had 33.3 GB committed at the end, on a 32 GB PC.
  • The same with the Series X profile (the default; no XCL_DEVICE_TYPE), one run: first present after 51 s. Presents stop about 80 s later for about 12 minutes, while title threads wait for graphics pipelines being built (265 waits in the log, one thread waiting for 711 s of it; this PC's saved graphics history for this profile had only 59 pipelines). World-level draw and dispatch counts from about 926 s, held about 310 s and stopped by us. 0 ExecuteIndirect counts out of range, 0 device removals, no crash. 1,770 presents and 344,213 dispatches in the whole run. In those 310 s: 109 presents and 315,586 dispatches, stop-and-go (presents per 30 s: 33, 1, 7, 1, 18, 13, 0, 0, 0, 20, then 16 in the last 13 s), with more waits for graphics pipelines; the longest gap without a present was about 113 s, and presents were coming again when we stopped it. 37.2 GB committed at the end.
  • Not covered: AMD; a main run for comparison; the picture (the Series S run had visible defects, and with no main run beside it we cannot say whether this change has any part in them).

Run with Claude Code (Claude Opus 5.5 set it up, Claude Fable 5.2 checked the numbers against the logs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:recompiler RDNA2 decoder, HLSL/direct-DXIL recompiler, wave64/wave32 area:tests Unit, integration, e2e tests, or testtitle gpu:amd Code is specific to AMD / RDNA / wave64 GPUs (scope tag; see needs:amd-test)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants