perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, uploads grouped, decoder specialized #2909

Merged
HumanBean merged 3 commits from HumanBean/Longshot:perf/astc-bc3-two-steps into main 2026-12-01 22:45:29 +00:00
Owner

Prior work: #2473 by TrashPanda proposed the same idea first: go from ASTC to BC3 without the RGBA8 scratch image, including a two-step texel-buffer route. This PR is an independent implementation written for Longshot on current main. It shares no files or commits with #2473 and does not depend on it.

Summary

When the GPU keeps a big ASTC texture as BC3, main decodes it into an RGBA8 scratch image, then Eden's encoder turns the image into BC3. That costs three full barriers per run of layers (decode, encode, copy). This PR adds a faster path and makes the decoder cheaper. It is three commits:

  1. perf(vk): the GPU ASTC decoder is specialized a footprint. The decoder's block footprint becomes specialization constants 1 and 2, so the driver unrolls the texel loops and folds the weight-grid steps. astc_ready builds 14 pipelines, one per footprint, before the game. A footprint whose pipeline is refused uses the push-constant one, as before. Kill switch: RX_VK_ASTC_SPEC=0.
  2. perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, a recording's uploads grouped:
    • Texel route. The decoder, built again with ASTC_TO_TEXELS, writes texels into a 16 MB buffer. bc3_from_texels.comp, a new encoder written here, encodes them into a 16 MB output buffer, and that buffer is copied into the texture.
    • The encoder. Colour endpoints lie along the colours' principal axis, found by power iteration. Alpha uses the 8-value ramp, or the 6-value ramp when the block holds 0 or 255. Texels stay packed and are unpacked only where read. Its workgroup is one wave (RX_VK_ASTC_BC_ROWS).
    • Grouping. A recording's BC3 uploads in a row form one group: three full barriers per group instead of three per run. The group is flushed:
      • when a buffer would overflow;
      • before an upload chunk is handed over;
      • before any other upload;
      • before a texture already in the group is uploaded again;
      • at the end of the recording.
    • Kill switches. RX_VK_ASTC_BC_TEXELS=0 goes back to the RGBA8 scratch and Eden's encoder, which BC7 and the AMD-resized textures still use either way. RX_VK_ASTC_BC_GROUP=0 flushes after each texture.
  3. perf(vk): the ASTC decoder's texel weights are unquantized from a table. A 143-entry table replaces the per-weight arithmetic. It is bit-exact and speeds up both routes' decode.

Read first: bc3_from_texels.comp; in vk_texture.cpp, bc3t_ready, bc3_group_flush and upload_texel_route.

Not done, with the reasons:

  • A fused one-pass converter. #2473 measured it slower than two steps on every GPU tried, because shared memory left the RX 580 at 1 to 1.5 waves a SIMD.
  • fp16 in the encoder. The covariance sums overflow fp16.
  • Subgroup operations in the encoder. The encoder runs one block per invocation, so they would need a rewrite.
  • BC1 for opaque textures. It needs a format decision before decoding, plus views and copies. That is follow-up work.

Testing

Tested:

  • Game-free, tests/test_astc_decoder_gpu.py --device llvmpipe, which runs its GPU check twice: through the push-constant pipeline, then through the specialized pipelines (--spec).
    • Every vector block, level and hand-built block is bit-exact in both runs.
    • The new texel-route section passes: its texels are bit-exact against texdecode, and its BC3 is within 0.1 dB of Eden's encoder or better in every footprint (the PSNR table is under Measurements).
  • test_astc_upload_chunking, test_texture_staging_publication, test_bc_*, test_builtin_compute_unoptimized, test_switches_removed, test_doc_anchors and scripts/shaders.py host --check pass. The renderer compiles (dev.py vk).
  • mise run test (one build-mode queue job): 867 passed, 10 skipped, 46 failed. The same 46 fail on clean main 4908cc6d on this PC, so none is this PR's. CI's game-free checks run on the head as well.
  • In the game on the lab's RX 580 (Linux, RADV Mesa 26.2.6): the Market → Hyrule Field route, 2 interleaved pairs against main, plus pass-timing runs. No crash, upload failure or device loss in any run. Screenshots compared: no visible difference (Market and field, RX 580). The texel route and 14 of 14 specialized footprints are in the log. tests/test_bc3_group_flush.py passes.

Still to test:

  • Windows, NVIDIA and AMD: load an area with big ASTC textures (Kokiri Forest, Market → Hyrule Field), expecting textures right, no crash, and vk: big ASTC textures go to BC3 by the texel route in the log (@Beanstalk)
  • Intel Arc and Intel integrated (Windows): the same route, expecting textures right and the route or its fallback logged, with no slower uploads than main (@Beanstalk)
  • RDNA discrete (Linux and Windows): the same route against main, expecting textures right and no slower uploads (@Beanstalk)
  • Steam Deck: the same route against main, expecting textures right and no slower uploads (@Beanstalk)

Measurements

Verdict: this PR's claim is the GPU time of the ASTC→BC3 conversion, main 4908cc6d against this PR ff79b9ed (built on that same main):

  • in the game on the RX 580: 31–34 % less GPU time for all ASTC spans;
  • on the game-free bench: −17 to −23 % at 8x8 and above on the RX 580, −14 to −47 % on the RTX 3090, and within ±3 % at 4x4–6x6;
  • BC3 quality: 0.4–2.2 dB better in colour.

In-game fps and hitches are within run-to-run noise: no fps gain is claimed, and none is lost.

Game-free bench: GPU time of one conversion (timestamps; decode, barrier, encode in one submission; median of 9). The bench is a scratch harness built on the decoder fixture and is not committed. Main = the RGBA8 image route with main's decoder; this PR = the texel route with the specialized decoder and the weight table.

ms (this PR / main) RX 580, RADV Mesa 26.2.6 RTX 3090, NVIDIA 580, Linux
1365×1365×16, 4x4 12.59 / 12.70 (0.99) 3.67 / 3.81 (0.97)
1365×1365×16, 5x5 10.08 / 9.83 (1.03) 2.66 / 2.70 (0.98)
1365×1365×16, 6x6 9.01 / 8.70 (1.04) 2.16 / 2.18 (0.99)
1365×1365×16, 8x8 (terrain arrays) 7.64 / 9.16 (0.83) 1.69 / 1.95 (0.86)
1365×1365×16, 10x10 7.05 / 8.88 (0.79) 1.45 / 2.76 (0.53)
2048², 4x4 / 5x5 / 6x6 1.89 / 1.50 / 1.44 vs 1.88 / 1.60 / 1.43 0.50 / 0.38 / 0.33 vs 0.50 / 0.38 / 0.35
2048², 8x8 / 10x10 1.25 / 1.16 vs 1.51 / 1.46 (0.83 / 0.79) 0.28 / 0.27 vs 0.52 / 0.41 (0.53 / 0.67)
  • The weight table alone makes the decoder 4–20 % faster on the 3090's arrays (8x8: 1.75 → 1.40 ms) and 19 % faster on the RX 580's 8x8 image decode (8.20 → 6.62 ms).
  • Encoder rows: on the RX 580, 8 rows (64 lanes) took 1.2 ms and 4 rows took 2.2–2.5 ms; on the 3090 they were equal. So the default follows the subgroup size.
  • The 3090 numbers come from one --mode timing queue job; the RX 580 numbers from one lab.lock batch.

