fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) #2496

Open
windowsarmwrestler wants to merge 4 commits from windowsarmwrestler/Longshot:fix/adreno-pipeline-cache-split into main
Contributor

Summary

On Windows on Arm (Snapdragon X Elite, Adreno X1-85) every start of the game rebuilt its pipelines: about 11 minutes of "Loading pipelines" each time (42 minutes in #1551's report), and longshot_vk_pipelines.bin was never written again after the first start.

The cause is the driver: Qualcomm's Adreno driver keeps only the first 1024.5 MB put into a VkPipelineCache and drops every pipeline after that with no error (31.0.178.0). A game-free probe built 27,267 compute pipelines into one cache: its data stopped at 1024.5 MB, and a cache made from that data held the first 17,458 and none after. A start builds about 2.7 GB of pipelines on this driver (its compute ones, the mesh fallback's and ~43,000 noted graphics ones), so the driver keeps whichever finish first, up to 1024.5 MB, and drops the rest: on every later start most of them are compiled again. (Which ones it keeps depends on what finished first: where the builder's preparation had built the compute pipelines on their own first, they were the ones kept and almost every graphics pipeline was dropped, as in #1551.) The save decides "nothing new" by the cache's size, which the driver held at the cap, so the file never changed. On this driver the game needs about 2.7 GB of pipeline cache.

This change gives the start-up more than one pipeline cache where device policy's new pcache_split says: 768 MB on Qualcomm's own driver (VK_DRIVER_ID_QUALCOMM_PROPRIETARY), 0 (one cache, exactly as before) everywhere else, Mesa's Turnip included; RX_VK_PCACHE_SPLIT_MB (a whole number of MB, or 0/off) sets it. Once the open cache's data passes that size, what the start-up compiles goes into another cache with its own file, longshot_vk_pipelines_part_<n>.bin (at most 8 more). Before play every cache is asked without compiling, and a pipeline is compiled into the open one only when none has it; in play each is asked as the one cache was. The parts are read at the start, saved by their own sizes, and dropped, swept and rejected with the main file. Result on the Snapdragon: the second start builds its pipelines in 4.2 s instead of 582 s and reaches play in about 51 s instead of about 11 minutes.

To see the bug on main: on a Snapdragon X (Adreno) PC, start the game twice. The second start's log still says precompile: ... built into the pipeline cache ... in 5xx s and the pipeline cache not written: nothing new since it was read or last written (1024.x MB). Without the hardware: python -I -B tests/test_pipeline_play_cache.py on main with this PR's test commit, where the case cap fails (the second start compiles 70 of 120 again).

Read first: pcache_split in gpu/vk/device_policy.h (the rule and its switch), gpu/vk/pcache_split.h (the file names), then the section "The start's caches past pcache" in gpu/vk/vk_draw.cpp (start_create, pcache_parts_read, pcache_parts_drop, pcache_parts_save), and the cases cap and cap-off in tests/pipeline_play_cache_test.cpp.

Fixes #1551. See #2316 (NVIDIA: the same "nothing new" size check is involved there, on another driver; this PR does not change NVIDIA's path).

Testing

Tested: Windows 11 Home ARM64 (build 26300), Snapdragon X Elite X1E80100, Adreno X1-85, driver 31.0.178.0 (0x8037d000); the game is the x64 build under Windows' emulation. This PR's renderer (dev.py vk) in a copy of a nightly-801 game folder (9046a8d7, this PR's base), headless through the control bridge, two starts on one folder. Start 1, with no pipeline cache: the caches split as intended (pipeline cache: the open one passed the split: ... longshot_vk_pipelines_part_1.bin, then _2, _3; files 770 + 770 + 770 + 390 MB), 43,130 graphics and 4,879 compute pipelines built in 637 s. Start 2: split at 768 MB (RX_VK_PCACHE_SPLIT_MB): 3 parts read beside it, the same pipelines built in 4.2 s (the compute ones 0.5 s), load at create 0 in no cache (987 on main), the title reached about 51 s after launch, the caches not rewritten, and a clean quit.

A third start after moving the default into device policy (c902de64) on the same caches: the policy line logs pcache_split=768 MB, split at 768 MB (device policy, RX_VK_PCACHE_SPLIT_MB): 3 parts read beside it, the pipelines in 4.4 s.

Checks: tests/test_pipeline_play_cache.py fails on main with the test commit (cap: start 2 compiled 70 of 120) and passes here (compiled 0 of 120); with the fix's key line removed (pcache_built_into) it fails again. After the review (d779bc6d test, 0d80d684 fix): the cases part-missing and part-cut (a split folder whose part 1 is deleted or cut short) fail on c902de64 and pass here: the parts from it on removed, the marker dropped, what they held built again before play; 25 cases in all. New tests/test_pcache_split.py (the header) passes; tests/test_device_policy.py passes with the field, six switch cases (0, off, 512, empty, lots, NVIDIA 900) and a Snapdragon X Elite as its log gives it (26 PCs, 85 environments). The renderer builds whole with llvm-mingw for Windows (0 failed, exports checked). Full tests/run_all.py on this PC: 815 passed, 26 failed, 139 skipped on both main and this branch, the same 26 failing on both (this PC's setup: test_auto_handheld, test_build_long_paths, test_coverage_run, test_crash_dialog, test_crash_record, test_dev_ab, test_dev_build, test_dev_migrate, test_discover, test_game_menu_mouse_buttons, test_input_movie, test_lift_lookups, test_linux_preflight, test_make_game_cache, test_mise_build, test_mods_list, test_nfc_model_info, test_pads_after_menu, test_perf_report, test_portable_builder_home, test_portable_builder_startup, test_sampler_stack_walk, test_sdiv_overflow, test_shader_module_guard, test_split_giants, test_walk). test_longshot_ctl failed once in the full run under load (stop_method exit against quit) and passed twice alone. The 139 skips are this PC's missing tools (Vulkan headers, spirv-val, Linux-only checks); the checks reading the changed files were also run with the Vulkan headers found: 201 passed, the same 5 failing as on main plus test_sampler_admission's concurrent case once under load (passes alone, twice; on main too).

After the rebase onto main @ fd68f82c (head 67695be9), in the game again: dev.py pack and dev.py rt over the shared base (be663a08, its 1 GiB pipeline cache as a player's who updates), headless, two starts. Start 1: split at 768 MB (device policy, RX_VK_PCACHE_SPLIT_MB): 0 parts read beside it, the old file past the split, so the pipelines it had lost went into new parts (_part_1 to _part_3, 788 + 788 + 150 MB), built in 334.4 s; play 392 s after launch. Start 2: 3 parts read beside it, 1 play files merged, the start-up's pipelines in 4.2 s (compute 0.5 s), load at create 0 in no cache, play 62 s after launch. No submit failed (-3) in either.

Still to test:

  • Windows, NVIDIA, AMD and Intel: start the game twice, expecting no pipeline cache: split at line and the same start-up times and logs as main; the code path is unchanged at a split of 0 (@Beanstalk start twice on Windows NVIDIA, AMD and Intel and compare the start-up's precompile lines with main)
  • Linux (RADV, NVIDIA): the same, and that the renderer builds (CI, and @Beanstalk start twice on Linux)
  • A long play session on the Snapdragon after this change: play files merging into the open part (by hand). Blocked for now: on this Snapdragon the game freezes on scene changes (a GPU timeout, Windows' LiveKernelEvent 141, then vk: submit <n> failed (-3)), on main as well as here and with the recorder thread off; it is being investigated apart in #2566 (and #2567 makes the renderer treat that -3 as a lost device). Three sessions with this PR (play files saved, merged at the next start, all parts read) ended in that freeze within minutes

Measurements

Verdict: on an Adreno X1-85 a warm start reaches play in 55 s instead of 679 s (medians of three interleaved pairs), its start-up pipelines built in 4.2 s instead of 566.8 s; it holds about 1.6 GB more private memory for the larger caches.

Setup: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, 16 GB; the x64 game under emulation. One nightly-801 game folder copied twice, each starting with no pipeline cache: main with nightly-801's renderer, this PR with 0d80d684's. Headless through the control bridge, each start a queue job; order main cold, PR cold, then three rounds of main warm and PR warm. The numbers are the logs' own lines; every start is in the comment with the series.

Before: main @ 9046a8d7 After: this PR @ 0d80d684
Launch to play, warm (median of 3) 679 s (608-688) 55 s (54-60)
Start-up pipelines built, warm 566.8 s 4.2 s
Load at create, warm 86.8 s, 838 noted pipelines in no cache 33.0 s, 0 in no cache
Launch to play, cold (one run) 821 s 683 s
Private memory at the title, warm 9,182 MB 10,815 MB
Working set at the title, warm 4,158 MB 4,151 MB
Pipeline cache files 1 x 1024.3 MB 770 + 770 + 770 + 390 MB

The game-free model (tests/test_pipeline_play_cache.py, case cap, a cache that keeps 50 pipelines): the second start compiles 70 of 120 on main, 0 here.

The default, 768 MB: under the 1024.5 MB the driver keeps, with room for the pipelines built between two looks at the open cache's size (every 16 builds); the probe measured that adding to a cache slows steadily as it grows (10 s per 100 MB at first, 60 s near 1 GiB), which smaller caches also avoid.

Risks

  • Only Qualcomm's own driver splits by default (device policy, by driver: Mesa's Turnip on the same GPUs keeps one cache, as it was not run). Elsewhere pcache_split is 0 and start_create makes a pipeline with the one cache as before; the parts code does nothing.
  • To turn it off: RX_VK_PCACHE_SPLIT_MB=0 (one cache, as on main).
  • After updating, on Qualcomm: the first start keeps the old 1 GiB file as the first cache (already past the split), so it builds the missing pipelines once more into new part files (about 10 minutes, as every start did before); from the next start on, it is fast.
  • Cost on Qualcomm: the cache files take about 2.7 GB of disk instead of 1 GB, and the driver holds them in memory: about 1.4 GB more private memory at the title on this PC (16 GB). The peak working set during the start is lower, since nothing is compiled.
  • Still open on this hardware, not changed here: the driver-cache sample (the driver's shader cache has 0 of 49 noted pipelines asked ... it lost them) runs the warm pass at every start, now 4 s; the 86 mesh-fallback pipelines the driver refuses (could not be made: -13) are tried at every start (most of the remaining 30 s); and a separate freeze at the title (vk: submit <n> failed (-3)).

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer built whole with llvm-mingw here. Linux: not built here, no Linux PC; waiting for this PR's CI)
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary On Windows on Arm (Snapdragon X Elite, Adreno X1-85) every start of the game rebuilt its pipelines: about 11 minutes of "Loading pipelines" each time (42 minutes in #1551's report), and `longshot_vk_pipelines.bin` was never written again after the first start. The cause is the driver: **Qualcomm's Adreno driver keeps only the first 1024.5 MB put into a `VkPipelineCache`** and drops every pipeline after that with no error (31.0.178.0). A game-free probe built 27,267 compute pipelines into one cache: its data stopped at 1024.5 MB, and a cache made from that data held the first 17,458 and none after. A start builds about 2.7 GB of pipelines on this driver (its compute ones, the mesh fallback's and ~43,000 noted graphics ones), so the driver keeps whichever finish first, up to 1024.5 MB, and drops the rest: on every later start most of them are compiled again. (Which ones it keeps depends on what finished first: where the builder's preparation had built the compute pipelines on their own first, they were the ones kept and almost every graphics pipeline was dropped, as in #1551.) The save decides "nothing new" by the cache's size, which the driver held at the cap, so the file never changed. On this driver the game needs about 2.7 GB of pipeline cache. This change gives the start-up more than one pipeline cache where device policy's new `pcache_split` says: **768 MB on Qualcomm's own driver (`VK_DRIVER_ID_QUALCOMM_PROPRIETARY`), 0 (one cache, exactly as before) everywhere else**, Mesa's Turnip included; `RX_VK_PCACHE_SPLIT_MB` (a whole number of MB, or `0`/`off`) sets it. Once the open cache's data passes that size, what the start-up compiles goes into another cache with its own file, `longshot_vk_pipelines_part_<n>.bin` (at most 8 more). Before play every cache is asked without compiling, and a pipeline is compiled into the open one only when none has it; in play each is asked as the one cache was. The parts are read at the start, saved by their own sizes, and dropped, swept and rejected with the main file. **Result on the Snapdragon: the second start builds its pipelines in 4.2 s instead of 582 s and reaches play in about 51 s instead of about 11 minutes.** To see the bug on `main`: on a Snapdragon X (Adreno) PC, start the game twice. The second start's log still says `precompile: ... built into the pipeline cache ... in 5xx s` and `the pipeline cache not written: nothing new since it was read or last written (1024.x MB)`. Without the hardware: `python -I -B tests/test_pipeline_play_cache.py` on `main` with this PR's test commit, where the case `cap` fails (the second start compiles 70 of 120 again). Read first: `pcache_split` in `gpu/vk/device_policy.h` (the rule and its switch), `gpu/vk/pcache_split.h` (the file names), then the section "The start's caches past pcache" in `gpu/vk/vk_draw.cpp` (`start_create`, `pcache_parts_read`, `pcache_parts_drop`, `pcache_parts_save`), and the cases `cap` and `cap-off` in `tests/pipeline_play_cache_test.cpp`. Fixes #1551. See #2316 (NVIDIA: the same "nothing new" size check is involved there, on another driver; this PR does not change NVIDIA's path). ## Testing **Tested:** Windows 11 Home ARM64 (build 26300), Snapdragon X Elite X1E80100, Adreno X1-85, driver 31.0.178.0 (`0x8037d000`); the game is the x64 build under Windows' emulation. This PR's renderer (`dev.py vk`) in a copy of a nightly-801 game folder (`9046a8d7`, this PR's base), headless through the control bridge, two starts on one folder. Start 1, with no pipeline cache: the caches split as intended (`pipeline cache: the open one passed the split: ... longshot_vk_pipelines_part_1.bin`, then `_2`, `_3`; files 770 + 770 + 770 + 390 MB), 43,130 graphics and 4,879 compute pipelines built in 637 s. Start 2: `split at 768 MB (RX_VK_PCACHE_SPLIT_MB): 3 parts read beside it`, the same pipelines built in **4.2 s** (`the compute ones 0.5 s`), load at create `0 in no cache` (987 on `main`), the title reached about 51 s after launch, the caches not rewritten, and a clean quit. A third start after moving the default into device policy (`c902de64`) on the same caches: the policy line logs `pcache_split=768 MB`, `split at 768 MB (device policy, RX_VK_PCACHE_SPLIT_MB): 3 parts read beside it`, the pipelines in 4.4 s. Checks: `tests/test_pipeline_play_cache.py` fails on `main` with the test commit (`cap: start 2 compiled 70 of 120`) and passes here (`compiled 0 of 120`); with the fix's key line removed (`pcache_built_into`) it fails again. After the review (`d779bc6d` test, `0d80d684` fix): the cases `part-missing` and `part-cut` (a split folder whose part 1 is deleted or cut short) fail on `c902de64` and pass here: the parts from it on removed, the marker dropped, what they held built again before play; 25 cases in all. New `tests/test_pcache_split.py` (the header) passes; `tests/test_device_policy.py` passes with the field, six switch cases (`0`, `off`, `512`, empty, `lots`, NVIDIA `900`) and a Snapdragon X Elite as its log gives it (26 PCs, 85 environments). The renderer builds whole with llvm-mingw for Windows (0 failed, exports checked). Full `tests/run_all.py` on this PC: 815 passed, 26 failed, 139 skipped on both `main` and this branch, the same 26 failing on both (this PC's setup: test_auto_handheld, test_build_long_paths, test_coverage_run, test_crash_dialog, test_crash_record, test_dev_ab, test_dev_build, test_dev_migrate, test_discover, test_game_menu_mouse_buttons, test_input_movie, test_lift_lookups, test_linux_preflight, test_make_game_cache, test_mise_build, test_mods_list, test_nfc_model_info, test_pads_after_menu, test_perf_report, test_portable_builder_home, test_portable_builder_startup, test_sampler_stack_walk, test_sdiv_overflow, test_shader_module_guard, test_split_giants, test_walk). test_longshot_ctl failed once in the full run under load (`stop_method` `exit` against `quit`) and passed twice alone. The 139 skips are this PC's missing tools (Vulkan headers, spirv-val, Linux-only checks); the checks reading the changed files were also run with the Vulkan headers found: 201 passed, the same 5 failing as on `main` plus test_sampler_admission's concurrent case once under load (passes alone, twice; on `main` too). After the rebase onto `main` @ `fd68f82c` (head `67695be9`), in the game again: `dev.py pack` and `dev.py rt` over the shared base (`be663a08`, its 1 GiB pipeline cache as a player's who updates), headless, two starts. Start 1: `split at 768 MB (device policy, RX_VK_PCACHE_SPLIT_MB): 0 parts read beside it`, the old file past the split, so the pipelines it had lost went into new parts (`_part_1` to `_part_3`, 788 + 788 + 150 MB), built in 334.4 s; play 392 s after launch. Start 2: `3 parts read beside it`, `1 play files merged`, the start-up's pipelines in 4.2 s (compute 0.5 s), load at create 0 in no cache, play 62 s after launch. No `submit failed (-3)` in either. **Still to test:** - Windows, NVIDIA, AMD and Intel: start the game twice, expecting no `pipeline cache: split at` line and the same start-up times and logs as `main`; the code path is unchanged at a split of 0 (@Beanstalk start twice on Windows NVIDIA, AMD and Intel and compare the start-up's precompile lines with main) - Linux (RADV, NVIDIA): the same, and that the renderer builds (CI, and @Beanstalk start twice on Linux) - A long play session on the Snapdragon after this change: play files merging into the open part (by hand). Blocked for now: on this Snapdragon the game freezes on scene changes (a GPU timeout, Windows' LiveKernelEvent 141, then `vk: submit <n> failed (-3)`), on `main` as well as here and with the recorder thread off; it is being investigated apart in #2566 (and #2567 makes the renderer treat that `-3` as a lost device). Three sessions with this PR (play files saved, merged at the next start, all parts read) ended in that freeze within minutes ## Measurements **Verdict:** on an Adreno X1-85 a warm start reaches play in 55 s instead of 679 s (medians of three interleaved pairs), its start-up pipelines built in 4.2 s instead of 566.8 s; it holds about 1.6 GB more private memory for the larger caches. Setup: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, 16 GB; the x64 game under emulation. One nightly-801 game folder copied twice, each starting with no pipeline cache: `main` with nightly-801's renderer, this PR with `0d80d684`'s. Headless through the control bridge, each start a queue job; order `main` cold, PR cold, then three rounds of `main` warm and PR warm. The numbers are the logs' own lines; every start is in the comment with the series. | | Before: main @ 9046a8d7 | After: this PR @ 0d80d684 | |---|---|---| | Launch to play, warm (median of 3) | 679 s (608-688) | 55 s (54-60) | | Start-up pipelines built, warm | 566.8 s | 4.2 s | | Load at create, warm | 86.8 s, 838 noted pipelines in no cache | 33.0 s, 0 in no cache | | Launch to play, cold (one run) | 821 s | 683 s | | Private memory at the title, warm | 9,182 MB | 10,815 MB | | Working set at the title, warm | 4,158 MB | 4,151 MB | | Pipeline cache files | 1 x 1024.3 MB | 770 + 770 + 770 + 390 MB | The game-free model (`tests/test_pipeline_play_cache.py`, case `cap`, a cache that keeps 50 pipelines): the second start compiles 70 of 120 on `main`, 0 here. The default, 768 MB: under the 1024.5 MB the driver keeps, with room for the pipelines built between two looks at the open cache's size (every 16 builds); the probe measured that adding to a cache slows steadily as it grows (10 s per 100 MB at first, 60 s near 1 GiB), which smaller caches also avoid. ## Risks - Only Qualcomm's own driver splits by default (device policy, by driver: Mesa's Turnip on the same GPUs keeps one cache, as it was not run). Elsewhere `pcache_split` is 0 and `start_create` makes a pipeline with the one cache as before; the parts code does nothing. - To turn it off: `RX_VK_PCACHE_SPLIT_MB=0` (one cache, as on `main`). - After updating, on Qualcomm: the first start keeps the old 1 GiB file as the first cache (already past the split), so it builds the missing pipelines once more into new part files (about 10 minutes, as every start did before); from the next start on, it is fast. - Cost on Qualcomm: the cache files take about 2.7 GB of disk instead of 1 GB, and the driver holds them in memory: about 1.4 GB more private memory at the title on this PC (16 GB). The peak working set during the start is lower, since nothing is compiled. - Still open on this hardware, not changed here: the driver-cache sample (`the driver's shader cache has 0 of 49 noted pipelines asked ... it lost them`) runs the warm pass at every start, now 4 s; the 86 mesh-fallback pipelines the driver refuses (`could not be made: -13`) are tried at every start (most of the remaining 30 s); and a separate freeze at the title (`vk: submit <n> failed (-3)`). ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: the renderer built whole with llvm-mingw here. Linux: not built here, no Linux PC; waiting for this PR's CI) - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Qualcomm's Adreno driver (31.0.178.0, X1-85) keeps the first 1024.5 MB put into a
VkPipelineCache and drops every pipeline after that with no error. A start builds its
compute pipelines first, which fill that, so the graphics pipelines after them are
compiled again at every start (issue 1551).

The play cache model gets that cap (here 50 pipelines a cache), and its driver now takes
a pipeline from the cache it is made with instead of compiling it, as a driver does. Two
new cases start twice on one folder, each start building 120 pipelines before play and
saving: on Qualcomm's driver (cap) the second start must compile none; on another
vendor's (cap-off), one cache as before, it compiles again the 70 the first could not
keep.

On main, cap fails: the second start compiles 70 of 120.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): Qualcomm's driver: the start's pipelines go into more than one pipeline cache (RX_VK_PCACHE_SPLIT_MB)
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Failing after 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
73223f10cf
Qualcomm's Adreno driver keeps the first 1024.5 MB put into a VkPipelineCache and drops
every pipeline after that with no error (31.0.178.0 on an X1-85; a game-free probe built
27,267 compute pipelines into one cache: its data stopped at 1024.5 MB, and a cache made
from it held the first 17,458 and none after). A start builds its compute pipelines first,
then the mesh fallback's, then the noted graphics ones, so on a first start the compute
ones filled it and the ~43,000 graphics pipelines were compiled again at every start
(582 s on 12 threads), and the file was never written again: its size was held at the cap,
and the save writes only a size it has not written (issue 1551).

Now, where RX_VK_PCACHE_SPLIT_MB says (768 with Qualcomm's driver, 0 elsewhere:
pcache_split.h), what the start-up compiles goes into pcache until its data is that large,
then into another cache, longshot_vk_pipelines_part_<n>.bin, and so on (at most 8 more).
Before play each cache is asked without compiling and a pipeline is compiled into the open
one when none has it (start_create, which create_cached and the preparation's compute warm
go through); in play each is asked as pcache was. The parts are read at the start before
the play files are merged into the open one, saved by their own sizes after pcache
(pcache_parts_save), dropped with pcache's files for another translator (pcache_stamp.h),
their temporaries swept (pipeline_cache_file.h), and a part another driver made drops the
precompile's marker as pcache's file does. Unsplit (every other vendor's driver) a pipeline
is made with pcache as before.

The play cache model's case cap now passes: the second start compiles none of 120.
test_compute_gate.py and test_compute_pin.py follow the preparation's warm to its new line;
pipeline_cache_save_test.cpp gets a stand-in for pcache_parts_save.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, the x64 game under emulation: this PR's renderer in a copy of a nightly-801 game folder (9046a8d7), headless through the control bridge, two starts on one folder. Start 1 (no pipeline cache): the caches split into longshot_vk_pipelines.bin + _part_1/_2/_3 (770+770+770+390 MB), 43,130 graphics + 4,879 compute pipelines built in 637 s. Start 2: 'split at 768 MB: 3 parts read beside it', the same pipelines in 4.2 s (582.1 s on main), load at create 0 in no cache (987 on main), the title reached ~51 s after launch (~11 min on main), caches not rewritten, a clean quit.

Tested in game: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, the x64 game under emulation: this PR's renderer in a copy of a nightly-801 game folder (9046a8d7), headless through the control bridge, two starts on one folder. Start 1 (no pipeline cache): the caches split into longshot_vk_pipelines.bin + _part_1/_2/_3 (770+770+770+390 MB), 43,130 graphics + 4,879 compute pipelines built in 637 s. Start 2: 'split at 768 MB: 3 parts read beside it', the same pipelines in 4.2 s (582.1 s on main), load at create 0 in no cache (987 on main), the title reached ~51 s after launch (~11 min on main), caches not rewritten, a clean quit.
windowsarmwrestler changed title from WIP: fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) to fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) 2026-11-25 01:42:45 +00:00
windowsarmwrestler changed title from fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) to WIP: fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) 2026-11-25 01:42:49 +00:00
windowsarmwrestler changed title from WIP: fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) to fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) 2026-11-25 01:43:05 +00:00
windowsarmwrestler force-pushed fix/adreno-pipeline-cache-split from 73223f10cf
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Failing after 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
to c902de64d3
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Failing after 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
2026-11-25 02:00:45 +00:00
Compare
Author
Contributor

Pushed c902de64 (rewritten as test d8842e37, then fix): the split's default moved into device policy, as docs/dev/standards.md asks of a per-PC default. device_policy.h's pcache_split is 768 MB on Qualcomm's own driver (VK_DRIVER_ID_QUALCOMM_PROPRIETARY) and 0 elsewhere, Mesa's Turnip included, so the Linux Qualcomm item left Still to test; RX_VK_PCACHE_SPLIT_MB is applied there (a whole number of MB, or 0/off). test_device_policy.py gets the field, six switch cases and a Snapdragon X Elite; the play cache model sets the policy's split instead of the switch. The test commit alone still fails (start 2 compiles 70 of 120) and the fix passes (0 of 120). In the game, a third start on the same caches: pcache_split=768 MB in the policy line, 3 parts read, pipelines in 4.4 s.

Pushed c902de64 (rewritten as test d8842e37, then fix): the split's default moved into device policy, as docs/dev/standards.md asks of a per-PC default. device_policy.h's pcache_split is 768 MB on Qualcomm's own driver (VK_DRIVER_ID_QUALCOMM_PROPRIETARY) and 0 elsewhere, Mesa's Turnip included, so the Linux Qualcomm item left Still to test; RX_VK_PCACHE_SPLIT_MB is applied there (a whole number of MB, or 0/off). test_device_policy.py gets the field, six switch cases and a Snapdragon X Elite; the play cache model sets the policy's split instead of the switch. The test commit alone still fails (start 2 compiles 70 of 120) and the fix passes (0 of 120). In the game, a third start on the same caches: pcache_split=768 MB in the policy line, 3 parts read, pipelines in 4.4 s.
Member
@review
BeanBot left a comment