BC3 quality, PSNR against texdecode's decode of the fixture's blocks, lavapipe (texel route / Eden's encoder, dB):

4x4 5x5 6x6 8x8 10x10 12x12
colour 31.10 / 30.11 24.57 / 22.85 27.01 / 25.56 33.08 / 32.10 29.18 / 27.63 34.66 / 34.24
alpha 45.11 / 44.61 43.56 / 39.02 45.77 / 41.32 46.07 / 45.04 46.85 / 43.05 47.30 / 46.23

All 14 footprints are in the fixture's output.

In-game, RX 580 lab (Linux, RADV Mesa 26.2.6, 1080p internal, uncapped, V-Sync off, no upscaler). Main 4908cc6d is the warm stalls-main build. This PR's renderer (59ed2156, identical in effect to this head) is swapped into a reflink copy of it. The route is Market → Hyrule Field, 2 laps; 2 interleaved pairs, plus one pass-timing run each. Zero crashes, upload failures or device losses in all 7 runs.

RX 580 main, runs 1 / 2 this PR, runs 1 / 2
Field fps 33.8 / 33.9 32.1 / 32.7
Field 1 % low 25.8 / 25.5 22.9 / 25.8
Field GPU ms 26.6 / 26.6 28.1 / 27.8
Route frames over 50 / 100 ms 40 / 13 · 40 / 10 37 / 11 · 30 / 12
Route frames over 33 ms 194 · 192 1,596 · 1,259
GPU time of all ASTC spans (pass timing, 1 lap) 1,153 ms 766 ms (−34 %)
GPU time per layer-array span 2.80 ms 1.76 ms (−37 %)

The field gap above came from the game folders, not the route. The PR's folder had just had its renderer swapped, which resets its pipeline caches, and it got one 20-second warm-up lap. An in-build A/B settles it: the same build and folder, with the switches flipped, 2 rounds of four runs (a, b, c, d in that order), 2 laps each.

RX 580, same build a: RX_VK_ASTC_BC_TEXELS=0 (main's route) b: default (texel route) c: RX_VK_ASTC_BC_GROUP=0 d: RX_VK_ASTC_SPEC=0
Field fps 31.6 / 32.3 33.5 / 32.8 33.1 / 29.5 33.5 / 33.9
Field GPU ms 28.5 / 28.1 26.9 / 27.7 26.5 / 31.1 27.0 / 26.7
Route frames over 50 / 100 ms 41 / 15 · 36 / 12 96 / 11 · 29 / 8 117 / 28 · 38 / 15 32 / 10 · 32 / 11
Peak VRAM (sysfs) 8,148 / 8,129 MB 8,134 / 8,138 MB 8,170 / 8,157 MB 8,138 / 8,152 MB
GPU time of all ASTC spans (pass timing) 1,120 ms 776 ms (−31 %)

Reading:

  • With the same folder and caches, the texel route's field walk is level with main's route, slightly ahead (33.2 against 32.0 fps on average). Its conversions take 31 % less GPU time, and frames over 100 ms are no more.
  • Peak VRAM is the same on every side: the card sits at its limit either way, and the route's 32 MB buffers do not tip it.
  • Grouping off (c) was the noisiest and no better.
  • SPEC=0 (d) measured as well as the default here. It ran last in each round, so its warmer start may count. The bench's 1–3 % gain from specialization is below this route's run-to-run noise.
  • Frames over 33 ms vary from 180 to 3,300 between runs on all sides (an 8 GB card at its limit), so they decide nothing here.

Crash found and fixed by these runs: an RGBA8 ASTC upload's chunk flush ended the upload command buffer while a BC3 group was pending, and the next BC3 upload recorded the group into the ended buffer (RADV null read; the validation layer names vkCmd*-commandBuffer-recording). replay_flush_upload now flushes the group before anything else, and tests/test_bc3_group_flush.py holds that in place.

Risks

  • The default BC3 route changes on every GPU that keeps ASTC as BC3. RX_VK_ASTC_BC_TEXELS=0 restores the old route, and RX_VK_ASTC_BC_GROUP=0 restores per-texture recording.
  • Grouping defers a texture's encode and copy until the group flushes. Everything else that records uploads first flushes the group through upload_cmd(). The draws read textures only after the recording's closing barrier.
  • Memory: 32 MB more device memory (the route's two buffers, made before the game), and 28 more pipelines made before the game (once per pipeline cache).
  • The BC3 blocks differ from Eden's encoder: better PSNR on the fixture, not compared by eye in the game yet.
  • After updating: nothing in saves or options.

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. (the lab's RX 580)
  • mise run test passes (any failure that also fails on main is named). (867 passed, 46 failed; all 46 fail the same way on clean main 4908cc6d on this PC, among them test_switch_table, test_guest_holes, test_lifter and test_crt_options)
  • 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 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.
  • The SPIR-V headers regenerated (a shader changed).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (CI on ff79b9ed: Host C for Windows and the Windows/Linux renderer builds pass)
  • Screenshots of the same spot on main and here, for a change that shows on screen. (compared, not attached: the lab's images stay local)
  • 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

> **Prior work:** [#2473](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2473) by TrashPanda proposed the same idea first: go from ASTC to BC3 without the RGBA8 scratch image, including a two-step texel-buffer route. This PR is an independent implementation written for Longshot on current `main`. It shares no files or commits with #2473 and does not depend on it. ## Summary When the GPU keeps a big ASTC texture as BC3, main decodes it into an RGBA8 scratch image, then Eden's encoder turns the image into BC3. That costs three full barriers per run of layers (decode, encode, copy). This PR adds a faster path and makes the decoder cheaper. It is three commits: 1. **`perf(vk): the GPU ASTC decoder is specialized a footprint`.** The decoder's block footprint becomes specialization constants 1 and 2, so the driver unrolls the texel loops and folds the weight-grid steps. `astc_ready` builds 14 pipelines, one per footprint, before the game. A footprint whose pipeline is refused uses the push-constant one, as before. Kill switch: `RX_VK_ASTC_SPEC=0`. 2. **`perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, a recording's uploads grouped`:** - **Texel route.** The decoder, built again with `ASTC_TO_TEXELS`, writes texels into a 16 MB buffer. `bc3_from_texels.comp`, a new encoder written here, encodes them into a 16 MB output buffer, and that buffer is copied into the texture. - **The encoder.** Colour endpoints lie along the colours' principal axis, found by power iteration. Alpha uses the 8-value ramp, or the 6-value ramp when the block holds 0 or 255. Texels stay packed and are unpacked only where read. Its workgroup is one wave (`RX_VK_ASTC_BC_ROWS`). - **Grouping.** A recording's BC3 uploads in a row form one group: three full barriers per group instead of three per run. The group is flushed: - when a buffer would overflow; - before an upload chunk is handed over; - before any other upload; - before a texture already in the group is uploaded again; - at the end of the recording. - **Kill switches.** `RX_VK_ASTC_BC_TEXELS=0` goes back to the RGBA8 scratch and Eden's encoder, which BC7 and the AMD-resized textures still use either way. `RX_VK_ASTC_BC_GROUP=0` flushes after each texture. 3. **`perf(vk): the ASTC decoder's texel weights are unquantized from a table`.** A 143-entry table replaces the per-weight arithmetic. It is bit-exact and speeds up both routes' decode. Read first: `bc3_from_texels.comp`; in `vk_texture.cpp`, `bc3t_ready`, `bc3_group_flush` and `upload_texel_route`. Not done, with the reasons: - **A fused one-pass converter.** #2473 measured it slower than two steps on every GPU tried, because shared memory left the RX 580 at 1 to 1.5 waves a SIMD. - **fp16 in the encoder.** The covariance sums overflow fp16. - **Subgroup operations in the encoder.** The encoder runs one block per invocation, so they would need a rewrite. - **BC1 for opaque textures.** It needs a format decision before decoding, plus views and copies. That is follow-up work. ## Testing **Tested:** - Game-free, `tests/test_astc_decoder_gpu.py --device llvmpipe`, which runs its GPU check twice: through the push-constant pipeline, then through the specialized pipelines (`--spec`). - Every vector block, level and hand-built block is bit-exact in both runs. - The new texel-route section passes: its texels are bit-exact against texdecode, and its BC3 is within 0.1 dB of Eden's encoder or better in every footprint (the PSNR table is under Measurements). - `test_astc_upload_chunking`, `test_texture_staging_publication`, `test_bc_*`, `test_builtin_compute_unoptimized`, `test_switches_removed`, `test_doc_anchors` and `scripts/shaders.py host --check` pass. The renderer compiles (`dev.py vk`). - `mise run test` (one build-mode queue job): 867 passed, 10 skipped, 46 failed. The same 46 fail on clean main 4908cc6d on this PC, so none is this PR's. CI's game-free checks run on the head as well. - In the game on the lab's RX 580 (Linux, RADV Mesa 26.2.6): the Market → Hyrule Field route, 2 interleaved pairs against main, plus pass-timing runs. No crash, upload failure or device loss in any run. Screenshots compared: no visible difference (Market and field, RX 580). The texel route and 14 of 14 specialized footprints are in the log. `tests/test_bc3_group_flush.py` passes. **Still to test:** - Windows, NVIDIA and AMD: load an area with big ASTC textures (Kokiri Forest, Market → Hyrule Field), expecting textures right, no crash, and `vk: big ASTC textures go to BC3 by the texel route` in the log (@Beanstalk) - Intel Arc and Intel integrated (Windows): the same route, expecting textures right and the route or its fallback logged, with no slower uploads than main (@Beanstalk) - RDNA discrete (Linux and Windows): the same route against main, expecting textures right and no slower uploads (@Beanstalk) - Steam Deck: the same route against main, expecting textures right and no slower uploads (@Beanstalk) ## Measurements **Verdict:** this PR's claim is the GPU time of the ASTC→BC3 conversion, main 4908cc6d against this PR ff79b9ed (built on that same main): - in the game on the RX 580: 31–34 % less GPU time for all ASTC spans; - on the game-free bench: −17 to −23 % at 8x8 and above on the RX 580, −14 to −47 % on the RTX 3090, and within ±3 % at 4x4–6x6; - BC3 quality: 0.4–2.2 dB better in colour. In-game fps and hitches are within run-to-run noise: no fps gain is claimed, and none is lost. Game-free bench: GPU time of one conversion (timestamps; decode, barrier, encode in one submission; median of 9). The bench is a scratch harness built on the decoder fixture and is not committed. Main = the RGBA8 image route with main's decoder; this PR = the texel route with the specialized decoder and the weight table. | ms (this PR / main) | RX 580, RADV Mesa 26.2.6 | RTX 3090, NVIDIA 580, Linux | |---|---|---| | 1365×1365×16, 4x4 | 12.59 / 12.70 (0.99) | 3.67 / 3.81 (0.97) | | 1365×1365×16, 5x5 | 10.08 / 9.83 (1.03) | 2.66 / 2.70 (0.98) | | 1365×1365×16, 6x6 | 9.01 / 8.70 (1.04) | 2.16 / 2.18 (0.99) | | 1365×1365×16, 8x8 (terrain arrays) | 7.64 / 9.16 (0.83) | 1.69 / 1.95 (0.86) | | 1365×1365×16, 10x10 | 7.05 / 8.88 (0.79) | 1.45 / 2.76 (0.53) | | 2048², 4x4 / 5x5 / 6x6 | 1.89 / 1.50 / 1.44 vs 1.88 / 1.60 / 1.43 | 0.50 / 0.38 / 0.33 vs 0.50 / 0.38 / 0.35 | | 2048², 8x8 / 10x10 | 1.25 / 1.16 vs 1.51 / 1.46 (0.83 / 0.79) | 0.28 / 0.27 vs 0.52 / 0.41 (0.53 / 0.67) | - The weight table alone makes the decoder 4–20 % faster on the 3090's arrays (8x8: 1.75 → 1.40 ms) and 19 % faster on the RX 580's 8x8 image decode (8.20 → 6.62 ms). - Encoder rows: on the RX 580, 8 rows (64 lanes) took 1.2 ms and 4 rows took 2.2–2.5 ms; on the 3090 they were equal. So the default follows the subgroup size. - The 3090 numbers come from one `--mode timing` queue job; the RX 580 numbers from one lab.lock batch. BC3 quality, PSNR against texdecode's decode of the fixture's blocks, lavapipe (texel route / Eden's encoder, dB): | | 4x4 | 5x5 | 6x6 | 8x8 | 10x10 | 12x12 | |---|---|---|---|---|---|---| | colour | 31.10 / 30.11 | 24.57 / 22.85 | 27.01 / 25.56 | 33.08 / 32.10 | 29.18 / 27.63 | 34.66 / 34.24 | | alpha | 45.11 / 44.61 | 43.56 / 39.02 | 45.77 / 41.32 | 46.07 / 45.04 | 46.85 / 43.05 | 47.30 / 46.23 | All 14 footprints are in the fixture's output. **In-game, RX 580 lab** (Linux, RADV Mesa 26.2.6, 1080p internal, uncapped, V-Sync off, no upscaler). Main 4908cc6d is the warm `stalls-main` build. This PR's renderer (59ed2156, identical in effect to this head) is swapped into a reflink copy of it. The route is Market → Hyrule Field, 2 laps; 2 interleaved pairs, plus one pass-timing run each. Zero crashes, upload failures or device losses in all 7 runs. | RX 580 | main, runs 1 / 2 | this PR, runs 1 / 2 | |---|---|---| | Field fps | 33.8 / 33.9 | 32.1 / 32.7 | | Field 1 % low | 25.8 / 25.5 | 22.9 / 25.8 | | Field GPU ms | 26.6 / 26.6 | 28.1 / 27.8 | | Route frames over 50 / 100 ms | 40 / 13 · 40 / 10 | 37 / 11 · 30 / 12 | | Route frames over 33 ms | 194 · 192 | 1,596 · 1,259 | | GPU time of all ASTC spans (pass timing, 1 lap) | 1,153 ms | 766 ms (−34 %) | | GPU time per layer-array span | 2.80 ms | 1.76 ms (−37 %) | **The field gap above came from the game folders, not the route.** The PR's folder had just had its renderer swapped, which resets its pipeline caches, and it got one 20-second warm-up lap. An in-build A/B settles it: the same build and folder, with the switches flipped, 2 rounds of four runs (a, b, c, d in that order), 2 laps each. | RX 580, same build | a: `RX_VK_ASTC_BC_TEXELS=0` (main's route) | b: default (texel route) | c: `RX_VK_ASTC_BC_GROUP=0` | d: `RX_VK_ASTC_SPEC=0` | |---|---|---|---|---| | Field fps | 31.6 / 32.3 | 33.5 / 32.8 | 33.1 / 29.5 | 33.5 / 33.9 | | Field GPU ms | 28.5 / 28.1 | 26.9 / 27.7 | 26.5 / 31.1 | 27.0 / 26.7 | | Route frames over 50 / 100 ms | 41 / 15 · 36 / 12 | 96 / 11 · 29 / 8 | 117 / 28 · 38 / 15 | 32 / 10 · 32 / 11 | | Peak VRAM (sysfs) | 8,148 / 8,129 MB | 8,134 / 8,138 MB | 8,170 / 8,157 MB | 8,138 / 8,152 MB | | GPU time of all ASTC spans (pass timing) | 1,120 ms | 776 ms (−31 %) | | | **Reading:** - With the same folder and caches, the texel route's field walk is level with main's route, slightly ahead (33.2 against 32.0 fps on average). Its conversions take 31 % less GPU time, and frames over 100 ms are no more. - Peak VRAM is the same on every side: the card sits at its limit either way, and the route's 32 MB buffers do not tip it. - Grouping off (c) was the noisiest and no better. - `SPEC=0` (d) measured as well as the default here. It ran last in each round, so its warmer start may count. The bench's 1–3 % gain from specialization is below this route's run-to-run noise. - Frames over 33 ms vary from 180 to 3,300 between runs on all sides (an 8 GB card at its limit), so they decide nothing here. **Crash found and fixed by these runs:** an RGBA8 ASTC upload's chunk flush ended the upload command buffer while a BC3 group was pending, and the next BC3 upload recorded the group into the ended buffer (RADV null read; the validation layer names `vkCmd*-commandBuffer-recording`). `replay_flush_upload` now flushes the group before anything else, and `tests/test_bc3_group_flush.py` holds that in place. ## Risks - **The default BC3 route changes on every GPU** that keeps ASTC as BC3. `RX_VK_ASTC_BC_TEXELS=0` restores the old route, and `RX_VK_ASTC_BC_GROUP=0` restores per-texture recording. - **Grouping defers a texture's encode and copy** until the group flushes. Everything else that records uploads first flushes the group through `upload_cmd()`. The draws read textures only after the recording's closing barrier. - **Memory:** 32 MB more device memory (the route's two buffers, made before the game), and 28 more pipelines made before the game (once per pipeline cache). - **The BC3 blocks differ from Eden's encoder:** better PSNR on the fixture, not compared by eye in the game yet. - **After updating:** nothing in saves or options. ## 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. (the lab's RX 580) - [x] `mise run test` passes (any failure that also fails on `main` is named). (867 passed, 46 failed; all 46 fail the same way on clean main 4908cc6d on this PC, among them test_switch_table, test_guest_holes, test_lifter and test_crt_options) - [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 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. - [x] The SPIR-V headers regenerated (a shader changed). - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (CI on ff79b9ed: Host C for Windows and the Windows/Linux renderer builds pass) - [x] Screenshots of the same spot on `main` and here, for a change that shows on screen. (compared, not attached: the lab's images stay local) - [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)
astc_decoder.comp built with ASTC_TO_BC3 is a one-pass converter: a 64-lane workgroup
decodes a tile of ASTC blocks (a whole number of 4x4 BC blocks both ways; the table
in gpu/vk/astc_convert.h) into shared memory with the same DecompressBlock, then
encodes the tile's BC blocks into a buffer, with no RGBA8 image and no barrier between
the halves but the workgroup's own. The decoder's build is unchanged word for word
(scripts/shaders.py host --check). The encode half (host_shaders/bc3_encode.glsl) is
Longshot's own BC3 encoder from the texture-shader work, every step kept; on lavapipe
its blocks equal that standalone encoder's byte for byte. bc3_encoder.comp runs the same
encode half on an RGBA8 image region (for copies into BC3 textures). Nothing in the
renderer uses them yet.

scripts/shaders.py host gains HOST_VARIANTS (a shader built again with defines).

tests/astc_decoder_gpu.cpp runs both on the same levels as the decoder (not a fork of
its data): the converter's tile against texdecode with no tolerance (9,388 vector
decodes, 114 whole and hand-built levels, 374 tile-edge levels in every footprint and
size, both tile classes), its BC3 byte-equal to the same encode half fed texdecode's
decode, within stated PSNR floors per footprint (vectors, gradients, flats, edges),
and the image encoder. Its "validation: enabled" line, which run_vulkan_fixtures.py took
for a validation error (the fixture failed there on main), is now "Khronos validation
layer: enabled".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The BC3 route now runs the one-pass converter (astc_decoder.comp built with ASTC_TO_BC3) in
upload_astc_gpu: each run of layers of a level is one dispatch writing its BC3 blocks into a 16 MB
output buffer (bc3_out, made once, VRAM or system memory), and a texture's levels and layers go into
one batch, copied into the image between two full barriers (bc3_regions keeps the explicit block
pitch and AMD's per-layer regions, bc3_copy the barriers). The batch closes before a chunk flush and
when bc3_out would overflow; a failed upload with blocks not yet copied leaves a barrier
(Bc3FailureBarrier). texture_copy_into_bc encodes the decoded source in place through its UINT
storage view with bc3_encoder.comp (the same encode half) instead of copying it into the scratch.
bc_ready makes the converter's two pipelines (tile classes) and the image encoder's through
texture_compute_pipeline, with the same decline conditions; a refused pipeline leaves every ASTC
texture RGBA8 through the plain decoder, as a refused encoder did. create() makes BC3 only (no BC7),
and with RX_VK_UNEVEN_BC=0 a texture that would need resizing stays RGBA8 (the resize needed the
scratch). The RGBA8 route is unchanged. The two-pass functions stay compiled, unused, until the
next commit removes them with their switches.

tests/test_astc_upload_gpu.py is a new lavapipe fixture that cuts the real upload_astc_gpu,
texture_copy_into_bc, astc_ready, bc_ready, the batch, full_barrier, the recording's upload command
buffer, the views and level_geo out of vk_texture.cpp and runs them on a Vulkan device with
validation and synchronization validation (its shader-access tracking on; a self-test proves it
reports a missing barrier after a dispatch): seven textures across chunk flushes and a full output
buffer, every level read back (BC3 byte-equal to the converter alone, RGBA8 equal to texdecode), a
copy into BC3, per-layer regions, repacked levels, a failed upload. test_astc_upload_chunking.py's
spy harness is rewritten for the batch (a terrain array: 24 dispatches and 16 copies where the two
passes made 1,980 dispatches; no submission ends with blocks not yet copied; the failure barrier).
The checks that read the changed lines follow them; the scratch checks keep only the scratch's own
making until it goes.

Not run in the game or on a hardware GPU.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
What the one-pass converter left unused goes: the RGBA8 scratch images (the 2048 x 2048 one, the
small one, the AMD resize's second one) and their views, the old output buffer, the level groups,
bc_encode_into and bc_encode_resized, bc_scratch_make/layout/idle, Eden's bc_encoder.comp and the
BC7 encoder with their headers, Texture::bc_resized (and astc_reuse's Shape field),
DevicePolicy::bc_small_runs, and vk_xfer.cpp's resized-source branch. Six switches become GONE rows
(RX_VK_ASTC_BC7, RX_VK_BC_IDLE_S, RX_VK_BC_LAYERS, RX_VK_BC_LEVELS, RX_VK_BC_POOL,
RX_VK_BC_SMALL_LAYERS): none had a menu row or an options-file key. RX_VK_UNEVEN_BC and
RX_VK_UNEVEN_RGBA8 stay with their meaning without the resize; RX_VK_BC_COPY_PER_LAYER, RX_VK_ASTC_RGBA8
(the menu's ASTC as RGBA8, the way back for a tester), RX_VK_ASTC_CPU and RX_VK_ASTC_CHUNK_MPX stay.

The scratch's checks go with it (test_bc_scratch_layers.py, bc_scratch_batches_test.cpp,
test_bc_small_scratch.py); their promises for the runs moved to test_astc_upload_chunking.py and
test_astc_upload_gpu.py in the previous commit. test_device_policy.py loses the field,
test_mem_trim.py checks the output buffer is taken for made only once made, test_astc_reuse the
Shape without the resize. Docs: the switches reference, the profiling row, the AMD workaround's
wording.

Open: scripts/check_guide_screenshots.py --review-sources flags settings-graphics.png because
gpu/vk/device_policy.h and gpu/vk/vk_texture.h changed (a field removed from each, no menu row):
a human review records it; the hashes are not updated here.

Not run in the game or on a hardware GPU.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The chunking test set two globals nothing read any more, and the GPU upload
test cuts renderer counters that only the renderer's status line reads.
llvm-mingw clang 23 rejects both with -Werror (reported by Jer9 on PR 2473).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
astc_decoder.comp built a third time with ASTC_TO_TEXELS (astc_texels_comp_spv.h): the decoder as it is (8 x 8 workgroup,
4,160 bytes of shared memory, its main()), storing each texel as a packed word in a buffer, a level's rows from out_offset,
clipped at the level. bc3_encoder.comp built with BC3_FROM_TEXELS (bc3_texels_comp_spv.h) reads those words with the
converter's edge rule and encodes them with the converter's encode half; built also with BC3_LSQ_PASSES=0 BC3_BOX=0
(bc3_texels_fast_comp_spv.h), the cheaper encode half. Every new line is under its define: the RGBA8 route's decoder, the
one-pass converter and the image encoder keep their SPIR-V word for word (shaders.py host --check: 7 match).
astc_convert::TexelsPush is the encode's push constants.

Why: on the Radeon 860M the one-pass converter took 1.5 to 2.9 times the GPU time of the two passes it replaced. RADV's
pipeline statistics on Raphael's graphics: the converter 168-240 VGPRs, 11-15 KB of shared memory, 4-6 waves a SIMD;
the decoder 80, 4 KB, 12; the encode half 128, none, 8. Split, each step keeps its own occupancy.

tests/astc_decoder_gpu.cpp, section 8, on every level the converter's sections run: the two steps' texels bit-exact against
texdecode, their BC3 byte-equal to the converter's, nothing written around either buffer's range, and the cheaper encode
half within the existing PSNR floors (lavapipe: lowest vectors 5x5 25.20 dB against 25.0, gradients 12x12 43.63 against
43.5, worst block 8x5 38.25 against 38.0). test_astc_decoder_gpu.py checks TexelsPush against the shader's block.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
RX_VK_ASTC_BC_SPLIT (dev.policy.astc_bc_split, 0 on every PC: the one-pass converter stays the default): 1 converts big ASTC
textures to BC3 in two steps inside the converter's batch, the decoder built with ASTC_TO_TEXELS writing each run's texels
into bc3_texels (16 MB, a 2048 x 2048 level; made by the first upload that takes the route, VRAM then system memory, kept),
then, when bc3_texels fills and before the batch's copy, a barrier, the runs' encodes into bc3_out, a barrier. 2 is the
same with the cheaper encode half. Same textures become BC3; the copy, its regions and the failure barrier are the
converter's. The pipelines are made by bc_ready() only when the switch asks; refused, the converter stays (logged).

tests/test_astc_upload_gpu.py runs its seven textures once a route (texel buffer made 160 KB so runs fill it and a level
takes the converter inside a two-step upload): =1 byte-equal to the converter alone, =2 to the cheaper encode half alone on
texdecode's decode; synchronization validation clean. --bench (--device NAME; no game, no validation layer) times the three
routes through the real upload_astc_gpu at the renderer's sizes on 1365 x 1365 x 90 (--layers), 2048, 1024 and 512 square,
footprints 4x4 5x5 6x6 8x8: GPU timestamps around every submission, the median of --reps, one table.
test_astc_upload_chunking.py's spy checks the route's ordering (decode, barrier, encode, barrier, copy) and bounds;
test_device_policy.py the field, its switch's cases and its log mark.

Indicative, on this shared PC, 16 layers, median of 3: Raphael's graphics (RADV) =1 at 0.39-0.63 of =0's GPU time, =2 at
0.32-0.53; RTX 4070 Ti =1 at 0.56-0.79 (level at 512 square: 0.84-1.07), =2 below =1; =1's blocks equal =0's on both (a middle level compared).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ACO's statistics on an RX 580 (RADV, Mesa 26.2.6) gave the encode half (bc3_encoder.comp built with BC3_FROM_TEXELS, the two-step
route's second step) 128 vector registers, 125 before scheduling: two waves a SIMD, where the decoder and the old encoder fit
three. Three things held the registers, none of them needed:
- the projection on the principal axis, dot(t - mean, axis), shared its sixteen differences from the mean with the covariance's
  loop, so 48 values stayed live through the power iteration: now dot(t, axis) - dot(mean, axis);
- the box candidate's box, mean and covariance (15 values) lived through the least-squares passes: its two endpoints are now made
  right after the covariance, two words carried instead;
- each pick held the palette's four colours for a per-texel select: it now takes the step j along the line and c0 + j/3 of the
  way to c1, from c0 and the line alone.
Now 84 registers (80 before scheduling): three waves a SIMD on GCN, 6 % fewer instructions, ACO's latency estimate 13 % lower.
The same for the image encoder and the cheaper build; the converter's encode half too (81 before scheduling), whose occupancy
its shared memory limits on GCN either way.

On the RX 580 (tests/test_astc_upload_gpu.py --bench, GPU time a texture, median of 3, against the commit before): the two
steps 4-6 % faster on the terrain's 1365 x 1365 x 90 arrays (5x5 117.0 -> 110.1 ms, 8x8 101.8 -> 96.4), 3-14 % on single
textures; the one pass 2-4 %.

The first change and the pick's error may differ from before in their last bits; the indices are chosen as before, and the
error only ranks the candidates, so a block changes only where two candidates nearly tie. The fixture's PSNR tables on
lavapipe move by 0.07 dB at most, both ways, every floor held; the two steps' blocks still equal the one pass's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SdGuww9Q4o1mvYD9c
perf(vk): big ASTC textures go to BC3 in two steps by default on every PC (RX_VK_ASTC_BC_SPLIT=1)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / What the change needs (pull_request) Successful in 25s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 11m20s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 12m37s
CI / Website build and checks (pull_request) Failing after 34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m14s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 13m38s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 25m42s
9b3022a3e1
The two steps (#2473's route 1: the plain decoder into a 16 MB texel buffer, then the encode half; the same BC3 blocks) were
faster than the one-pass converter on every GPU measured, so they become the default everywhere; RX_VK_ASTC_BC_SPLIT=0 keeps the
one pass.

Why the one pass is slow: its shared memory decides its occupancy. On GCN (ACO's statistics, RX 580, RADV, Mesa 26.2.6) 10.5 KB
(tiles of footprints up to 25 texels) or 14.5 KB a 64-lane workgroup, of a CU's 64 KB: 6 or 4 workgroups a CU, 1.5 or 1 wave a
SIMD, where the plain decoder and the encode half each run 3. A tile and the decoder's scratch are about 165 bytes a lane; no
shape of the fused workgroup brings that under what 3 waves allow. Its encode also runs a tile's 100 BC blocks over 64 lanes,
the second round 36 lanes wide. On NVIDIA it takes 168 registers a thread where the steps take 80 and 128.

tests/test_astc_upload_gpu.py --bench, GPU time a texture, two steps over one pass, with the encode half of the commit before:
- RX 580 (RADV), median of 3: 1365 x 1365 x 90 (the terrain's arrays) 0.42 to 0.64 (4x4 110 against 182 ms, 5x5 110 against
  183, 6x6 100 against 199, 8x8 96 against 233); 2048 x 2048 0.45 to 0.67; 1024 x 1024 0.52 to 0.82; 512 x 512 0.68 to 0.81,
  but 1.21 at 8x8 (0.49 against 0.40 ms)
- RTX 3090 (NVIDIA 580, Linux), median of 5: the arrays 0.53 to 0.64 (5x5 50 against 81 ms); 2048 0.60 to 0.74; 1024 0.73 to
  0.90; 512 0.91 to 1.09 (within 0.01 ms)
- RTX 4070 Ti and Raphael's graphics (RADV), from #2473's description: 0.56 to 0.79 and 0.42 to 0.63
Not measured: Intel, RDNA discrete GPUs, the Steam Deck, any Windows driver, the Radeon 860M whose regression #2473 states
(that was the one pass).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SdGuww9Q4o1mvYD9c
Author
Owner

Tested in game: RX 580 8 GB / RADV Mesa 26.2.6 / Linux (the AMD lab): main 28cb22b9, #2473 rebased and this branch, 2 interleaved 1-lap runs each plus a pass-timing run (Market, back into Hyrule Field, 60 s walk). Clean exits, no upload failed, device loss or validation line; the Market and field screenshots match main by eye.

Tested in game: RX 580 8 GB / RADV Mesa 26.2.6 / Linux (the AMD lab): main 28cb22b9, #2473 rebased and this branch, 2 interleaved 1-lap runs each plus a pass-timing run (Market, back into Hyrule Field, 60 s walk). Clean exits, no upload failed, device loss or validation line; the Market and field screenshots match main by eye.
HumanBean force-pushed perf/astc-bc3-two-steps from 9b3022a3e1
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 14s
CI / What the change needs (pull_request) Successful in 25s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 11m20s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 12m37s
CI / Website build and checks (pull_request) Failing after 34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m14s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 13m35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 13m38s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 25m42s
to 1988922f57
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m38s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m3s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m13s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 17m42s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 38m19s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 running, 0 queued
beanstalk/amd 1/1 pass
beanstalk/intel 0/1 pass, 1 running, 1 queued
beanstalk/steamdeck 0/1 pass, 1 running, 1 queued
beanstalk/linux+radv 1/1 fail
beanstalk/windows+amd 1/1 fail
beanstalk/windows+amd+gpu-860m 0/1 pass, 0 running, 2 queued
beanstalk/linux+nvidia+gpu-rtx-3090 0/1 pass, 0 running, 2 queued
2026-12-01 02:04:53 +00:00
Compare
HumanBean changed title from WIP: perf(vk): big ASTC textures go to BC3 in two steps by default, with a leaner encode half (depends on #2473) to WIP: perf(vk): big ASTC textures go to BC3 in two steps by default, with a leaner, specialized encode path and grouped uploads 2026-12-01 02:05:24 +00:00
Author
Owner

@beanstalk

@beanstalk
Member
Beanstalk test farm · an earlier run: commit 1988922 (the newer results are in a comment below)

Commit 1988922 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot run the requested standalone texture benchmark or isolate per-texture ASTC conversion spans, so the reported GPU time and entry hitches do not directly establish the claimed conversion speed-up.
⚠️ Note: The default and one-pass routes are compared within the PR, but specialization and grouping kill switches are not isolated within the time budget; two starts per side are the minimum for comparison.
⚠️ Note: Stationary screenshot comparisons cover the two teleport views, not every texture footprint or the moving route.

Started at 03:36 UTC.

Estimate: done in about 35 min, from the queue and the testers online now; some jobs can't start yet.

⚠ No tester has a PC for linux+nvidia+gpu-rtx-3090 (none seen in 14 days): it waits until one signs in.

Target Result Reports VRAM peak (MB) Crashes
nvidia 🔄 running 0 of 1 — —
amd ✅ pass (an outlier) 2 1 2 8,240 → 8,236 (−0%) none
intel 🔄 running 0 of 1 — —
steamdeck 🔄 running 0 of 1 — —
linux+radv ❌ fail (an outlier) 2 1 2 5,072 → 5,254 (+4%) none
windows+amd ❌ fail 1 1 8,754 → 8,728 (−0%) none
windows+amd+gpu-860m (GPU "860m") ⏳ queued 0 of 1 — —
linux+nvidia+gpu-rtx-3090 (GPU "rtx 3090") ⏳ queued 0 of 1 — —

market-field-uploads · frame time p99 (ms)

Target main RX_VK_ASTC_BC_SPLIT= RX_VK_ASTC_BC_SPLIT=0 (reference)
nvidia — — —
amd 34.7 34.7 (+0%) 34.6
intel — — —
steamdeck — — —
linux+radv 19.3 21.4 (+12%) 19.0
windows+amd 11.1 11.3 (−18%) 13.7
windows+amd+gpu-860m (GPU "860m") — — —
linux+nvidia+gpu-rtx-3090 (GPU "rtx 3090") — — —

Why it failed

  • linux+radv: market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) screenshot.max_diff: 0.1 → 0.8; limit 0.2
  • windows+amd: market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) field.frametime_p99_ms.max_delta_pct: 11.1 → 13.7 (+23.2%); limit 20.0

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.

  • amd, report 1: Insufficient frame-time evidence for 2 required comparison(s). See rule results.
What was tested

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

The farm will compare the default two-step ASTC conversion with the PR's one-pass route and with main in the Market and Hyrule Field, using two starts per side and 20-second measurements at each location. It will measure frame times, GPU time, load times and entry hitches, and compare stationary pictures for texture changes. Crashes, upload or device-loss errors, substantial timing regressions or excessive picture differences fail the plan. The Windows Radeon 860M target has no matching GPU listed online and will wait for a tester. No tester online now matches windows+amd+gpu-860m, linux+nvidia+gpu-rtx-3090: those targets wait for one.

  • Where: nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports), linux+radv (1-2 reports), windows+amd (1-2 reports), windows+amd+gpu-860m (GPU "860m", 1-2 reports), linux+nvidia+gpu-rtx-3090 (GPU "rtx 3090", 1-2 reports).
  • Matrix: 2 cells, each on main and the PR: RX_VK_ASTC_BC_SPLIT `` or 0 (PR only).
  • market-field-uploads: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), move the stick; 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, GPU time per pass, load times, VRAM use, the game's log.
  • The PR fails if: it crashes; or the PR's worst frame time in the whole run with RX_VK_ASTC_BC_SPLIT= is more than 50% above RX_VK_ASTC_BC_SPLIT=0; or a picture differs from main by more than 20%; or GPU time a frame is more than 20% above main; or longest load is more than 25% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or worst frame time in the whole run is more than 50% above main.
  • Time: about 49 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `amd`, for the PR description

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

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff After: this PR @ 1988922
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · GPU time a frame (ms) 7.9 7.9 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · GPU time a frame (ms) 10.6 10.6 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · longest load (s) 5.5 5.9 (+6%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · frame time (p99) (ms) 34.7 34.7 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · frame time (p99) (ms) 47.2 47.3 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · worst frame time in the whole run (ms) 1,759 2,007 (+14%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · peak VRAM (MB) 8,240 8,236 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · peak VRAM (MB) 6,444 5,736 (−11%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · GPU time a frame (ms) 7.8 7.7 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · GPU time a frame (ms) 10.7 9.3 (−13%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · longest load (s) 5.6 5.5 (−2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · frame time (p99) (ms) 34.7 34.6 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · frame time (p99) (ms) 47.5 47.6 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · worst frame time in the whole run (ms) 1,887 1,917 (+2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · peak VRAM (MB) 8,156 8,148 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · peak VRAM (MB) 5,750 6,418 (+12%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_ASTC_BC_SPLIT switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default market-field-uploads, main without it → the PR with : 7.9 → 7.9 (−0%) no clear effect

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`  
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 |
|---|---|---|
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.9 | 7.9 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 10.6 | 10.6 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.5 | 5.9 (+6%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.7 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 47.2 | 47.3 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,759 | 2,007 (+14%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,240 | 8,236 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,444 | 5,736 (−11%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 10.7 | 9.3 (−13%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.6 | 5.5 (−2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.6 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 47.5 | 47.6 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,887 | 1,917 (+2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,156 | 8,148 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 5,750 | 6,418 (+12%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.9 → 7.9 (−0%) | no clear effect |
Measurements on `linux+radv`, for the PR description

Verdict: fail on linux+radv (2 reports): market-field-uploads screenshot.max_diff failed.

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 580 Series (RADV POLARIS10), 26.3.1 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff After: this PR @ 1988922
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · GPU time a frame (ms) 15.1 16.0 (+6%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · GPU time a frame (ms) 15.4 14.7 (−5%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · longest load (s) 5.0 4.8 (−4%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · frame time (p99) (ms) 19.3 21.4 (+11%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · frame time (p99) (ms) 21.1 22.4 (+6%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · worst frame time in the whole run (ms) 1,669 1,653 (−1%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · peak VRAM (MB) 5,072 5,254 (+4%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · peak VRAM (MB) 4,263 4,526 (+6%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · GPU time a frame (ms) 15.1 15.0 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · GPU time a frame (ms) 15.5 15.4 (−1%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · longest load (s) 5.0 4.9 (−2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · frame time (p99) (ms) 19.3 19.0 (−1%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · frame time (p99) (ms) 21.1 21.6 (+2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · worst frame time in the whole run (ms) 1,655 1,547 (−7%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · peak VRAM (MB) 5,185 5,090 (−2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · peak VRAM (MB) 4,472 4,278 (−4%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_ASTC_BC_SPLIT switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default market-field-uploads, main without it → the PR with : 15.1 → 16.0 (+6%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `market-field-uploads screenshot.max_diff` failed.

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 580 Series (RADV POLARIS10), 26.3.1` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM`  
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 |
|---|---|---|
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 15.1 | 16.0 (+6%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 15.4 | 14.7 (−5%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.0 | 4.8 (−4%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 19.3 | 21.4 (+11%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 21.1 | 22.4 (+6%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,669 | 1,653 (−1%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 5,072 | 5,254 (+4%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 4,263 | 4,526 (+6%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 15.1 | 15.0 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 15.5 | 15.4 (−1%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.0 | 4.9 (−2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 19.3 | 19.0 (−1%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 21.1 | 21.6 (+2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,655 | 1,547 (−7%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 5,185 | 5,090 (−2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 4,472 | 4,278 (−4%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 15.1 → 16.0 (+6%) | doesn't help |
Measurements on `windows+amd`, for the PR description

Verdict: fail on windows+amd (1 report): market-field-uploads field.frametime_p99_ms.max_delta_pct (+23.2%) failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff After: this PR @ 1988922
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · GPU time a frame (ms) 7.5 7.5 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · GPU time a frame (ms) 14.6 14.6 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · longest load (s) 5.1 5.1 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · frame time (p99) (ms) 11.3 11.3 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · frame time (p99) (ms) 22.2 21.9 (−2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · worst frame time in the whole run (ms) 2,159 2,116 (−2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · field · peak VRAM (MB) 8,754 8,728 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only) · market · peak VRAM (MB) 6,470 6,526 (+1%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · GPU time a frame (ms) 7.5 7.6 (+2%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · GPU time a frame (ms) 14.7 14.6 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · longest load (s) 5.1 5.1 (−0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · frame time (p99) (ms) 11.1 13.7 (+23%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · frame time (p99) (ms) 22.1 22.2 (+0%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · forbidden log lines 0.0 0.0
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · worst frame time in the whole run (ms) 1,920 1,902 (−1%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · field · peak VRAM (MB) 8,328 8,762 (+5%)
market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only) · market · peak VRAM (MB) 6,582 6,333 (−4%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_ASTC_BC_SPLIT switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default market-field-uploads, main without it → the PR with : 7.5 → 7.5 (−0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd (1 report): `market-field-uploads field.frametime_p99_ms.max_delta_pct (+23.2%)` failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`  
Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 |
|---|---|---|
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.5 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 14.6 | 14.6 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.1 | 5.1 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 11.3 | 11.3 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 22.2 | 21.9 (−2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 2,159 | 2,116 (−2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,754 | 8,728 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,470 | 6,526 (+1%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.6 (+2%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 14.7 | 14.6 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.1 | 5.1 (−0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 11.1 | 13.7 (+23%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 22.1 | 22.2 (+0%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,920 | 1,902 (−1%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,328 | 8,762 (+5%) |
| market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 6,582 | 6,333 (−4%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.5 → 7.5 (−0%) | no clear effect |
The testers' hardware
Target Report Ran on
amd 1 linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
amd 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-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 580 Series (RADV POLARIS10), 26.3.1 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>1988922</code> (the newer results are in a comment below)</summary> Commit `1988922` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2909) ⚠️ **Note:** The farm cannot run the requested standalone texture benchmark or isolate per-texture ASTC conversion spans, so the reported GPU time and entry hitches do not directly establish the claimed conversion speed-up. ⚠️ **Note:** The default and one-pass routes are compared within the PR, but specialization and grouping kill switches are not isolated within the time budget; two starts per side are the minimum for comparison. ⚠️ **Note:** Stationary screenshot comparisons cover the two teleport views, not every texture footprint or the moving route. Started at 03:36 UTC. **Estimate:** done in about 35 min, from the queue and the testers online now; some jobs can't start yet. ⚠ No tester has a PC for `linux+nvidia+gpu-rtx-3090` (none seen in 14 days): it waits until one signs in. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `nvidia` | 🔄 running | 0 of 1 | — | — | | `amd` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_f143e4e0b7f45789) [2](https://beanstalk.magicbean.dev/reports/rp_64f6ec5ad7a78a3e) | 8,240 → 8,236 (−0%) | none | | `intel` | 🔄 running | 0 of 1 | — | — | | `steamdeck` | 🔄 running | 0 of 1 | — | — | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_07f844d14fdb213c) [2](https://beanstalk.magicbean.dev/reports/rp_687e56dfc90def85) | 5,072 → 5,254 (+4%) | none | | `windows+amd` | ❌ fail | 1 [1](https://beanstalk.magicbean.dev/reports/rp_73e0187f8336157d) | 8,754 → 8,728 (−0%) | none | | `windows+amd+gpu-860m` (GPU "860m") | ⏳ queued | 0 of 1 | — | — | | `linux+nvidia+gpu-rtx-3090` (GPU "rtx 3090") | ⏳ queued | 0 of 1 | — | — | **`market-field-uploads`** · frame time p99 (ms) | Target | main | `RX_VK_ASTC_BC_SPLIT=` | `RX_VK_ASTC_BC_SPLIT=0` (reference) | | --- | --- | --- | --- | | `nvidia` | — | — | — | | `amd` | 34.7 | 34.7 (+0%) | 34.6 | | `intel` | — | — | — | | `steamdeck` | — | — | — | | `linux+radv` | 19.3 | 21.4 (+12%) | 19.0 | | `windows+amd` | 11.1 | 11.3 (−18%) | 13.7 | | `windows+amd+gpu-860m` (GPU "860m") | — | — | — | | `linux+nvidia+gpu-rtx-3090` (GPU "rtx 3090") | — | — | — | **Why it failed** - `linux+radv`: `market-field-uploads · RX_VK_ASTC_BC_SPLIT= (PR only)` `screenshot.max_diff`: `0.1 → 0.8; limit 0.2` - `windows+amd`: `market-field-uploads · RX_VK_ASTC_BC_SPLIT=0 (PR only)` `field.frametime_p99_ms.max_delta_pct`: `11.1 → 13.7 (+23.2%); limit 20.0` **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. - `amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_f143e4e0b7f45789): `Insufficient frame-time evidence for 2 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare the default two-step ASTC conversion with the PR's one-pass route and with main in the Market and Hyrule Field, using two starts per side and 20-second measurements at each location. It will measure frame times, GPU time, load times and entry hitches, and compare stationary pictures for texture changes. Crashes, upload or device-loss errors, substantial timing regressions or excessive picture differences fail the plan. The Windows Radeon 860M target has no matching GPU listed online and will wait for a tester. No tester online now matches windows+amd+gpu-860m, linux+nvidia+gpu-rtx-3090: those targets wait for one. - **Where:** nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports), linux+radv (1-2 reports), windows+amd (1-2 reports), windows+amd+gpu-860m (GPU "860m", 1-2 reports), linux+nvidia+gpu-rtx-3090 (GPU "rtx 3090", 1-2 reports). - **Matrix:** 2 cells, each on main and the PR: RX_VK_ASTC_BC_SPLIT `` or `0` (PR only). - **market-field-uploads:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=gpu`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), move the stick; 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, GPU time per pass, load times, VRAM use, the game's log. - **The PR fails if:** it crashes; or the PR's worst frame time in the whole run with RX_VK_ASTC_BC_SPLIT= is more than 50% above RX_VK_ASTC_BC_SPLIT=0; or a picture differs from main by more than 20%; or GPU time a frame is more than 20% above main; or longest load is more than 25% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or worst frame time in the whole run is more than 50% above main. - **Time:** about 49 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** pass on amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.9 | 7.9 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 10.6 | 10.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.5 | 5.9 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.7 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 47.2 | 47.3 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,759 | 2,007 (+14%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,240 | 8,236 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,444 | 5,736 (−11%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 10.7 | 9.3 (−13%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.6 | 5.5 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.6 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 47.5 | 47.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,887 | 1,917 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,156 | 8,148 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 5,750 | 6,418 (+12%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.9 → 7.9 (−0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.9 | 7.9 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 10.6 | 10.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.5 | 5.9 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.7 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 47.2 | 47.3 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,759 | 2,007 (+14%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,240 | 8,236 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,444 | 5,736 (−11%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 10.7 | 9.3 (−13%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.6 | 5.5 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 34.7 | 34.6 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 47.5 | 47.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,887 | 1,917 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,156 | 8,148 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 5,750 | 6,418 (+12%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.9 → 7.9 (−0%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** fail on linux+radv (2 reports): `market-field-uploads screenshot.max_diff` failed. 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 580 Series (RADV POLARIS10), 26.3.1` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 15.1 | 16.0 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 15.4 | 14.7 (−5%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.0 | 4.8 (−4%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 19.3 | 21.4 (+11%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 21.1 | 22.4 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,669 | 1,653 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 5,072 | 5,254 (+4%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 4,263 | 4,526 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 15.1 | 15.0 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 15.5 | 15.4 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.0 | 4.9 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 19.3 | 19.0 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 21.1 | 21.6 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,655 | 1,547 (−7%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 5,185 | 5,090 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 4,472 | 4,278 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 15.1 → 16.0 (+6%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `market-field-uploads screenshot.max_diff` failed. 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 580 Series (RADV POLARIS10), 26.3.1` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 15.1 | 16.0 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 15.4 | 14.7 (−5%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.0 | 4.8 (−4%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 19.3 | 21.4 (+11%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 21.1 | 22.4 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 1,669 | 1,653 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 5,072 | 5,254 (+4%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 4,263 | 4,526 (+6%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 15.1 | 15.0 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 15.5 | 15.4 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.0 | 4.9 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 19.3 | 19.0 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 21.1 | 21.6 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,655 | 1,547 (−7%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 5,185 | 5,090 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 4,472 | 4,278 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 15.1 → 16.0 (+6%) | doesn't help | ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** fail on windows+amd (1 report): `market-field-uploads field.frametime_p99_ms.max_delta_pct (+23.2%)` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.5 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 14.6 | 14.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.1 | 5.1 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 11.3 | 11.3 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 22.2 | 21.9 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 2,159 | 2,116 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,754 | 8,728 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,470 | 6,526 (+1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.6 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 14.7 | 14.6 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.1 | 5.1 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 11.1 | 13.7 (+23%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 22.1 | 22.2 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,920 | 1,902 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,328 | 8,762 (+5%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 6,582 | 6,333 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.5 → 7.5 (−0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd (1 report): `market-field-uploads field.frametime_p99_ms.max_delta_pct (+23.2%)` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` Scene: market-field-uploads, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); 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); market-field-uploads: 2 game starts a side, market 20 s after 10 s warm-up, 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 @ 0863eff | After: this PR @ 1988922 | |---|---|---| | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.5 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · GPU time a frame (ms) | 14.6 | 14.6 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · longest load (s) | 5.1 | 5.1 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · frame time (p99) (ms) | 11.3 | 11.3 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · frame time (p99) (ms) | 22.2 | 21.9 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · worst frame time in the whole run (ms) | 2,159 | 2,116 (−2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · field · peak VRAM (MB) | 8,754 | 8,728 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT= (PR only)` · market · peak VRAM (MB) | 6,470 | 6,526 (+1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · GPU time a frame (ms) | 7.5 | 7.6 (+2%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · GPU time a frame (ms) | 14.7 | 14.6 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · longest load (s) | 5.1 | 5.1 (−0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · frame time (p99) (ms) | 11.1 | 13.7 (+23%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · frame time (p99) (ms) | 22.1 | 22.2 (+0%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · forbidden log lines | 0.0 | 0.0 | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · worst frame time in the whole run (ms) | 1,920 | 1,902 (−1%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · field · peak VRAM (MB) | 8,328 | 8,762 (+5%) | | market-field-uploads · `RX_VK_ASTC_BC_SPLIT=0 (PR only)` · market · peak VRAM (MB) | 6,582 | 6,333 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_ASTC_BC_SPLIT` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | market-field-uploads, main without it → the PR with : 7.5 → 7.5 (−0%) | no clear effect | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_f143e4e0b7f45789) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_64f6ec5ad7a78a3e) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_07f844d14fdb213c) | 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_687e56dfc90def85) | linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.3.1` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_73e0187f8336157d) | windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | </details> </details>
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The upload fixture inherits switches that can disable the grouping it is meant to check. The current head’s in-game benefit and its effects on supported hardware and startup also remain unmeasured. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change replaces the existing ASTC-to-BC3 conversion path, defaults to a two-step converter, specializes its decoder and groups uploads. Earlier RX 580 game runs show shorter conversion spans, but the added pipelines, buffer and changed upload ordering carry startup, memory and compatibility costs that have not yet been measured on the current head.

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

  • L1 tests/test_astc_upload_gpu.py:152: The GPU fixture inherits the caller’s renderer switches, so it can silently run with the behavior under test disabled. (more on the line) Do: Run the fixture and its hazard probe with renderer switches removed from their environment, then set only the values required by each explicit test case.

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

  • L2 gpu/vk/vk_texture.cpp:1125: The current head’s grouping and specialization have not been measured in the game against main. (more on the line) Do: Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off.
  • L3 gpu/vk/device_policy.h:829: The new default conversion route and upload ordering need coverage on the supported hardware they affect. (more on the line) Do: Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.
  • L4 gpu/vk/vk_texture.cpp:1006: The startup and cache cost of creating 14 additional decoder pipelines is not measured. (more on the line) Do: Compare cold and warm startup time and pipeline-cache size against main on representative supported hardware. (@fix does its part first: Create only the specialized pipelines actually needed, or defer their creation without blocking play.)

@fix can do L1 and L4.

Checks: Failing on this head, which is behind its base, where they pass: CI / Third-party parts and guide screenshots (pull_request), CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request), CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request), CI / Website build and checks (pull_request), CI / Game-free checks (run_all.py, part 1/2) (pull_request), CI / Game-free checks (run_all.py, part 2/2) (pull_request). @rebase (or @fix) brings it up to date and runs them again; not held against it.

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

Does it help: Unproven for the current head. Earlier RX 580 runs report 1,134 ms on main versus 994 ms for all ASTC spans in one pass-timing run; the current head’s synthetic bench reports 4–7% faster conversions than the preceding head on that GPU. Its in-game comparison against main is pending, and the grouping benefit is not measured by the single-texture bench.

Other systems: The conversion affects BC3 textures, upload synchronization, GPU memory and pipeline creation on both Windows and Linux. RX 580 Linux game runs and synthetic RX 580 and RTX 3090 measurements are reported; Windows, RDNA discrete GPUs, Intel and Steam Deck remain untested. The RGBA8 route and copies into BC3 also share parts of the changed upload machinery.

Switches: RX_VK_ASTC_BC_SPLIT defaults to 1, with 0 selecting one pass and 2 the cheaper two-step encoder. RX_VK_ASTC_SPEC and RX_VK_ASTC_BC_GROUP default on and accept 0 as kill switches. Their defaults are not yet supported by measurements across the affected platforms. RX_VK_UNEVEN_BC and RX_VK_UNEVEN_RGBA8 retain their defaults but change behavior when the uneven-level workaround is enabled. RX_VK_ASTC_BC7, RX_VK_BC_IDLE_S, RX_VK_BC_LAYERS, RX_VK_BC_LEVELS, RX_VK_BC_POOL and RX_VK_BC_SMALL_LAYERS are removed with GONE rows.

Reviewed: 1988922f57 against 0863effaf5: Read the supplied PR description, comments and CI results, repository rules, template, standards, commit log, and the principal conversion and upload code and fixture wrapper. Skimmed the remaining diff and generated shader headers; did not read every changed file in full. docs/review-checklist.md was absent.; nothing run (a code review).

Checked and fine:

  • The reported commits include AI-assistance trailers.
  • The new switches have table entries and the removed switches have GONE rows.
  • The failed-upload group retains its occupied buffer offsets until a flush emits a barrier.

Testing: Read-only review; no code, tests or project scripts were run. The author reports game-free fixture results and earlier RX 580 game runs.

Overlaps and merge order: #2473 contains the six carried commits. If it merges first, remove the duplicate commits and recheck the resulting diff and measurements.


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

**Recommendation: Approve.** The upload fixture inherits switches that can disable the grouping it is meant to check. The current head’s in-game benefit and its effects on supported hardware and startup also remain unmeasured. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change replaces the existing ASTC-to-BC3 conversion path, defaults to a two-step converter, specializes its decoder and groups uploads. Earlier RX 580 game runs show shorter conversion spans, but the added pipelines, buffer and changed upload ordering carry startup, memory and compatibility costs that have not yet been measured on the current head. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `tests/test_astc_upload_gpu.py:152`: The GPU fixture inherits the caller’s renderer switches, so it can silently run with the behavior under test disabled. (more on the line) **Do:** Run the fixture and its hazard probe with renderer switches removed from their environment, then set only the values required by each explicit test case. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_texture.cpp:1125`: The current head’s grouping and specialization have not been measured in the game against main. (more on the line) **Do:** Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off. - **L3** `gpu/vk/device_policy.h:829`: The new default conversion route and upload ordering need coverage on the supported hardware they affect. (more on the line) **Do:** Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results. - **L4** `gpu/vk/vk_texture.cpp:1006`: The startup and cache cost of creating 14 additional decoder pipelines is not measured. (more on the line) **Do:** Compare cold and warm startup time and pipeline-cache size against main on representative supported hardware. *(`@fix` does its part first: Create only the specialized pipelines actually needed, or defer their creation without blocking play.)* `@fix` can do L1 and L4. **Checks:** Failing on this head, which is behind its base, where they pass: `CI / Third-party parts and guide screenshots (pull_request)`, `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)`, `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)`, `CI / Website build and checks (pull_request)`, `CI / Game-free checks (run_all.py, part 1/2) (pull_request)`, `CI / Game-free checks (run_all.py, part 2/2) (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the current head. Earlier RX 580 runs report 1,134 ms on main versus 994 ms for all ASTC spans in one pass-timing run; the current head’s synthetic bench reports 4–7% faster conversions than the preceding head on that GPU. Its in-game comparison against main is pending, and the grouping benefit is not measured by the single-texture bench. **Other systems:** The conversion affects BC3 textures, upload synchronization, GPU memory and pipeline creation on both Windows and Linux. RX 580 Linux game runs and synthetic RX 580 and RTX 3090 measurements are reported; Windows, RDNA discrete GPUs, Intel and Steam Deck remain untested. The RGBA8 route and copies into BC3 also share parts of the changed upload machinery. **Switches:** RX_VK_ASTC_BC_SPLIT defaults to 1, with 0 selecting one pass and 2 the cheaper two-step encoder. RX_VK_ASTC_SPEC and RX_VK_ASTC_BC_GROUP default on and accept 0 as kill switches. Their defaults are not yet supported by measurements across the affected platforms. RX_VK_UNEVEN_BC and RX_VK_UNEVEN_RGBA8 retain their defaults but change behavior when the uneven-level workaround is enabled. RX_VK_ASTC_BC7, RX_VK_BC_IDLE_S, RX_VK_BC_LAYERS, RX_VK_BC_LEVELS, RX_VK_BC_POOL and RX_VK_BC_SMALL_LAYERS are removed with GONE rows. **Reviewed:** 1988922f5795 against 0863effaf540: Read the supplied PR description, comments and CI results, repository rules, template, standards, commit log, and the principal conversion and upload code and fixture wrapper. Skimmed the remaining diff and generated shader headers; did not read every changed file in full. docs/review-checklist.md was absent.; nothing run (a code review). **Checked and fine:** - The reported commits include AI-assistance trailers. - The new switches have table entries and the removed switches have GONE rows. - The failed-upload group retains its occupied buffer offsets until a flush emits a barrier. **Testing:** Read-only review; no code, tests or project scripts were run. The author reports game-free fixture results and earlier RX 580 game runs. **Overlaps and merge order:** #2473 contains the six carried commits. If it merges first, remove the duplicate commits and recheck the resulting diff and measurements. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -821,3 +827,3 @@
p.replay_queue_priority = policy_rule::replay_queue_priority(f.game_queue_low, f.windows, f.driver_id, f.framegen);
p.pcache_small_pc = !f.windows && f.driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY && (f.ram >> 20) && (f.ram >> 20) <= 20480;
p.bc_small_runs = f.radv() || f.driver_id == VK_DRIVER_ID_NVIDIA_PROPRIETARY || f.amd_win();
p.astc_bc_split = 1; // (the two steps on every PC: faster than the one pass on every GPU measured)
Member

L3 (should fix): The new default conversion route and upload ordering need coverage on the supported hardware they affect.

When: Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing.

Do: Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.

**L3** (should fix): The new default conversion route and upload ordering need coverage on the supported hardware they affect. *When:* Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. **Do:** Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.
@ -1152,0 +1003,4 @@
} else {
const char* spec_env = getenv("RX_VK_ASTC_SPEC");
uint32_t made = 0;
if (!(spec_env && env_value_off(spec_env))) {
Member

L4 (should fix): The startup and cache cost of creating 14 additional decoder pipelines is not measured.

When: A player with a cold pipeline cache must create the specialized pipelines before play, while the reported measurements cover conversion time rather than cold and warm startup or cache size.

Do: Compare cold and warm startup time and pipeline-cache size against main on representative supported hardware.

**L4** (should fix): The startup and cache cost of creating 14 additional decoder pipelines is not measured. *When:* A player with a cold pipeline cache must create the specialized pipelines before play, while the reported measurements cover conversion time rather than cold and warm startup or cache size. **Do:** Compare cold and warm startup time and pipeline-cache size against main on representative supported hardware.
@ -1276,2 +1124,2 @@
if (bc_small_layer_u[k]) ds.views.push_back(bc_small_layer_u[k]);
bc_small_layer[k] = bc_small_layer_u[k] = VK_NULL_HANDLE;
void bc3_group_flush() {
Member

L2 (should fix): The current head’s grouping and specialization have not been measured in the game against main.

When: The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing.

Do: Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off.

**L2** (should fix): The current head’s grouping and specialization have not been measured in the game against main. *When:* The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing. **Do:** Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off.
@ -0,0 +149,4 @@
print(probe.stdout, end="")
return
print(probe.stdout[-2000:] + probe.stderr[-2000:])
raise SystemExit("FAIL: synchronization validation did not report a missing barrier after a dispatch: its checks would be hollow")
Member

L1 (should fix): The GPU fixture inherits the caller’s renderer switches, so it can silently run with the behavior under test disabled.

When: With RX_VK_ASTC_BC_GROUP=0 in the environment, the subprocess flushes after every texture and can pass without exercising grouped uploads; RX_VK_ASTC_SPEC=0 likewise disables specialized pipelines.

Do: Run the fixture and its hazard probe with renderer switches removed from their environment, then set only the values required by each explicit test case.

**L1** (should fix): The GPU fixture inherits the caller’s renderer switches, so it can silently run with the behavior under test disabled. *When:* With RX_VK_ASTC_BC_GROUP=0 in the environment, the subprocess flushes after every texture and can pass without exercising grouped uploads; RX_VK_ASTC_SPEC=0 likewise disables specialized pipelines. **Do:** Run the fixture and its hazard probe with renderer switches removed from their environment, then set only the values required by each explicit test case.
Author
Owner
@fix
BeanBot force-pushed perf/astc-bc3-two-steps from 1988922f57
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m38s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m3s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m13s
CI / Website build and checks (pull_request) Failing after 35s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 17m42s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 38m19s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 running, 0 queued
beanstalk/amd 1/1 pass
beanstalk/intel 0/1 pass, 1 running, 1 queued
beanstalk/steamdeck 0/1 pass, 1 running, 1 queued
beanstalk/linux+radv 1/1 fail
beanstalk/windows+amd 1/1 fail
beanstalk/windows+amd+gpu-860m 0/1 pass, 0 running, 2 queued
beanstalk/linux+nvidia+gpu-rtx-3090 0/1 pass, 0 running, 2 queued
to 412f1d023c
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m3s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m6s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m21s
CI / Website build and checks (pull_request) Failing after 37s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m25s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 44m37s
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 8s
2026-12-01 04:01:55 +00:00
Compare
Member

Beanstalk test farm

Commit ff79b9e · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `ff79b9e` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2909) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The current implementation still needs in-game and hardware coverage, including the first-use cost of creating specialized pipelines. Earlier RX 580 results show a conversion-time gain, but they do not measure this head. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 412f1d023c. I rebased it onto main (4908cc6dad). I edited its description to match the change.

Changed

  • GPU fixture environment, tests/test_astc_upload_gpu.py:141: Remove inherited RX_VK_ switches from the fixture and hazard probe; the explicit benchmark retains its measurement environment. No tests were run.

Changed in part (the rest is for the author)

  • Specialized pipeline startup and cache cost, gpu/vk/vk_texture.cpp:944: Create specialized pipelines only for footprints used, retaining the unspecialized fallback; update the switch documentation. The author must measure startup, first-use compilation and pipeline-cache costs on representative hardware.

Nothing was built or run: the checks run again on the new head.

The change converts large ASTC textures to BC3 using two steps by default, specializes the decoder and groups uploads. The fix creates specialized pipelines only for footprints encountered, reducing unnecessary startup work but potentially adding compilation time during play.

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

  • L2 gpu/vk/vk_texture.cpp:1125: The current head’s grouping and specialization have not been measured in the game against main. When: The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing. Do: Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off.
  • L3 gpu/vk/device_policy.h:829: The new default conversion route and upload ordering need coverage on the supported hardware they affect. When: Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. Do: Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.
  • L4 gpu/vk/vk_texture.cpp:1006: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. When: The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. Do: Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware.

Checks: they run again on this head (CI / Third-party parts and guide screenshots (pull_request), CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request), CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request), CI / Website build and checks (pull_request), CI / Game-free checks (run_all.py, part 1/2) (pull_request) failed on the last one); a failure shows on the pull request.

Also noticed (2; not asked for, not blocking)
  • The pull request description still says all 14 specialized pipelines are made before the game, while the code now creates them on first use.
  • The diff from the stated base includes other merged changes beyond the files listed in the pull request.
More: does it help, other systems, switches, what was read

Does it help: Unproven for this head. Earlier RX 580 runs reported 994 ms versus main's 1,134 ms for all ASTC GPU spans in one timing run; the current grouping and on-demand specialization have not been measured in game against main.

Other systems: The conversion and upload ordering affect Vulkan drivers and texture workloads across Windows and Linux. Windows, Intel, RDNA, Steam Deck and in-game NVIDIA coverage remains outstanding; the two-step route also allocates a 16 MB texel buffer when used.

Switches: RX_VK_ASTC_BC_SPLIT defaults to 1, selecting two steps; 0 selects one pass and 2 selects the cheaper encoder. RX_VK_ASTC_SPEC and RX_VK_ASTC_BC_GROUP default on and can be set to 0. The defaults remain subject to the outstanding hardware and in-game measurements; the fix updates the specialization switch documentation.

Reviewed: 412f1d023c against 4908cc6dad: Read tests/test_astc_upload_gpu.py in full and the fix diff, pipeline creation and upload call site in gpu/vk/vk_texture.cpp. Read the repository instructions and PR template, and inspected the commit log and diff statistics. The full base diff and remaining changed code and generated files were not read in full; the adjacent Tooling instructions were unavailable.; nothing run (a code review).

Checked and fine:

  • The specialized decoder falls back to the unspecialized pipeline if creation fails.
  • The fixture and hazard probe remove inherited RX_VK_ variables while the benchmark retains its measurement environment.
  • The fix retains the specialized decoder and grouped upload paths.

Testing: No commands that build or run the project were executed. CI has not run on this head; the reported game and benchmark runs precede the on-demand pipeline change.

Overlaps and merge order: The pull request carries #2473's commits and can stand alone; if #2473 merges first, its duplicated commits need to fall away.


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

**Recommendation: Approve.** The code is ready: only testing is left. The current implementation still needs in-game and hardware coverage, including the first-use cost of creating specialized pipelines. Earlier RX 580 results show a conversion-time gain, but they do not measure this head. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 412f1d023c7f. I rebased it onto `main` (4908cc6dadff). I edited its description to match the change. **Changed** - **GPU fixture environment, tests/test_astc_upload_gpu.py:141**: Remove inherited RX_VK_ switches from the fixture and hazard probe; the explicit benchmark retains its measurement environment. No tests were run. **Changed in part (the rest is for the author)** - **Specialized pipeline startup and cache cost, gpu/vk/vk_texture.cpp:944**: Create specialized pipelines only for footprints used, retaining the unspecialized fallback; update the switch documentation. The author must measure startup, first-use compilation and pipeline-cache costs on representative hardware. Nothing was built or run: the checks run again on the new head. The change converts large ASTC textures to BC3 using two steps by default, specializes the decoder and groups uploads. The fix creates specialized pipelines only for footprints encountered, reducing unnecessary startup work but potentially adding compilation time during play. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_texture.cpp:1125`: The current head’s grouping and specialization have not been measured in the game against main. *When:* The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing. **Do:** Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off. - **L3** `gpu/vk/device_policy.h:829`: The new default conversion route and upload ordering need coverage on the supported hardware they affect. *When:* Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. **Do:** Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results. - **L4** `gpu/vk/vk_texture.cpp:1006`: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. *When:* The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. **Do:** Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware. **Checks:** they run again on this head (`CI / Third-party parts and guide screenshots (pull_request)`, `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)`, `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)`, `CI / Website build and checks (pull_request)`, `CI / Game-free checks (run_all.py, part 1/2) (pull_request)` failed on the last one); a failure shows on the pull request. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The pull request description still says all 14 specialized pipelines are made before the game, while the code now creates them on first use. - The diff from the stated base includes other merged changes beyond the files listed in the pull request. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for this head. Earlier RX 580 runs reported 994 ms versus main's 1,134 ms for all ASTC GPU spans in one timing run; the current grouping and on-demand specialization have not been measured in game against main. **Other systems:** The conversion and upload ordering affect Vulkan drivers and texture workloads across Windows and Linux. Windows, Intel, RDNA, Steam Deck and in-game NVIDIA coverage remains outstanding; the two-step route also allocates a 16 MB texel buffer when used. **Switches:** RX_VK_ASTC_BC_SPLIT defaults to 1, selecting two steps; 0 selects one pass and 2 selects the cheaper encoder. RX_VK_ASTC_SPEC and RX_VK_ASTC_BC_GROUP default on and can be set to 0. The defaults remain subject to the outstanding hardware and in-game measurements; the fix updates the specialization switch documentation. **Reviewed:** 412f1d023c7f against 4908cc6dadff: Read tests/test_astc_upload_gpu.py in full and the fix diff, pipeline creation and upload call site in gpu/vk/vk_texture.cpp. Read the repository instructions and PR template, and inspected the commit log and diff statistics. The full base diff and remaining changed code and generated files were not read in full; the adjacent Tooling instructions were unavailable.; nothing run (a code review). **Checked and fine:** - The specialized decoder falls back to the unspecialized pipeline if creation fails. - The fixture and hazard probe remove inherited RX_VK_ variables while the benchmark retains its measurement environment. - The fix retains the specialized decoder and grouped upload paths. **Testing:** No commands that build or run the project were executed. CI has not run on this head; the reported game and benchmark runs precede the on-demand pipeline change. **Overlaps and merge order:** The pull request carries #2473's commits and can stand alone; if #2473 merges first, its duplicated commits need to fall away. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
Author
Owner

Measured in the game on an RTX 3090 (Linux, 1080p fixed, no upscaler, uncapped): fps and hitches are within noise against main, and the conversion's GPU time is lower (all ASTC spans −9 %, a layer-array span −24 %). The table is under Measurements. Still WIP: the RX 580 in-game confirmation on a quiet lab and a Windows build are open.

Measured in the game on an RTX 3090 (Linux, 1080p fixed, no upscaler, uncapped): fps and hitches are within noise against main, and the conversion's GPU time is lower (all ASTC spans −9 %, a layer-array span −24 %). The table is under Measurements. Still WIP: the RX 580 in-game confirmation on a quiet lab and a Windows build are open.
HumanBean force-pushed perf/astc-bc3-two-steps from 412f1d023c
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m3s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m6s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m21s
CI / Website build and checks (pull_request) Failing after 37s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m25s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 44m37s
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 8s
to 890266eb19
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-01 16:30:22 +00:00
Compare
HumanBean force-pushed perf/astc-bc3-two-steps from 890266eb19
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to bf3b9972a1
Some checks failed
beanstalk/approval not approved yet
CI / What the change needs (pull_request) Successful in 9s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m23s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 8m39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 8m1s
CI / Website build and checks (pull_request) Failing after 31s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 30m45s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m13s
2026-12-01 16:31:43 +00:00
Compare
HumanBean changed title from WIP: perf(vk): big ASTC textures go to BC3 in two steps by default, with a leaner, specialized encode path and grouped uploads to WIP: perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, uploads grouped, decoder specialized 2026-12-01 16:32:32 +00:00
Author
Owner

Rewritten. The old head (1988922f, and before it 9b3022a3) carried #2473's six commits with our two on top. This head is three commits of our own on current main and no longer contains or depends on #2473. It adds the decoder's specialization constants, a texel-buffer route with a new encoder (bc3_from_texels.comp) and grouped barriers, and a lookup table for weight unquantization. Main's RGBA8-scratch path stays behind RX_VK_ASTC_BC_TEXELS=0. The game-free bench is in Measurements; the in-game lab runs are pending, so this stays WIP.

Rewritten. The old head (1988922f, and before it 9b3022a3) carried #2473's six commits with our two on top. This head is three commits of our own on current main and no longer contains or depends on #2473. It adds the decoder's specialization constants, a texel-buffer route with a new encoder (bc3_from_texels.comp) and grouped barriers, and a lookup table for weight unquantization. Main's RGBA8-scratch path stays behind RX_VK_ASTC_BC_TEXELS=0. The game-free bench is in Measurements; the in-game lab runs are pending, so this stays WIP.
Author
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The game-free measurements show faster conversion for larger footprints, but the current implementation still needs in-game measurements and coverage across the hardware it affects. Startup and pipeline-cache costs also remain unmeasured. Recommend approval; not approved on the forge.

The change specializes ASTC decoding, adds a texel-buffer route and encoder for BC3, and groups uploads to reduce barriers. It adds pipeline compilation and 32 MB of buffers in exchange for measured conversion savings on larger footprints.

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

  • L2 gpu/vk/vk_texture.cpp:1125: The current head’s grouping and specialization have not been measured in the game against main. When: The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing. Do: Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off.
  • L3 gpu/vk/device_policy.h:829: The new default conversion route and upload ordering need coverage on the supported hardware they affect. When: Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. Do: Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.
  • L4 gpu/vk/vk_texture.cpp:1006: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. When: The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. Do: Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware.

Since the last review (on 412f1d023c)
Still open: L2 (The current head’s grouping and specialization have not been measured in the game against…); L3 (The new default conversion route and upload ordering need coverage on the supported hardwa…); L4 (The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured.); L5 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…); L6 (The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this he…); L7 (The check CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) fails on th…); L8 (The check CI / Website build and checks (pull_request) fails on this head and passes on…); L9 (The check CI / Game-free checks (run_all.py, part 1/2) (pull_request) fails on this head…); L10 (The check CI / Game-free checks (run_all.py, part 2/2) (pull_request) fails on this head…)

Checks: Still running: 11 checks.

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

Does it help: Unproven in game. The PR reports median game-free conversion times 17–23% lower on RX 580 and 14–47% lower on RTX 3090 for 8×8 and larger footprints; the current head's in-game results are pending.

Other systems: The default route affects BC3 uploads across Vulkan GPUs and drivers, including Windows, Intel, RDNA and Steam Deck. BC7 and AMD-resized textures retain the scratch-image route; the described hardware coverage remains outstanding.

Switches: RX_VK_ASTC_SPEC, RX_VK_ASTC_BC_TEXELS and RX_VK_ASTC_BC_GROUP default on; RX_VK_ASTC_BC_ROWS defaults to 8 for a 64-wide subgroup and 4 otherwise. Their defaults still need the outstanding hardware and in-game measurements; the switch table is updated.

Reviewed: bf3b9972a1 against 4908cc6dad: Read AGENTS.md, CONTRIBUTING.md, the changed ASTC decoder and BC3 route diffs, and the texel-route implementation. Generated shader headers, tests and remaining changed files were skimmed; the full changed code was not read.; nothing run (a code review).

Checked and fine:

  • The texel route falls back to the existing image route when its required pipelines or buffers cannot be made.
  • The group flushes before a command-buffer handover and at the end of a recording.

Testing: The PR reports game-free decoder and encoder checks on llvmpipe and a Linux renderer build. The current head needs the listed in-game comparisons, hardware coverage and pipeline-cost measurements; CI is still running.

Overlaps and merge order: #2473 proposed the same conversion approach; the rewritten PR states that it is independent and does not depend on it.


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

**Recommendation: Approve.** The code is ready: only testing is left. The game-free measurements show faster conversion for larger footprints, but the current implementation still needs in-game measurements and coverage across the hardware it affects. Startup and pipeline-cache costs also remain unmeasured. Recommend approval; not approved on the forge. The change specializes ASTC decoding, adds a texel-buffer route and encoder for BC3, and groups uploads to reduce barriers. It adds pipeline compilation and 32 MB of buffers in exchange for measured conversion savings on larger footprints. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2** `gpu/vk/vk_texture.cpp:1125`: The current head’s grouping and specialization have not been measured in the game against main. *When:* The reported game runs predate these changes, while the newer bench uploads only one texture per recording and therefore cannot measure grouping or its effect on frame pacing. **Do:** Run the planned interleaved game comparison against the merge base, including frame times and ASTC spans, and compare grouping on and off. - **L3** `gpu/vk/device_policy.h:829`: The new default conversion route and upload ordering need coverage on the supported hardware they affect. *When:* Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. **Do:** Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results. - **L4** `gpu/vk/vk_texture.cpp:1006`: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. *When:* The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. **Do:** Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware. **Since the last review** (on 412f1d023c7f) Still open: L2 (The current head’s grouping and specialization have not been measured in the game against…); L3 (The new default conversion route and upload ordering need coverage on the supported hardwa…); L4 (The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured.); L5 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…); L6 (The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this he…); L7 (The check `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)` fails on th…); L8 (The check `CI / Website build and checks (pull_request)` fails on this head and passes on…); L9 (The check `CI / Game-free checks (run_all.py, part 1/2) (pull_request)` fails on this head…); L10 (The check `CI / Game-free checks (run_all.py, part 2/2) (pull_request)` fails on this head…) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven in game. The PR reports median game-free conversion times 17–23% lower on RX 580 and 14–47% lower on RTX 3090 for 8×8 and larger footprints; the current head's in-game results are pending. **Other systems:** The default route affects BC3 uploads across Vulkan GPUs and drivers, including Windows, Intel, RDNA and Steam Deck. BC7 and AMD-resized textures retain the scratch-image route; the described hardware coverage remains outstanding. **Switches:** RX_VK_ASTC_SPEC, RX_VK_ASTC_BC_TEXELS and RX_VK_ASTC_BC_GROUP default on; RX_VK_ASTC_BC_ROWS defaults to 8 for a 64-wide subgroup and 4 otherwise. Their defaults still need the outstanding hardware and in-game measurements; the switch table is updated. **Reviewed:** bf3b9972a1b1 against 4908cc6dadff: Read AGENTS.md, CONTRIBUTING.md, the changed ASTC decoder and BC3 route diffs, and the texel-route implementation. Generated shader headers, tests and remaining changed files were skimmed; the full changed code was not read.; nothing run (a code review). **Checked and fine:** - The texel route falls back to the existing image route when its required pipelines or buffers cannot be made. - The group flushes before a command-buffer handover and at the end of a recording. **Testing:** The PR reports game-free decoder and encoder checks on llvmpipe and a Linux renderer build. The current head needs the listed in-game comparisons, hardware coverage and pipeline-cost measurements; CI is still running. **Overlaps and merge order:** #2473 proposed the same conversion approach; the rewritten PR states that it is independent and does not depend on it. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
HumanBean force-pushed perf/astc-bc3-two-steps from bf3b9972a1
Some checks failed
beanstalk/approval not approved yet
CI / What the change needs (pull_request) Successful in 9s
PR description / Title and description (pull_request_target) Successful in 6s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 18s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m25s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m23s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 8m39s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 8m1s
CI / Website build and checks (pull_request) Failing after 31s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 30m45s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m13s
to ff79b9ed83
Some checks failed
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 11s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 14s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m4s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m15s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m18s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m25s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 29m56s
PR description / Title and description (pull_request_target) Failing after 7s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m13s
beanstalk/approval not approved yet
2026-12-01 20:55:01 +00:00
Compare
Author
Owner

Pushed ff79b9ed. The lab's in-game pairs (RX 580) found a crash: grouping left a BC3 group pending when an RGBA8 upload's chunk flush ended the command buffer. It is fixed: replay_flush_upload flushes the group first, and tests/test_bc3_group_flush.py guards it. Two clean pairs followed, with zero crashes. The conversion's GPU time is 34 % lower in the game, and hitches are unchanged. The field walk measured about 4 % slower, still unexplained, so this stays WIP until an in-run A/B settles it. Details are in Measurements.

Pushed ff79b9ed. The lab's in-game pairs (RX 580) found a crash: grouping left a BC3 group pending when an RGBA8 upload's chunk flush ended the command buffer. It is fixed: replay_flush_upload flushes the group first, and tests/test_bc3_group_flush.py guards it. Two clean pairs followed, with zero crashes. The conversion's GPU time is 34 % lower in the game, and hitches are unchanged. The field walk measured about 4 % slower, still unexplained, so this stays WIP until an in-run A/B settles it. Details are in Measurements.
Author
Owner

In-build switch A/B on the RX 580 (same build and folder, 2 rounds): the texel route's field walk is level with main's route, slightly ahead (33.2 against 32.0 fps on average). Its conversions take 31 % less GPU time, and peak VRAM is the same on every side. The earlier 4 % gap came from comparing a freshly swapped game folder (cold pipeline caches, one short warm-up) with a warm one. The table is in Measurements. It stays WIP for the Windows build and the full test suite.

In-build switch A/B on the RX 580 (same build and folder, 2 rounds): the texel route's field walk is level with main's route, slightly ahead (33.2 against 32.0 fps on average). Its conversions take 31 % less GPU time, and peak VRAM is the same on every side. The earlier 4 % gap came from comparing a freshly swapped game folder (cold pipeline caches, one short warm-up) with a warm one. The table is in Measurements. It stays WIP for the Windows build and the full test suite.
HumanBean changed title from WIP: perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, uploads grouped, decoder specialized to perf(vk): big ASTC textures go to BC3 through a texel buffer and Longshot's own encoder, uploads grouped, decoder specialized 2026-12-01 22:31:35 +00:00
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The RX 580 runs show lower ASTC conversion time, but the new default route still needs coverage on other supported hardware and its pipeline startup and cache costs remain unmeasured. Recommend approval; not approved on the forge.

The change converts large ASTC textures to BC3 through buffers, groups uploads and specializes the decoder. It reduces conversion time on the tested RX 580 at the cost of additional buffers and pipelines.

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

  • L3 gpu/vk/device_policy.h:829: The new default conversion route and upload ordering need coverage on the supported hardware they affect. When: Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. Do: Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results.
  • L4 gpu/vk/vk_texture.cpp:1006: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. When: The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. Do: Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware.

Since the last review (on bf3b9972a1)
Resolved: L2 (The current head’s grouping and specialization have not been measured in the game against…); L6 (The check CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) fails on this he…); L7 (The check CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) fails on th…)
Still open: L3 (The new default conversion route and upload ordering need coverage on the supported hardwa…); L4 (The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured.); L5 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…); L8 (The check CI / Website build and checks (pull_request) fails on this head and passes on…); L9 (The check CI / Game-free checks (run_all.py, part 1/2) (pull_request) fails on this head…); L10 (The check CI / Game-free checks (run_all.py, part 2/2) (pull_request) fails on this head…)

Checks: Failing on this head, which is behind its base, where they pass: CI / Third-party parts and guide screenshots (pull_request), CI / Website build and checks (pull_request), CI / Game-free checks (run_all.py, part 1/2) (pull_request), PR description / Title and description (pull_request_target). @rebase (or @fix) brings it up to date and runs them again; not held against it. Still running: CI / Game-free checks (run_all.py, part 2/2) (pull_request).

Also noticed (1; not asked for, not blocking)
  • The new group-flush test checks source structure rather than exercising the upload sequence.
More: does it help, other systems, switches, what was read

Does it help: Yes, for ASTC conversion on the tested RX 580: the reported in-game pass timing fell from 1,153 to 766 ms against main, and the same-build switch comparison fell from 1,120 to 776 ms. The reported frame-rate results do not establish a game-wide gain.

Other systems: The route affects GPUs that store ASTC as BC3, including Windows, Intel, RDNA and Steam Deck systems. Current-head in-game NVIDIA coverage is also outstanding. BC7 and AMD-resized textures retain the image route.

Switches: RX_VK_ASTC_SPEC, RX_VK_ASTC_BC_TEXELS and RX_VK_ASTC_BC_GROUP default on; RX_VK_ASTC_BC_ROWS selects encoder workgroup rows according to subgroup size. The RX 580 results support the route default, but broader hardware coverage and specialization costs remain open.

Reviewed: ff79b9ed83 against 4908cc6dad: Read the repository rules and pull request template, the reported runs, the changed upload-flush path and its surrounding callers. Inspected the relevant portions of vk_texture.cpp, vk_replay.cpp and vk_texture.h and the new source-check test; the remaining changed code and generated shader headers were not read in full.; nothing run (a code review).

Checked and fine:

  • replay_flush_upload flushes the pending BC3 group before ending an upload command buffer.
  • The texel route joins its pending work before requesting a chunk flush.

Testing: No code or tests were run. The author reports game-free checks and RX 580 in-game runs; the remaining hardware runs and pipeline-cost measurements are outstanding. One CI check is still running.

Overlaps and merge order: #2473 proposed the same conversion approach; the description says this implementation is independent.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The RX 580 runs show lower ASTC conversion time, but the new default route still needs coverage on other supported hardware and its pipeline startup and cache costs remain unmeasured. Recommend approval; not approved on the forge. The change converts large ASTC textures to BC3 through buffers, groups uploads and specializes the decoder. It reduces conversion time on the tested RX 580 at the cost of additional buffers and pipelines. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `gpu/vk/device_policy.h:829`: The new default conversion route and upload ordering need coverage on the supported hardware they affect. *When:* Windows drivers, RDNA discrete GPUs and Steam Deck have not run the current path; the reported Linux RX 580 run cannot establish their output or frame pacing. **Do:** Run the stated game and conversion checks on the affected Tier 1 Windows and Linux hardware, including Steam Deck, and record output and frame-time results. - **L4** `gpu/vk/vk_texture.cpp:1006`: The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured. *When:* The first upload for each used footprint synchronously creates its specialized pipeline, potentially delaying that upload and its frame. **Do:** Measure cold and warm startup, first-use frame time and pipeline-cache growth on representative hardware. **Since the last review** (on bf3b9972a1b1) Resolved: L2 (The current head’s grouping and specialization have not been measured in the game against…); L6 (The check `CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request)` fails on this he…); L7 (The check `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)` fails on th…) Still open: L3 (The new default conversion route and upload ordering need coverage on the supported hardwa…); L4 (The startup, cache and first-use costs of specialized decoder pipelines remain unmeasured.); L5 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…); L8 (The check `CI / Website build and checks (pull_request)` fails on this head and passes on…); L9 (The check `CI / Game-free checks (run_all.py, part 1/2) (pull_request)` fails on this head…); L10 (The check `CI / Game-free checks (run_all.py, part 2/2) (pull_request)` fails on this head…) **Checks:** Failing on this head, which is behind its base, where they pass: `CI / Third-party parts and guide screenshots (pull_request)`, `CI / Website build and checks (pull_request)`, `CI / Game-free checks (run_all.py, part 1/2) (pull_request)`, `PR description / Title and description (pull_request_target)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. Still running: `CI / Game-free checks (run_all.py, part 2/2) (pull_request)`. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The new group-flush test checks source structure rather than exercising the upload sequence. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes, for ASTC conversion on the tested RX 580: the reported in-game pass timing fell from 1,153 to 766 ms against main, and the same-build switch comparison fell from 1,120 to 776 ms. The reported frame-rate results do not establish a game-wide gain. **Other systems:** The route affects GPUs that store ASTC as BC3, including Windows, Intel, RDNA and Steam Deck systems. Current-head in-game NVIDIA coverage is also outstanding. BC7 and AMD-resized textures retain the image route. **Switches:** RX_VK_ASTC_SPEC, RX_VK_ASTC_BC_TEXELS and RX_VK_ASTC_BC_GROUP default on; RX_VK_ASTC_BC_ROWS selects encoder workgroup rows according to subgroup size. The RX 580 results support the route default, but broader hardware coverage and specialization costs remain open. **Reviewed:** ff79b9ed83af against 4908cc6dadff: Read the repository rules and pull request template, the reported runs, the changed upload-flush path and its surrounding callers. Inspected the relevant portions of vk_texture.cpp, vk_replay.cpp and vk_texture.h and the new source-check test; the remaining changed code and generated shader headers were not read in full.; nothing run (a code review). **Checked and fine:** - replay_flush_upload flushes the pending BC3 group before ending an upload command buffer. - The texel route joins its pending work before requesting a chunk flush. **Testing:** No code or tests were run. The author reports game-free checks and RX 580 in-game runs; the remaining hardware runs and pipeline-cost measurements are outstanding. One CI check is still running. **Overlaps and merge order:** #2473 proposed the same conversion approach; the description says this implementation is independent. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as HumanBean took it out of WIP. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch perf/astc-bc3-two-steps 2026-12-01 22:45:29 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!2909
No description provided.