Recommendation: Request changes. The split substantially improves the reported Snapdragon warm start, but recovery from missing parts can leave pipelines absent while the saved marker says they are present.

The change stores startup pipelines in multiple cache files on Qualcomm's proprietary driver and searches them before compiling. The reported warm start falls from 582.1 seconds to 4.2 seconds, at a cost of about 1.4 GB of private memory and 1.7 GB of disk space; recovery and compaction need fixes.

Blocking (1): must change before merging.

  1. L4: The check PR description / Description follows the template (pull_request_target) fails on this head and passes on the base branch: Failing after 5s.

Should fix (2): not blocking, but worth doing before merging.

  • L1 gpu/vk/vk_draw.cpp:1173: A missing or unreadable part is treated as an ordinary end of the sequence, without invalidating the precompile marker. (more on the line) Do: Detect an incomplete or unreadable part sequence, invalidate the completed marker and handle subsequent parts consistently; add a recovery test with a missing or truncated part.
  • L2 gpu/vk/vk_draw.cpp:1175: Rejected parts are removed with the narrow C file API even though the cache directory is UTF-8. (more on the line) Do: Remove the files through a UTF-8-aware wide-path helper and handle deletion failures.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The startup comparison has only one run per side, and the long play and affected-platform checks are still open. When: The reported 582.1-second versus 4.2-second result and the 1.4 GB private-memory increase come from a single comparison on one Snapdragon; the effect of repeated starts, long play and the shared path on other supported systems is not yet established. Do: Repeat the base and PR cold and warm starts in interleaved pairs on the Snapdragon, recording time and memory; run a long play session and the listed Windows and Linux Tier 1 checks, including Steam Deck.

@fix can do L1, L2 and L4.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • gpu/vk/vk_draw.cpp:1265: Does the affected Qualcomm driver silently discard excess entries when merging pipeline caches, while reporting a successful merge?

Checks: Still running: 13 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven by the required repeated comparison, although the reported effect is large: one second-start run on each side measured 582.1 seconds on the base and 4.2 seconds on the PR on an Adreno X1-85. The game-free model also reports 70 repeated compiles on the base and zero here.

Other systems: The default is unsplit on NVIDIA, AMD, Intel and Mesa Turnip, but the shared creation and save paths changed. Windows and Linux Tier 1 runs, Steam Deck coverage, and a long Snapdragon play session remain outstanding.

Switches: RX_VK_PCACHE_SPLIT_MB is added: 768 MB on Qualcomm's proprietary driver and 0 elsewhere; 0 or off disables splitting. The row and reference documentation are present. The Qualcomm default needs repeated measurements and longer play validation; other Qualcomm proprietary devices have not been tested.

Reviewed: c902de64d3 against 9046a8d750: Read the repository rules, standards and PR template, the commit messages, the changed cache implementation and surrounding initialization, creation and save paths, the new split header and test, and the relevant test and pack-script diffs. Skimmed the remaining changed test, policy and documentation diffs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. The large renderer and other changed files were not read in full.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance in trailers.
  • The split switch has a device-policy default and entries in the switch table and reference documentation.
  • The play-cache test clears inherited RX_VK_PLAY_ and RX_VK_PCACHE_ switches.
  • No game-derived files or generated shader headers appear among the changed files.

Testing: No code, tests or project scripts were run, as requested. The author reports the game-free tests passing and a Snapdragon warm-start run; CI is still running, and the head-only description check is already reported separately.

Overlaps and merge order: Not checked; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The split substantially improves the reported Snapdragon warm start, but recovery from missing parts can leave pipelines absent while the saved marker says they are present. The change stores startup pipelines in multiple cache files on Qualcomm's proprietary driver and searches them before compiling. The reported warm start falls from 582.1 seconds to 4.2 seconds, at a cost of about 1.4 GB of private memory and 1.7 GB of disk space; recovery and compaction need fixes. **Blocking (1)**: must change before merging. 1. **L4**: The check `PR description / Description follows the template (pull_request_target)` fails on this head and passes on the base branch: Failing after 5s. **Should fix (2)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_draw.cpp:1173`: A missing or unreadable part is treated as an ordinary end of the sequence, without invalidating the precompile marker. (more on the line) **Do:** Detect an incomplete or unreadable part sequence, invalidate the completed marker and handle subsequent parts consistently; add a recovery test with a missing or truncated part. - **L2** `gpu/vk/vk_draw.cpp:1175`: Rejected parts are removed with the narrow C file API even though the cache directory is UTF-8. (more on the line) **Do:** Remove the files through a UTF-8-aware wide-path helper and handle deletion failures. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The startup comparison has only one run per side, and the long play and affected-platform checks are still open. *When:* The reported 582.1-second versus 4.2-second result and the 1.4 GB private-memory increase come from a single comparison on one Snapdragon; the effect of repeated starts, long play and the shared path on other supported systems is not yet established. **Do:** Repeat the base and PR cold and warm starts in interleaved pairs on the Snapdragon, recording time and memory; run a long play session and the listed Windows and Linux Tier 1 checks, including Steam Deck. `@fix` can do L1, L2 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `gpu/vk/vk_draw.cpp:1265`: Does the affected Qualcomm driver silently discard excess entries when merging pipeline caches, while reporting a successful merge? **Checks:** Still running: 13 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven by the required repeated comparison, although the reported effect is large: one second-start run on each side measured 582.1 seconds on the base and 4.2 seconds on the PR on an Adreno X1-85. The game-free model also reports 70 repeated compiles on the base and zero here. **Other systems:** The default is unsplit on NVIDIA, AMD, Intel and Mesa Turnip, but the shared creation and save paths changed. Windows and Linux Tier 1 runs, Steam Deck coverage, and a long Snapdragon play session remain outstanding. **Switches:** RX_VK_PCACHE_SPLIT_MB is added: 768 MB on Qualcomm's proprietary driver and 0 elsewhere; 0 or off disables splitting. The row and reference documentation are present. The Qualcomm default needs repeated measurements and longer play validation; other Qualcomm proprietary devices have not been tested. **Reviewed:** c902de64d383 against 9046a8d75019: Read the repository rules, standards and PR template, the commit messages, the changed cache implementation and surrounding initialization, creation and save paths, the new split header and test, and the relevant test and pack-script diffs. Skimmed the remaining changed test, policy and documentation diffs. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. The large renderer and other changed files were not read in full.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance in trailers. - The split switch has a device-policy default and entries in the switch table and reference documentation. - The play-cache test clears inherited RX_VK_PLAY_ and RX_VK_PCACHE_ switches. - No game-derived files or generated shader headers appear among the changed files. **Testing:** No code, tests or project scripts were run, as requested. The author reports the game-free tests passing and a Snapdragon warm-start run; CI is still running, and the head-only description check is already reported separately. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -1115,0 +1170,4 @@
VkPipelineCacheCreateInfo ci{VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO};
ci.initialDataSize = part.size(), ci.pInitialData = part.data();
if (part.empty() || vkCreatePipelineCache(dev.device, &ci, nullptr, &c) != VK_SUCCESS || !c) {
const bool there = part.rejected() || !part.empty();
Member

L1 (should fix): A missing or unreadable part is treated as an ordinary end of the sequence, without invalidating the precompile marker.

When: If part 1 is deleted, truncated to 32 bytes or less, or cannot be opened, pcache_file_read returns an empty non-rejected result. The loop stops with pcache_file_rejected still false even if later parts and a completed marker exist, so startup can skip rebuilding pipelines that were in the missing parts and compile them during play.

Do: Detect an incomplete or unreadable part sequence, invalidate the completed marker and handle subsequent parts consistently; add a recovery test with a missing or truncated part.

**L1** (should fix): A missing or unreadable part is treated as an ordinary end of the sequence, without invalidating the precompile marker. *When:* If part 1 is deleted, truncated to 32 bytes or less, or cannot be opened, pcache_file_read returns an empty non-rejected result. The loop stops with pcache_file_rejected still false even if later parts and a completed marker exist, so startup can skip rebuilding pipelines that were in the missing parts and compile them during play. **Do:** Detect an incomplete or unreadable part sequence, invalidate the completed marker and handle subsequent parts consistently; add a recovery test with a missing or truncated part.
@ -1115,0 +1172,4 @@
if (part.empty() || vkCreatePipelineCache(dev.device, &ci, nullptr, &c) != VK_SUCCESS || !c) {
const bool there = part.rejected() || !part.empty();
if (part.reset() && there)
for (int j = i; j <= pcache_split::kMostParts; j++) remove(pcache_path_at(j).c_str());
Member

L2 (should fix): Rejected parts are removed with the narrow C file API even though the cache directory is UTF-8.

When: On Windows, a game folder containing characters outside the active code page can be read through PipelineCacheFile's wide API, but remove can fail to delete its rejected part files. Those files remain and can be encountered again on subsequent starts.

Do: Remove the files through a UTF-8-aware wide-path helper and handle deletion failures.

**L2** (should fix): Rejected parts are removed with the narrow C file API even though the cache directory is UTF-8. *When:* On Windows, a game folder containing characters outside the active code page can be read through PipelineCacheFile's wide API, but remove can fail to delete its rejected part files. Those files remain and can be encountered again on subsequent starts. **Do:** Remove the files through a UTF-8-aware wide-path helper and handle deletion failures.
windowsarmwrestler changed title from fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) to WIP: fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) 2026-11-25 03:26:55 +00:00
#2496's review: a part that cannot be read (deleted, or cut short so that its header
cannot be read) was taken for the end of the parts. The parts after it stayed on disk
unread and the precompile's marker stayed, so a start that trusts the marker would compile
what those parts held in play.

The play cache model's fake reader now answers as PipelineCacheFile::read does: a file
missing or too short for its header is no data and not rejected (it marked those rejected);
another driver's header is rejected. Two cases make a split folder with a start of the case
cap, delete or cut its part 1, then start: the parts from part 1 on must be gone, the marker
dropped (pcache_file_rejected), and the 88 pipelines the parts held built again.

On this branch's head both fail: pcache_file_rejected stays false.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(vk): a split pipeline cache's part that cannot be read drops the parts after it and the precompile's marker
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 16s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
0d80d68435
#2496's review: pcache_parts_read took a part it could not read for the end of the parts
when the reader gave no data without rejecting the file (deleted, or cut short so that its
header could not be read): the parts after it stayed on disk unread and the marker stayed.

Now a part that cannot be used while its own file or a later part's is there, and parts
found with no main file read, are removed with the parts after them (pcache_parts_drop),
and pcache_file_rejected drops the marker as it does for pcache's own file, so
precompile_run builds what they held again before play. The files go through
std::filesystem::remove, as pcache_stamp.h removes the cache's files, and a removal that
fails is logged. (The narrow remove() took UTF-8 paths in the game already: longshot.exe's
manifest sets the process's code page to UTF-8, nx2/win_manifest.py.)

The play cache model's cases part-missing and part-cut now pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Thanks for the review. Pushed 0d80d684: L1 and L2 fixed, as a test commit (d779bc6d, failing on the previous head) and then the fix. Point by point:

L4 (blocking), the description check. It fails because the PR was marked ready while one When it applies box is still unticked: Host code builds on Windows (llvm-mingw) and Linux. That check gates the rest of CI (every other job shows Blocked by required conditions), so the Linux build that would settle the box can't run. I've put the PR back to WIP so the check passes and CI runs; once the Linux build is green I'll tick the box and mark it ready again.

L1, a missing or unreadable part: fixed. Confirmed: PipelineCacheFile::read gives no data, without rejecting, for a file that's missing or too short for its header, so a deleted or truncated part 1 was taken for the end of the parts, the later parts stayed unread, and the marker stayed. Now (pcache_parts_read):

  • a part that can't be used while its own file or any later part's is there, and parts found with no main file read, are removed with every part after them (pcache_parts_drop);
  • pcache_file_rejected is set, so precompile_run drops the marker and builds them again before play, as for the main file.

Test: the play cache model's fake reader now answers as the real one does (missing or short: no data, not rejected; another driver's header: rejected), and two new cases make a split folder with a start of cap, then delete or truncate part 1 and start again: the parts must be gone, the marker dropped, and the 88 pipelines they held built again. Both fail on c902de64 (pcache_file_rejected stays false) and pass here; with the fix's existence check removed they fail again. All 25 cases pass.

On Qualcomm today this was masked: the driver-cache sample (the driver's shader cache has 0 of 49 noted pipelines asked ... it lost them) drops the marker at every start, since that driver seems to keep no cache of its own. It would have mattered once that sample is fixed, so it's worth having right.

L2, narrow remove(): changed, though it wasn't failing in the game. longshot.exe's manifest sets the process's active code page to UTF-8 (nx2/win_manifest.py), which makes the C runtime's narrow file functions take UTF-8 in the whole process, longshot_vk.dll included; the play-file code beside it uses remove() the same way. For consistency with pcache_stamp.h, the parts now go through std::filesystem::remove, and a removal that fails is logged.

Question: does the driver drop entries silently on a merge? Not measured directly: the probe measured creation, where the driver drops silently past 1024.5 MB. The merges here don't go near that: play_files_merge merges into the open cache (pcache_at(open)), which is under the 768 MB split by construction, and the play files are KB to a few MB each (9 KB in the runs above). The split leaves about 256 MB of room under the cap for that and for the builds between two looks at the size. I can add a merge-at-the-cap step to the probe if you'd like it pinned down.

L3, testing. Agreed. The plan:

  • On the Snapdragon: interleaved pairs, main and this PR, warm starts three times each and one more cold start each, recording the start-up's times and private memory from the logs. I'll post the table here.
  • A long play session on the Snapdragon (by hand), for play files merging into the open part.
  • Tier 1, Windows and Linux, Steam Deck included: through the Test Farm, which needs a BigBean's approval; the request is in Still to test.

The change doesn't alter the path other drivers take (pcache_split is 0 there and start_create makes a pipeline with the one cache, as before), but the Test Farm runs are what should show that.

Thanks for the review. Pushed `0d80d684`: L1 and L2 fixed, as a test commit (`d779bc6d`, failing on the previous head) and then the fix. Point by point: **L4 (blocking), the description check.** It fails because the PR was marked ready while one *When it applies* box is still unticked: *Host code builds on Windows (llvm-mingw) and Linux*. That check gates the rest of CI (every other job shows *Blocked by required conditions*), so the Linux build that would settle the box can't run. I've put the PR back to WIP so the check passes and CI runs; once the Linux build is green I'll tick the box and mark it ready again. **L1, a missing or unreadable part: fixed.** Confirmed: `PipelineCacheFile::read` gives no data, without rejecting, for a file that's missing *or* too short for its header, so a deleted or truncated part 1 was taken for the end of the parts, the later parts stayed unread, and the marker stayed. Now (`pcache_parts_read`): - a part that can't be used while its own file or any later part's is there, and parts found with no main file read, are removed with every part after them (`pcache_parts_drop`); - `pcache_file_rejected` is set, so `precompile_run` drops the marker and builds them again before play, as for the main file. Test: the play cache model's fake reader now answers as the real one does (missing or short: no data, not rejected; another driver's header: rejected), and two new cases make a split folder with a start of `cap`, then delete or truncate part 1 and start again: the parts must be gone, the marker dropped, and the 88 pipelines they held built again. Both fail on `c902de64` (`pcache_file_rejected` stays false) and pass here; with the fix's existence check removed they fail again. All 25 cases pass. On Qualcomm today this was masked: the driver-cache sample (`the driver's shader cache has 0 of 49 noted pipelines asked ... it lost them`) drops the marker at every start, since that driver seems to keep no cache of its own. It would have mattered once that sample is fixed, so it's worth having right. **L2, narrow `remove()`: changed, though it wasn't failing in the game.** `longshot.exe`'s manifest sets the process's active code page to UTF-8 (`nx2/win_manifest.py`), which makes the C runtime's narrow file functions take UTF-8 in the whole process, `longshot_vk.dll` included; the play-file code beside it uses `remove()` the same way. For consistency with `pcache_stamp.h`, the parts now go through `std::filesystem::remove`, and a removal that fails is logged. **Question: does the driver drop entries silently on a merge?** Not measured directly: the probe measured creation, where the driver drops silently past 1024.5 MB. The merges here don't go near that: `play_files_merge` merges into the *open* cache (`pcache_at(open)`), which is under the 768 MB split by construction, and the play files are KB to a few MB each (9 KB in the runs above). The split leaves about 256 MB of room under the cap for that and for the builds between two looks at the size. I can add a merge-at-the-cap step to the probe if you'd like it pinned down. **L3, testing.** Agreed. The plan: - On the Snapdragon: interleaved pairs, `main` and this PR, warm starts three times each and one more cold start each, recording the start-up's times and private memory from the logs. I'll post the table here. - A long play session on the Snapdragon (by hand), for play files merging into the open part. - Tier 1, Windows and Linux, Steam Deck included: through the Test Farm, which needs a BigBean's approval; the request is in *Still to test*. The change doesn't alter the path other drivers take (`pcache_split` is 0 there and `start_create` makes a pipeline with the one cache, as before), but the Test Farm runs are what should show that.
Author
Contributor

L3: the repeated start-up comparison, main against this PR, interleaved on the Snapdragon.

Setup: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, 16 GB; the x64 game under emulation. One nightly-801 game folder (9046a8d7) copied twice, each starting with no pipeline cache: main with nightly-801's own renderer, this PR with 0d80d684's (dev.py vk). Headless through the control bridge, each start a queue job, the title for 20 s, then a quit. Order: main cold, PR cold, then main and PR warm, three rounds. The numbers are the logs' own lines; launch to play is from the start to what play makes goes into play files.

Start Side Launch to play (s) Start-up pipelines built (s) of them compute (s) Load at create (s) Noted pipelines in no cache Private MB at title Working set (peak) MB Parts read
cold main 821 736.3 137.2 74.6 838 9,230 4,325 (9,217) -
cold PR 683 630.8 144.5 41.0 0 10,943 4,684 (9,025) 0
warm 1 main 608 518.8 130.9 71.4 838 9,176 4,158 (7,958) -
warm 1 PR 60 5.6 0.9 34.2 0 10,815 4,151 (8,685) 3
warm 2 main 688 566.8 147.3 102.4 838 9,189 4,225 (9,531) -
warm 2 PR 55 4.1 0.5 33.0 0 10,798 4,141 (9,091) 3
warm 3 main 679 577.2 143.5 86.8 838 9,182 4,115 (8,788) -
warm 3 PR 54 4.2 0.5 31.5 0 10,818 4,159 (7,995) 3

Medians of the three warm starts:

Before: main @ 9046a8d7 After: this PR @ 0d80d684
Launch to play 679 s 55 s
Start-up pipelines built 566.8 s 4.2 s
Load at create 86.8 s, 838 in no cache 33.0 s, 0 in no cache
Private memory at the title 9,182 MB 10,815 MB (+1,633 MB)
Working set at the title 4,158 MB 4,151 MB
  • The warm start is about 12× faster and steady across the three (54-60 s against 608-688 s).
  • The cold start is faster too: 683 s against 821 s (pipelines 631 s against 736 s), as the probe's slower inserts into a large cache would suggest. One run each, so treat that as a hint.
  • Memory: the cost is about 1.6 GB more private memory at the title, steady across the starts (the driver holds the 2.7 GB of caches it was handed against 1 GiB); the working set at the title is the same, and the peak during the start varies run to run on both sides with no direction.
  • No submit failed (-3) in any of the eight starts.

A correction to how the description puts the cause. On main's cold start here, the save during the build wrote the cache at the cap (pipeline cache saved (1048885 KB)) while compute pipelines were still being built: the 12 workers take the pipelines in the queue's order (compute, then the mesh fallback's, then graphics), but what fills the first 1024.5 MB is what finishes first, and the slowest compute pipelines (up to 29 s each) finish after it. So on main every warm start here still builds its compute pipelines (131-147 s) and most of the graphics ones; it is ~200 s faster than the cold start because about 1 GiB of the 2.7 GB comes back. In #1551's report and my first run the compute ones had hit (their folders' caches had been started by the builder's preparation, which builds the compute pipelines on their own first). The cause is the same either way: the driver keeps the first 1024.5 MB it is given and drops the rest. I'll correct the description's wording.

Still to come: a long play session on the Snapdragon by hand, and the Tier 1 runs through the Test Farm.

**L3: the repeated start-up comparison**, `main` against this PR, interleaved on the Snapdragon. Setup: Windows 11 ARM64, Snapdragon X Elite, Adreno X1-85, driver 31.0.178.0, 16 GB; the x64 game under emulation. One nightly-801 game folder (`9046a8d7`) copied twice, each starting with no pipeline cache: `main` with nightly-801's own renderer, this PR with `0d80d684`'s (`dev.py vk`). Headless through the control bridge, each start a queue job, the title for 20 s, then a quit. Order: `main` cold, PR cold, then `main` and PR warm, three rounds. The numbers are the logs' own lines; launch to play is from the start to `what play makes goes into play files`. | Start | Side | Launch to play (s) | Start-up pipelines built (s) | of them compute (s) | Load at create (s) | Noted pipelines in no cache | Private MB at title | Working set (peak) MB | Parts read | |---|---|---|---|---|---|---|---|---|---| | cold | main | 821 | 736.3 | 137.2 | 74.6 | 838 | 9,230 | 4,325 (9,217) | - | | cold | PR | 683 | 630.8 | 144.5 | 41.0 | 0 | 10,943 | 4,684 (9,025) | 0 | | warm 1 | main | 608 | 518.8 | 130.9 | 71.4 | 838 | 9,176 | 4,158 (7,958) | - | | warm 1 | PR | 60 | 5.6 | 0.9 | 34.2 | 0 | 10,815 | 4,151 (8,685) | 3 | | warm 2 | main | 688 | 566.8 | 147.3 | 102.4 | 838 | 9,189 | 4,225 (9,531) | - | | warm 2 | PR | 55 | 4.1 | 0.5 | 33.0 | 0 | 10,798 | 4,141 (9,091) | 3 | | warm 3 | main | 679 | 577.2 | 143.5 | 86.8 | 838 | 9,182 | 4,115 (8,788) | - | | warm 3 | PR | 54 | 4.2 | 0.5 | 31.5 | 0 | 10,818 | 4,159 (7,995) | 3 | Medians of the three warm starts: | | Before: main @ 9046a8d7 | After: this PR @ 0d80d684 | |---|---|---| | Launch to play | 679 s | **55 s** | | Start-up pipelines built | 566.8 s | **4.2 s** | | Load at create | 86.8 s, 838 in no cache | **33.0 s, 0 in no cache** | | Private memory at the title | 9,182 MB | 10,815 MB (**+1,633 MB**) | | Working set at the title | 4,158 MB | 4,151 MB | - **The warm start is about 12× faster** and steady across the three (54-60 s against 608-688 s). - **The cold start is faster too**: 683 s against 821 s (pipelines 631 s against 736 s), as the probe's slower inserts into a large cache would suggest. One run each, so treat that as a hint. - **Memory:** the cost is about 1.6 GB more private memory at the title, steady across the starts (the driver holds the 2.7 GB of caches it was handed against 1 GiB); the working set at the title is the same, and the peak during the start varies run to run on both sides with no direction. - No `submit failed (-3)` in any of the eight starts. A correction to how the description puts the cause. On `main`'s cold start here, the save during the build wrote the cache at the cap (`pipeline cache saved (1048885 KB)`) while compute pipelines were still being built: the 12 workers take the pipelines in the queue's order (compute, then the mesh fallback's, then graphics), but what fills the first 1024.5 MB is what *finishes* first, and the slowest compute pipelines (up to 29 s each) finish after it. So on `main` every warm start here still builds its compute pipelines (131-147 s) and most of the graphics ones; it is ~200 s faster than the cold start because about 1 GiB of the 2.7 GB comes back. In #1551's report and my first run the compute ones had hit (their folders' caches had been started by the builder's preparation, which builds the compute pipelines on their own first). The cause is the same either way: the driver keeps the first 1024.5 MB it is given and drops the rest. I'll correct the description's wording. Still to come: a long play session on the Snapdragon by hand, and the Tier 1 runs through the Test Farm.
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The repeated Snapdragon comparison shows a substantial warm-start improvement, but the long-play and affected-platform runs remain outstanding. Recommend approval; not approved on the forge.

The change splits Qualcomm pipeline caches so pipelines discarded by the driver can be retained across starts. It greatly reduces warm-start time on the tested Snapdragon, at a cost of about 1.6 GB of private memory and larger cache files.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L3: The long play session and affected-platform checks remain open. When: Play-cache merging on Snapdragon and startup on the other affected Windows and Linux systems have not yet been exercised in the reported runs. Do: Run a long Snapdragon play session and the described Tier 1 Windows and Linux startup checks, including Steam Deck.

Since the last review (on c902de64d3)
Resolved: L1 (A missing or unreadable part is treated as an ordinary end of the sequence, without invali…); L2 (Rejected parts are removed with the narrow C file API even though the cache directory is U…); L4 (The check PR description / Description follows the template (pull_request_target) fails…)
Still open: L3 (The long play session and affected-platform checks remain open.)

Checks: Still running: 13 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes. Three interleaved warm runs on the reported Snapdragon X Elite reduced median launch-to-play time from 679 s to 55 s and pipeline-building time from 566.8 s to 4.2 s. Median private memory at the title rose from 9,182 MB to 10,815 MB.

Other systems: Qualcomm's proprietary driver splits by default; other drivers, including Turnip, default to one cache. Windows and Linux runs on other GPU vendors, Steam Deck coverage, and a long Snapdragon play session remain outstanding.

Switches: RX_VK_PCACHE_SPLIT_MB sets the split size or disables splitting with 0/off. Its device-policy default is 768 MB on Qualcomm's proprietary driver and 0 elsewhere; the tested Qualcomm default leaves room below the reported driver cap.

Reviewed: 0d80d68435 against 9046a8d750: Read the changes since c902de64, the affected cache-loading and marker references, repository rules and pull request template; skimmed the full pull request diff and reported runs. The full changed code files and all dependent code were not read in full; docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The missing and truncated part cases now cause marker invalidation and removal of subsequent parts.
  • The reported game-free tests distinguish the fix from the previous head.
  • The reported repeated warm-start measurements show a gain substantially larger than run-to-run variation.

Testing: No code or tests were run during this review. The author reports Windows ARM64 game runs, game-free tests and a Windows renderer build; Linux build and hardware runs remain pending. CI is still running.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The repeated Snapdragon comparison shows a substantial warm-start improvement, but the long-play and affected-platform runs remain outstanding. Recommend approval; not approved on the forge. The change splits Qualcomm pipeline caches so pipelines discarded by the driver can be retained across starts. It greatly reduces warm-start time on the tested Snapdragon, at a cost of about 1.6 GB of private memory and larger cache files. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The long play session and affected-platform checks remain open. *When:* Play-cache merging on Snapdragon and startup on the other affected Windows and Linux systems have not yet been exercised in the reported runs. **Do:** Run a long Snapdragon play session and the described Tier 1 Windows and Linux startup checks, including Steam Deck. **Since the last review** (on c902de64d383) Resolved: L1 (A missing or unreadable part is treated as an ordinary end of the sequence, without invali…); L2 (Rejected parts are removed with the narrow C file API even though the cache directory is U…); L4 (The check `PR description / Description follows the template (pull_request_target)` fails…) Still open: L3 (The long play session and affected-platform checks remain open.) **Checks:** Still running: 13 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes. Three interleaved warm runs on the reported Snapdragon X Elite reduced median launch-to-play time from 679 s to 55 s and pipeline-building time from 566.8 s to 4.2 s. Median private memory at the title rose from 9,182 MB to 10,815 MB. **Other systems:** Qualcomm's proprietary driver splits by default; other drivers, including Turnip, default to one cache. Windows and Linux runs on other GPU vendors, Steam Deck coverage, and a long Snapdragon play session remain outstanding. **Switches:** RX_VK_PCACHE_SPLIT_MB sets the split size or disables splitting with 0/off. Its device-policy default is 768 MB on Qualcomm's proprietary driver and 0 elsewhere; the tested Qualcomm default leaves room below the reported driver cap. **Reviewed:** 0d80d684356e against 9046a8d75019: Read the changes since c902de64, the affected cache-loading and marker references, repository rules and pull request template; skimmed the full pull request diff and reported runs. The full changed code files and all dependent code were not read in full; docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The missing and truncated part cases now cause marker invalidation and removal of subsequent parts. - The reported game-free tests distinguish the fix from the previous head. - The reported repeated warm-start measurements show a gain substantially larger than run-to-run variation. **Testing:** No code or tests were run during this review. The author reports Windows ARM64 game runs, game-free tests and a Windows renderer build; Linux build and hardware runs remain pending. CI is still running. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Contributor

@llun thanks for asking for the second review: BeanBot now recommends approval, with only testing left.

Two things this PR needs from a maintainer:

  • Approving the CI run. Every job but the description check still shows Blocked by required conditions on 0d80d684 (a first-time contributor's fork, I think). The Host code builds on ... Linux box is waiting for that run; once it is green I'll tick it and mark this ready.
  • The Tier 1 runs in Still to test (Windows NVIDIA, AMD and Intel; Linux; Steam Deck), through the Test Farm if a BigBean will approve them: start twice and compare the start-up's lines with main. On those drivers pcache_split is 0 and the creation path is the one cache's, as before.

The long Snapdragon session is blocked by a separate problem, now noted in #2566: on this PC the game freezes on scene changes (a GPU timeout, LiveKernelEvent 141, then submit failed (-3)), on main too.

@llun thanks for asking for the second review: BeanBot now recommends approval, with only testing left. Two things this PR needs from a maintainer: - **Approving the CI run.** Every job but the description check still shows *Blocked by required conditions* on `0d80d684` (a first-time contributor's fork, I think). The *Host code builds on ... Linux* box is waiting for that run; once it is green I'll tick it and mark this ready. - **The Tier 1 runs** in *Still to test* (Windows NVIDIA, AMD and Intel; Linux; Steam Deck), through the Test Farm if a BigBean will approve them: start twice and compare the start-up's lines with `main`. On those drivers `pcache_split` is 0 and the creation path is the one cache's, as before. The long Snapdragon session is blocked by a separate problem, now noted in #2566: on this PC the game freezes on scene changes (a GPU timeout, LiveKernelEvent 141, then `submit failed (-3)`), on `main` too.
Author
Contributor

Still to test: the long Snapdragon session's blocker now links its issue, #2566 (the GPU timeouts on scene changes), and #2567 (the renderer treating the driver's -3 after a GPU reset as a lost device).

Still to test: the long Snapdragon session's blocker now links its issue, #2566 (the GPU timeouts on scene changes), and #2567 (the renderer treating the driver's -3 after a GPU reset as a lost device).
windowsarmwrestler force-pushed fix/adreno-pipeline-cache-split from 0d80d68435
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 16s
PR description / Title and description (pull_request_target) Successful in 5s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 67695be98b
Some checks reported errors
PR description / Title and description (pull_request_target) Failing after 18s
beanstalk/approval approved by llun (reviewed)
beanstalk/windows+nvidia 0/1 pass, 2 error
beanstalk/windows+intel 0/1 pass, 0 running, 1 queued
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/windows+qualcomm 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 1/1 pass
beanstalk/linux+nvidia 1/1 pass
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
2026-11-25 23:11:19 +00:00
Compare
Author
Contributor

Rebased onto main @ fd68f82c (19 commits past the old base, the Rust builder and the game/ refactor among them): no conflicts, and the four commits' own changes are unchanged (git range-diff: only a context line moved, main's own rename of host/game_layout.c in a comment beside packs.py). Head 67695be9. On it: every check reading the changed files passes (pipeline_play_cache, device_policy, pcache_split, pcache_stamp, switch_table, dev_packs, pipeline_cache_file, compute_gate, compute_pin); the 6 that fail (test_dev_ab, test_dev_build, test_input_movie, test_precompile_compute_guard, test_sampler_admission, test_shader_module_guard) fail on this main on this PC too. The renderer builds whole on it with the new builder (dev.py vk, llvm-mingw, exports checked). The measurements were taken on 0d80d684, whose code this head carries unchanged: they still hold. CI on the new head still waits for a maintainer's approval.

Rebased onto main @ fd68f82c (19 commits past the old base, the Rust builder and the game/ refactor among them): no conflicts, and the four commits' own changes are unchanged (git range-diff: only a context line moved, main's own rename of host/game_layout.c in a comment beside packs.py). Head 67695be9. On it: every check reading the changed files passes (pipeline_play_cache, device_policy, pcache_split, pcache_stamp, switch_table, dev_packs, pipeline_cache_file, compute_gate, compute_pin); the 6 that fail (test_dev_ab, test_dev_build, test_input_movie, test_precompile_compute_guard, test_sampler_admission, test_shader_module_guard) fail on this main on this PC too. The renderer builds whole on it with the new builder (dev.py vk, llvm-mingw, exports checked). The measurements were taken on 0d80d684, whose code this head carries unchanged: they still hold. CI on the new head still waits for a maintainer's approval.
Author
Contributor

The rebased head 67695be9 ran in the game on the current main (dev.py pack and rt over the shared base be663a08, whose 1 GiB pipeline cache is what a player who updates has). Start 1: the old file was past the split, so what it had lost went into three new parts (788 + 788 + 150 MB), built in 334.4 s, play at 392 s. Start 2: 3 parts read, 1 play file merged, the start-up's pipelines in 4.2 s, load at create 0 in no cache, play at 62 s. No submit failed (-3) in either. Added to Testing.

The rebased head 67695be9 ran in the game on the current main (dev.py pack and rt over the shared base be663a08, whose 1 GiB pipeline cache is what a player who updates has). Start 1: the old file was past the split, so what it had lost went into three new parts (788 + 788 + 150 MB), built in 334.4 s, play at 392 s. Start 2: 3 parts read, 1 play file merged, the start-up's pipelines in 4.2 s, load at create 0 in no cache, play at 62 s. No submit failed (-3) in either. Added to Testing.
Author
Contributor

@llun could you approve the CI run for this PR? Every job except the description check has been "Blocked by required conditions" since it opened (my fork's first PR, so I think the workflows need a maintainer's approval). The last unticked box, "Host code builds on Windows and Linux", is waiting on CI's Linux build; the Windows renderer builds and runs here. Once it's green I'll tick the box and mark this ready.

If a Tier 1 run would help too: @Beanstalk start the game twice on Windows NVIDIA, Windows AMD and Linux, and compare the start-up's precompile and pipeline-cache log lines with main (they should be the same: the split is off on every driver but Qualcomm's).

@llun could you approve the CI run for this PR? Every job except the description check has been "Blocked by required conditions" since it opened (my fork's first PR, so I think the workflows need a maintainer's approval). The last unticked box, "Host code builds on Windows and Linux", is waiting on CI's Linux build; the Windows renderer builds and runs here. Once it's green I'll tick the box and mark this ready. If a Tier 1 run would help too: @Beanstalk start the game twice on Windows NVIDIA, Windows AMD and Linux, and compare the start-up's precompile and pipeline-cache log lines with main (they should be the same: the split is off on every driver but Qualcomm's).
Member

@windowsarmwrestler only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@windowsarmwrestler only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
windowsarmwrestler changed title from WIP: fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) to fix(vk): Qualcomm's driver keeps 1 GiB of a pipeline cache: the start-up's pipelines go into several (RX_VK_PCACHE_SPLIT_MB) 2026-11-27 15:53:13 +00:00
Member

@Beanstalk

@Beanstalk
Member

Beanstalk test farm · 🔄 testing (10 of 7 reports so far)

Commit 67695be · approved by llun (reviewed) · dashboard

⚠️ Note: The Qualcomm target requires a volunteer with the qualcomm tag; the farm cannot guarantee the specific reported Adreno driver or reproduce its cache cap on other GPUs.
⚠️ Note: The plan does not force cache splitting or corrupt cache parts, and it cannot verify the reported long Snapdragon play session or the exact consecutive-start cache-file contents.
⚠️ Note: Warm-driver cache control is Linux-only; Windows uses the normal-cache scenario, and precompile/cache log lines are available in results but are not compared line by line.

Started at 2026-11-28 04:22 UTC.

⚠ No tester has a PC for windows+qualcomm (none seen in 14 days): it waits until one signs in.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ⚠️ couldn't be judged 2 1 2 — — none
windows+amd ⚠️ couldn't be judged 2 1 2 — — none
windows+intel ⏳ queued 1 1 — — none
windows+qualcomm ⏳ queued 0 of 1 — — —
linux+nvidia ✅ pass 1 1 17.8 → 18.2 (+2%) — none
linux+radv ⚠️ couldn't be judged 2 1 2 — — none
steamdeck ✅ pass 2 1 2 35.1 → 32.9 (−6%) — none

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • windows+nvidia, report 1: main's longshot-builder failed (exit 1): could not compile 'crc32fast' (build script) due to 1 previous error
  • windows+nvidia, report 2: main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error
  • windows+amd, report 1: main's longshot-builder failed (exit 1): could not compile 'quote' (build script) due to 1 previous error
  • windows+amd, report 2: main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error
  • windows+intel, report 1: main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error
  • linux+radv, report 1: the main base failed (exit 1): The game's Rust (longshot-rs) has no prebuilt library for these sources (c60d8f80f5d1), and nothing here to build it with: in a checkout, install Rust (mise install) or set LONGSHOT_CARGO; a release's tree car
  • linux+radv, report 2: the main base failed (exit 1): The game's Rust (longshot-rs) has no prebuilt library for these sources (c60d8f80f5d1), and nothing here to build it with: in a checkout, install Rust (mise install) or set LONGSHOT_CARGO; a release's tree car
  • steamdeck, report 2: main's longshot-builder failed (exit 1): Traceback (most recent call last):
What was tested

What will be tested · AI plan (gpt-6.1-terra)

The plan compares startup pipeline preparation and cache behavior against main on Windows NVIDIA, AMD, Intel and Qualcomm hardware, Linux NVIDIA and RADV, and Steam Deck. Each side gets two starts in a normal-cache scenario and, on Linux, two with a warmed driver cache; gameplay then visits Hyrule Field and Market for 20 seconds each. It measures startup, pipeline preparation, frame times and pictures; crashes, substantial startup or frame-time regressions, or large picture differences fail the plan. The Qualcomm and Steam Deck targets have no matching testers shown online and will wait for them. No tester online now matches windows+qualcomm, linux+nvidia, steamdeck: those targets wait for one.

  • Where: windows+nvidia (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports), windows+qualcomm (1-2 reports), linux+nvidia (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports).
  • normal-cache: from the repository's save kokiri-start, then teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up); 2 runs on each side.
  • warm-driver: from the repository's save kokiri-start (each side's driver shader cache kept across its starts, filled first by an unmeasured start, Linux only for now), then teleport to Hyrule Field, take the picture warm-field to compare with main, measure field for 20 s (after 10 s warm-up); 2 runs on each side.
  • Measured: crashes, boot time, shader preparation at start, frame times, stutters and hitches, memory and CPU time.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or boot time is more than 20% above main; or frame time (p99) is more than 15% above main; or shader preparation time is more than 20% above main.
  • Time: about 58 min of game runs per tester (10 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

Verdict: could not be judged on windows+nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `windows+amd`, for the PR description

Verdict: could not be judged on windows+amd (2 reports).

Hardware: 1: windows+amd+amd-proprietary+igpu+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM; 2: windows+amd+amd-proprietary+dgpu+xess AMD Radeon RX 6700 XT, 2.0.353 AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+amd (2 reports).

Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `windows+intel`, for the PR description

Verdict: queued on windows+intel (1 report).

Hardware: 1: windows+intel+intel-proprietary+igpu Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** queued on windows+intel (1 report).

Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `linux+nvidia`, for the PR description

Verdict: pass on linux+nvidia (1 report): no rule failed and no PR run crashed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ fd68f82 After: this PR @ 67695be
normal-cache · boot time (s) 27.9 27.6 (−1%)
normal-cache · field · frame time (p99) (ms) 17.8 18.2 (+2%)
normal-cache · market · frame time (p99) (ms) 19.2 18.7 (−3%)
normal-cache · shader preparation time (s) 0.2 0.2 (+0%)
warm-driver · boot time (s) 21.9 21.6 (−2%)
warm-driver · field · frame time (p99) (ms) 17.6 18.2 (+3%)
warm-driver · shader preparation time (s) 0.7 0.6 (−7%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** pass on linux+nvidia (1 report): no rule failed and no PR run crashed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ fd68f82 | After: this PR @ 67695be |
|---|---|---|
| normal-cache · boot time (s) | 27.9 | 27.6 (−1%) |
| normal-cache · field · frame time (p99) (ms) | 17.8 | 18.2 (+2%) |
| normal-cache · market · frame time (p99) (ms) | 19.2 | 18.7 (−3%) |
| normal-cache · shader preparation time (s) | 0.2 | 0.2 (+0%) |
| warm-driver · boot time (s) | 21.9 | 21.6 (−2%) |
| warm-driver · field · frame time (p99) (ms) | 17.6 | 18.2 (+3%) |
| warm-driver · shader preparation time (s) | 0.7 | 0.6 (−7%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `linux+radv`, for the PR description

Verdict: could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `steamdeck`, for the PR description

Verdict: pass on steamdeck (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ fd68f82 After: this PR @ 67695be
normal-cache · boot time (s) 38.8 37.9 (−2%)
normal-cache · field · frame time (p99) (ms) 35.1 32.9 (−6%)
normal-cache · market · frame time (p99) (ms) 75.6 70.1 (−7%)
normal-cache · shader preparation time (s) 3.6 3.7 (+2%)
warm-driver · boot time (s) 32.6 32.6 (+0%)
warm-driver · field · frame time (p99) (ms) 32.9 32.6 (−1%)
warm-driver · shader preparation time (s) 0.2 0.2 (+0%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`  
Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ fd68f82 | After: this PR @ 67695be |
|---|---|---|
| normal-cache · boot time (s) | 38.8 | 37.9 (−2%) |
| normal-cache · field · frame time (p99) (ms) | 35.1 | 32.9 (−6%) |
| normal-cache · market · frame time (p99) (ms) | 75.6 | 70.1 (−7%) |
| normal-cache · shader preparation time (s) | 3.6 | 3.7 (+2%) |
| warm-driver · boot time (s) | 32.6 | 32.6 (+0%) |
| warm-driver · field · frame time (p99) (ms) | 32.9 | 32.6 (−1%) |
| warm-driver · shader preparation time (s) | 0.2 | 0.2 (+0%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+igpu+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
windows+amd 2 windows+amd+amd-proprietary+dgpu+xess AMD Radeon RX 6700 XT, 2.0.353 AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM
windows+intel 1 windows+intel+intel-proprietary+igpu Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
linux+radv 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Run by hand on PCs that don't match their target (not counted)
Target Ran on Result
steamdeck off target (ran on linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8) fail
<!-- beanstalk:sticky --> ### Beanstalk test farm · 🔄 testing (10 of 7 reports so far) Commit `67695be` · approved by llun (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2496) ⚠️ **Note:** The Qualcomm target requires a volunteer with the qualcomm tag; the farm cannot guarantee the specific reported Adreno driver or reproduce its cache cap on other GPUs. ⚠️ **Note:** The plan does not force cache splitting or corrupt cache parts, and it cannot verify the reported long Snapdragon play session or the exact consecutive-start cache-file contents. ⚠️ **Note:** Warm-driver cache control is Linux-only; Windows uses the normal-cache scenario, and precompile/cache log lines are available in results but are not compared line by line. Started at 2026-11-28 04:22 UTC. ⚠ No tester has a PC for `windows+qualcomm` (none seen in 14 days): it waits until one signs in. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_a8dccc01a3e68ae0) [2](https://beanstalk.magicbean.dev/reports/rp_293ecb379a82182c) | — | — | none | | `windows+amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_64aad98f27dfa895) [2](https://beanstalk.magicbean.dev/reports/rp_6172195e757ca906) | — | — | none | | `windows+intel` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_0d071663be9c033d) | — | — | none | | `windows+qualcomm` | ⏳ queued | 0 of 1 | — | — | — | | `linux+nvidia` | ✅ pass | 1 [1](https://beanstalk.magicbean.dev/reports/rp_294127b15bb8200a) | 17.8 → 18.2 (+2%) | — | none | | `linux+radv` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_ac61097b6c00aa60) [2](https://beanstalk.magicbean.dev/reports/rp_5b99edc742580774) | — | — | none | | `steamdeck` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_fcf4b07cb82bb3f1) [2](https://beanstalk.magicbean.dev/reports/rp_9d9916c4539d0eda) | 35.1 → 32.9 (−6%) | — | none | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `windows+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_a8dccc01a3e68ae0): `main's longshot-builder failed (exit 1): could not compile 'crc32fast' (build script) due to 1 previous error` - `windows+nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_293ecb379a82182c): `main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error` - `windows+amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_64aad98f27dfa895): `main's longshot-builder failed (exit 1): could not compile 'quote' (build script) due to 1 previous error` - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_6172195e757ca906): `main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error` - `windows+intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_0d071663be9c033d): `main's longshot-builder failed (exit 1): could not compile 'proc-macro2' (build script) due to 1 previous error` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_ac61097b6c00aa60): `the main base failed (exit 1): The game's Rust (longshot-rs) has no prebuilt library for these sources (c60d8f80f5d1), and nothing here to build it with: in a checkout, install Rust (mise install) or set LONGSHOT_CARGO; a release's tree car` - `linux+radv`, [report 2](https://beanstalk.magicbean.dev/reports/rp_5b99edc742580774): `the main base failed (exit 1): The game's Rust (longshot-rs) has no prebuilt library for these sources (c60d8f80f5d1), and nothing here to build it with: in a checkout, install Rust (mise install) or set LONGSHOT_CARGO; a release's tree car` - `steamdeck`, [report 2](https://beanstalk.magicbean.dev/reports/rp_9d9916c4539d0eda): `main's longshot-builder failed (exit 1): Traceback (most recent call last):` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares startup pipeline preparation and cache behavior against main on Windows NVIDIA, AMD, Intel and Qualcomm hardware, Linux NVIDIA and RADV, and Steam Deck. Each side gets two starts in a normal-cache scenario and, on Linux, two with a warmed driver cache; gameplay then visits Hyrule Field and Market for 20 seconds each. It measures startup, pipeline preparation, frame times and pictures; crashes, substantial startup or frame-time regressions, or large picture differences fail the plan. The Qualcomm and Steam Deck targets have no matching testers shown online and will wait for them. No tester online now matches windows+qualcomm, linux+nvidia, steamdeck: those targets wait for one. - **Where:** windows+nvidia (1-2 reports), windows+amd (1-2 reports), windows+intel (1-2 reports), windows+qualcomm (1-2 reports), linux+nvidia (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports). - **normal-cache:** from the repository's save `kokiri-start`, then teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up); 2 runs on each side. - **warm-driver:** from the repository's save `kokiri-start` (each side's driver shader cache kept across its starts, filled first by an unmeasured start, Linux only for now), then teleport to Hyrule Field, take the picture warm-field to compare with main, measure field for 20 s (after 10 s warm-up); 2 runs on each side. - **Measured:** crashes, boot time, shader preparation at start, frame times, stutters and hitches, memory and CPU time. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or boot time is more than 20% above main; or frame time (p99) is more than 15% above main; or shader preparation time is more than 20% above main. - **Time:** about 58 min of game runs per tester (10 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** could not be judged on windows+nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** could not be judged on windows+amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`; 2: windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+intel`, for the PR description</summary> **Verdict:** queued on windows+intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** queued on windows+intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** pass on linux+nvidia (1 report): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ fd68f82 | After: this PR @ 67695be | |---|---|---| | normal-cache · boot time (s) | 27.9 | 27.6 (−1%) | | normal-cache · field · frame time (p99) (ms) | 17.8 | 18.2 (+2%) | | normal-cache · market · frame time (p99) (ms) | 19.2 | 18.7 (−3%) | | normal-cache · shader preparation time (s) | 0.2 | 0.2 (+0%) | | warm-driver · boot time (s) | 21.9 | 21.6 (−2%) | | warm-driver · field · frame time (p99) (ms) | 17.6 | 18.2 (+3%) | | warm-driver · shader preparation time (s) | 0.7 | 0.6 (−7%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+nvidia (1 report): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ fd68f82 | After: this PR @ 67695be | |---|---|---| | normal-cache · boot time (s) | 27.9 | 27.6 (−1%) | | normal-cache · field · frame time (p99) (ms) | 17.8 | 18.2 (+2%) | | normal-cache · market · frame time (p99) (ms) | 19.2 | 18.7 (−3%) | | normal-cache · shader preparation time (s) | 0.2 | 0.2 (+0%) | | warm-driver · boot time (s) | 21.9 | 21.6 (−2%) | | warm-driver · field · frame time (p99) (ms) | 17.6 | 18.2 (+3%) | | warm-driver · shader preparation time (s) | 0.7 | 0.6 (−7%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ fd68f82 | After: this PR @ 67695be | |---|---|---| | normal-cache · boot time (s) | 38.8 | 37.9 (−2%) | | normal-cache · field · frame time (p99) (ms) | 35.1 | 32.9 (−6%) | | normal-cache · market · frame time (p99) (ms) | 75.6 | 70.1 (−7%) | | normal-cache · shader preparation time (s) | 3.6 | 3.7 (+2%) | | warm-driver · boot time (s) | 32.6 | 32.6 (+0%) | | warm-driver · field · frame time (p99) (ms) | 32.9 | 32.6 (−1%) | | warm-driver · shader preparation time (s) | 0.2 | 0.2 (+0%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: normal-cache, from the repository's save kokiri-start; warm-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); normal-cache: 2 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up; warm-driver: 2 game starts a side, field 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ fd68f82 | After: this PR @ 67695be | |---|---|---| | normal-cache · boot time (s) | 38.8 | 37.9 (−2%) | | normal-cache · field · frame time (p99) (ms) | 35.1 | 32.9 (−6%) | | normal-cache · market · frame time (p99) (ms) | 75.6 | 70.1 (−7%) | | normal-cache · shader preparation time (s) | 3.6 | 3.7 (+2%) | | warm-driver · boot time (s) | 32.6 | 32.6 (+0%) | | warm-driver · field · frame time (p99) (ms) | 32.9 | 32.6 (−1%) | | warm-driver · shader preparation time (s) | 0.2 | 0.2 (+0%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_a8dccc01a3e68ae0) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_293ecb379a82182c) | windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_64aad98f27dfa895) | windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_6172195e757ca906) | windows+amd+amd-proprietary+dgpu+xess `AMD Radeon RX 6700 XT, 2.0.353` `AMD Ryzen 7 2700X Eight-Core Processor, 16 GB RAM` | | `windows+intel` | [1](https://beanstalk.magicbean.dev/reports/rp_0d071663be9c033d) | windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_294127b15bb8200a) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_ac61097b6c00aa60) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_5b99edc742580774) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_fcf4b07cb82bb3f1) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_9d9916c4539d0eda) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | </details> <details><summary>Run by hand on PCs that don't match their target (not counted)</summary> | Target | Ran on | Result | | --- | --- | --- | | steamdeck | off target (ran on linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8`) | [fail](https://beanstalk.magicbean.dev/reports/rp_9f12a7b85ebb1716) | </details>
futondestroyer left a comment

Recommendation: Request changes. The Snapdragon warm-start gain is substantial. The split caches need reliable completion and recovery before merge.

  • The forced save can signal success when only some files were written. The precompile then records completion, and a later start cannot distinguish a missing final part from the end of the sequence. Track the expected nonempty parts and verify all writes and reads before recording completion. Include the same manifest or verification in current main's shared preparation receipt after rebasing. Test a failed final-part write and a missing final part.
  • Loading a valid split part can fail temporarily, for example because of memory pressure. The error path can remove that part and every later one. Distinguish temporarily unavailable data from corrupt data, and preserve valid files for retry.
  • Please verify play-cache compaction near the Qualcomm cap. Play files are merged into one initially open part and the inputs can be removed after a successful write. The impact of the cap on successful merges is still unknown.

The measured Snapdragon pair cut median warm launch-to-play from 679 s to 55 s, with about 1.6 GB more private memory. The reviewed head retest reached play in 62 s on a warm start after importing the old cache. Those runs predate current main. The branch conflicts with the device policy and its fixture. Linux NVIDIA and Deck Farm runs passed. Desktop RADV and Windows cross-vendor attempts could not build their baselines, and a Radeon 760M run had one PR hang and +34.5% Field p99 on its usable sample. Rerun that case before attributing it. Sustained Snapdragon play is still blocked by #2566, which also reproduces on main. Measurements · Head retest · Farm

Reviewed 67695be98b325841d92427f08b5bb5a86608c1c9 against actual merge base fd68f82c1d78ae5f19c90fb65ab20c11a82a1475. Current target is 01d6878b. Description check fails and the regular CI jobs remain blocked.

**Recommendation: Request changes.** The Snapdragon warm-start gain is substantial. The split caches need reliable completion and recovery before merge. - The forced save can signal success when only some files were written. The precompile then records completion, and a later start cannot distinguish a missing final part from the end of the sequence. Track the expected nonempty parts and verify all writes and reads before recording completion. Include the same manifest or verification in current main's shared preparation receipt after rebasing. Test a failed final-part write and a missing final part. - Loading a valid split part can fail temporarily, for example because of memory pressure. The error path can remove that part and every later one. Distinguish temporarily unavailable data from corrupt data, and preserve valid files for retry. - Please verify play-cache compaction near the Qualcomm cap. Play files are merged into one initially open part and the inputs can be removed after a successful write. The impact of the cap on successful merges is still unknown. The measured Snapdragon pair cut median warm launch-to-play from 679 s to 55 s, with about 1.6 GB more private memory. The reviewed head retest reached play in 62 s on a warm start after importing the old cache. Those runs predate current main. The branch conflicts with the device policy and its fixture. Linux NVIDIA and Deck Farm runs passed. Desktop RADV and Windows cross-vendor attempts could not build their baselines, and a Radeon 760M run had one PR hang and +34.5% Field p99 on its usable sample. Rerun that case before attributing it. Sustained Snapdragon play is still blocked by #2566, which also reproduces on main. [Measurements](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2496#issuecomment-80319) · [Head retest](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2496#issuecomment-82308) · [Farm](https://beanstalk.magicbean.dev/prs/2496) Reviewed `67695be98b325841d92427f08b5bb5a86608c1c9` against actual merge base `fd68f82c1d78ae5f19c90fb65ab20c11a82a1475`. Current target is `01d6878b`. Description check fails and the regular CI jobs remain blocked.
@ -1115,0 +1192,4 @@
VkPipelineCache c = VK_NULL_HANDLE;
VkPipelineCacheCreateInfo ci{VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO};
ci.initialDataSize = part.size(), ci.pInitialData = part.data();
if (part.empty() || vkCreatePipelineCache(dev.device, &ci, nullptr, &c) != VK_SUCCESS || !c) {
Member

[P2] Preserve valid split files on a temporary read or Vulkan creation failure. The fallback currently removes this part and later parts. Distinguish temporary unavailability from confirmed corruption.

[P2] Preserve valid split files on a temporary read or Vulkan creation failure. The fallback currently removes this part and later parts. Distinguish temporary unavailability from confirmed corruption.
@ -13273,2 +13436,4 @@
}
}
// (longshot) and the start's caches past it, each to its own file (pcache_parts_save, pcache_split.h)
if (pcache_parts_save(wait_ms, queue) && pcache_save_outcome.what != Outcome::kWritten)
Member

[P2] Require all nonempty split parts and the main cache to persist before reporting a completed save. A failed final-part write can be masked by other successes and later look like an ordinary end of parts. Record and verify the expected parts.

[P2] Require all nonempty split parts and the main cache to persist before reporting a completed save. A failed final-part write can be masked by other successes and later look like an ordinary end of parts. Record and verify the expected parts.
Some checks reported errors
PR description / Title and description (pull_request_target) Failing after 18s
beanstalk/approval approved by llun (reviewed)
beanstalk/windows+nvidia 0/1 pass, 2 error
beanstalk/windows+intel 0/1 pass, 0 running, 1 queued
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/windows+qualcomm 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 1/1 pass
beanstalk/linux+nvidia 1/1 pass
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, built by CI (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
This pull request has changes conflicting with the target branch.
  • gpu/vk/device_policy.h
  • tests/test_device_policy.py
Some workflows are waiting to be reviewed.
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.
git fetch -u 'fix/adreno-pipeline-cache-split:windowsarmwrestler-fix/adreno-pipeline-cache-split'
git switch 'windowsarmwrestler-fix/adreno-pipeline-cache-split'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2496
No description provided.