perf(vk): expand prog_fast cache, inline c2 fast_answers, and route mesh programs #2954
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
6 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2954
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:perf/vk-prog-fast-answers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Cuts
programs_msby -22.67% (-0.289 msper frame) viaRX_VK_PROG_FAST(default1, supporting in-runHOS_ABflipping per recording):program_forTLS Cache (gpu/vk/vk_shader.cpp): Expandsprog_fastfrom 2 slots to 8 MRU ways, cachesprog_sigand stage attachment maskamaskonProgFast, and routes Mesh shaders through the unified cache path. A change of the mods' CURVE hooks (curves_hash, main's) drops all 8 ways with the picks.c2fast_answers&fast_still_valid()(gpu/vk/vk_shader.cpp,gpu/vk/vk_shader.h): Validatesc2-resident texture/image/depth handles directly againstNvnStatewithout callinganswer_handles()+still_valid(), and skipsub_geninvalidation checks onc2-only programs.prog_fast_begin_recording()(gpu/vk/vk_draw.cpp,gpu/vk/vk_internal.h): Sampleshost->ab_value("RX_VK_PROG_FAST", env)once per recording soHOS_ABflips cleanly without per-draw environment overhead.Read first:
gpu/vk/vk_shader.cpp(fast_still_valid,prog_fast,program_for),gpu/vk/vk_shader.h,gpu/vk/vk_draw.cpp(prog_fast_begin_recording), andgpu/vk/vk_replay.cpp.Assisted-by: Antigravity
Testing
Tested: Windows 11, NVIDIA GeForce RTX 4060 (
build-windows/rt-Longshot,v3.2.0-189-gaece3ffa1onmain @ 55773e361):HOS_AB(145periods,30,001frames): 5/5 individual runs won (-1.35%to-2.65%), 0 crashes, 0 shader/pipeline failures (39,168graphics +5,087compute pipelines prepared),0.00frames >= 50 ms on both sides.python -X utf8 -I tests/test_vk_prog_fast.py:0 failures(default + strict modes; verifiesc2/UBO/image/depth/meshfast_still_validparity, 8-way MRU,ub_gen/reg_gen/tex_geninvalidation,state_prog_sig, andRX_VK_PROG_FAST=0fallback).python -X utf8 -I tests/test_pick_tex_gen.py:PASS: the last picks stand while their textures do.main @ a98cf28a: main's mods' CURVE-hook check (curves_hash) replaced the HDR tone-mapper check at the top ofprogram_forand now clears all 8 ways;tests/test_scene_tonemap_pass.pyis gone on main, so this PR no longer edits it.tests/test_vk_prog_fast.pystubsprogram_hooks_now()and checks that acurves_hashchange drops a kept pick.test_curve_passchecks that every way is dropped,test_same_bindchecksprog_sigs.bind_program'smemcmpbeforebind_gen++inprog_fast.h, theRX_VK_PROG_FASTrow sorts afterRX_VK_PROGRAM_CACHE_ZSTD, and the fixtures that copydraw_begin_recording()stubprog_fast_begin_recording().dev.py queue):vk_draw.cpp,vk_replay.cpp,vk_shader.cpp,vk_progcache.cpp) passclang++ -fsyntax-onlywith the build's flags.tests/run_all.py --changed origin/mainon main1c91b18f: 354 passed, 2 failed, 17 skipped.test_prepare_stallfailed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone.test_switch_tablefails here, and the same way on main1c91b18fanda98cf28a:LONGSHOT_SANDBOX_PROGRAMDATA(host/sandbox_win_plan.h:41) has no row ingpu/vk/switches.def.a98cf28a, which changed none of this PR's files,test_intel_quick_compute(the one check main changed among those that read this PR's files) passes.Tested by others:
RX_VK_PROG_FAST=0against1on30ef7ca, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 55.58 → 55.32 (−0.46 %), p99 frame time 48.17 → 40.52 ms, frames of 50 ms or more 20 / 15 / 6 against 0 / 14 / 18.programs_ms−24.2 % to −25.6 % over three paired samples.30ef7caagainst main55773e3, Market and Hyrule Field: passed on every target. p99 frame time windows+nvidia 28.0 → 20.1 ms, linux+nvidia 15.1 → 15.2, windows+amd 38.8 → 38.7, linux+radv 13.9 → 13.8, intel 209.4 → 206.6, steamdeck 37.5 → 38.7 (one Deck's Market p99 44.86 → 48.16 ms and its maximum 101 → 891 ms; screenshot difference 0.26, under the 0.3 limit). One Windows Intel PC failed to start the PR side (an error fromscripts/dev.py, the other Windows PCs built and ran it), the Linux Intel PC passed.Still to test:
Measurements
Verdict: Faster: +1.79% FPS (
-0.244 msmean frame time, 95% CI+1.31% to +2.40%strictly excluding 0 across 145 paired periods),-22.67%programs_ms(-0.289 ms),+2.47%1% Low FPS (60.10 vs 58.65), and+4.87%0.1% Low FPS (49.70 vs 47.39), with all 5/5 runs winning. Ships enabled by default (RX_VK_PROG_FAST=1).Setup: Windows 11, NVIDIA RTX 4060;
Market, child (crowded)(1280x720, 50% internal res768x432, V-Sync Off, Framegen Off,HOS_FPS_MAX=1000,RX_VK_FRAME_TRACE=1), 5x90s runs after pipeline warm-up (145paired 3 sHOS_ABperiods,15,136ON /14,865OFF frames;dev.py ab+perf.py ab).Baseline: Both sides ran on the same build (
v3.2.0-189-gaece3ffa1onmain @ 55773e361) flippingRX_VK_PROG_FASTevery 3 s within each run (HOS_AB=RX_VK_PROG_FAST=0,3,0).aece3ffaaece3ffaprograms_msmeandraw_msmeanwait_gpu_msmeancmds_msmeanRisks
fast_still_valid()andc2inlinefast_answersmirrorstill_valid()/answer_handles()generation checks (ub_gen,reg_gen,tex_gen) and fall back to the full lookup path on any mismatch or edge shape.RX_VK_PROG_FAST=0(or reverted). Notevk_shader.cppedits updateLONGSHOT_SHADER_STAMPas expected.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (the whole suite has not run on this branch; Testing lists the checks that ran).main, or Measurements says why there is nothing to measure (RX_VK_PROG_FAST=0vs unset via in-runHOS_ABonmain @ 55773e361).third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def(RX_VK_PROG_FAST).tests/that reads changed source is updated, not weakened (test_vk_prog_fast.py,test_pick_tex_gen.py,test_curve_pass.py,test_same_bind.py).Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Market CPU-bound 5x90s in-run HOS_AB (145 periods): +1.79% FPS (74.7 vs 73.4, 95% CI +1.31%..+2.40%), -22.67% programs_ms, +2.47% 1% Low, +4.87% 0.1% Low
Possibly related, for context:
@beanstalk
Beanstalk test farm · an earlier run: commit
aece3ff(the newer results are in a comment below)Commit
aece3ff· approved by HumanBean (reviewed) · dashboard⚠️ Note: The farm cannot directly measure programs_ms or reproduce the reported in-run paired confidence interval; these frame-time checks are not sensitive enough to establish the claimed small speedup.
⚠️ Note: The plan tests the default enabled path against main, not live switch flipping or the disabled fallback, and does not run the separate unit-test suite.
⚠️ Note: Shader preparation and pipeline-cache generation from the linked issue are not measured by this gameplay-focused plan.
Started at 2026-12-01 15:19 UTC.
windows+nvidialinux+nvidialinux+radvamdintelWhy it failed
windows+nvidia:program-selectionmarket.frametime_p50_ms.max_delta_pct:38.7 → 45.3 (+17.0%); limit 15.0linux+nvidia:program-selectionscreenshot.max_diff:0.1 → 0.3; limit 0.2Couldn'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.
intel, report 1:the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>What was tested
What will be tested · AI plan (
gpt-6.1-terra)The farm will compare the PR with main on Windows NVIDIA, Linux NVIDIA, RADV, AMD and Intel hardware. Three starts per side will measure uncapped, CPU-oriented frame times for 30 seconds each in the Market and Hyrule Field, with still-scene pictures checked at both locations. A crash, a picture difference over the allowed tolerance, or a frame-time regression over 15% fails the relevant target. No tester online now matches linux+nvidia: that target waits for one.
market-entrance(settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switchesHOS_OUTPUT_RES=1280x720,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side.Measurements on `windows+nvidia`, for the PR description
Verdict: fail on windows+nvidia (2 reports):
program-selection market.frametime_p50_ms.max_delta_pct (+17.0%)failed.Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu
NVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+xessNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e3aece3ffFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `linux+nvidia`, for the PR description
Verdict: fail on linux+nvidia (1 report):
program-selection screenshot.max_difffailed.Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu
NVIDIA GeForce GTX 1660 Ti, 620.73.4Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e3aece3ffFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `linux+radv`, for the PR description
Verdict: pass on linux+radv (2 reports): no rule failed and no PR run crashed.
Hardware: 1: linux+amd+radv+igpu
AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e3aece3ffFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `amd`, for the PR description
Verdict: pass on amd (2 reports): no rule failed and no PR run crashed.
Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4
AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM; 2: windows+amd+amd-proprietary+igpu+xessAMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e3aece3ffFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `intel`, for the PR description
Verdict: queued on intel (1 report).
Hardware: 1: windows+intel+intel-proprietary+igpu
Intel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
windows+nvidiaNVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMwindows+nvidiaNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMlinux+nvidiaNVIDIA GeForce GTX 1660 Ti, 620.73.4Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAMlinux+radvAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMlinux+radvAMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMamdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMamdAMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAMintelIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM@review
Recommendation: Approve. The reported A/B shows a gain within the PR build, but it does not measure the complete change against main at player settings. The new default also needs coverage on the other Tier 1 systems affected by the renderer path. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The change caches more program selections and descriptor answers to reduce CPU time spent choosing shaders. It adds per-program cached data and a per-recording switch, and changes graphics, compute and mesh program selection.
Should fix (1): not blocking, but worth doing before merging.
tests/test_vk_prog_fast.py:215: The signature test exercises a handwritten copy of the replay update instead of the changed replay code. (more on the line) Do: Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test.Nits (1): optional.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_shader.cpp:2400: Measure the complete change against the base at settings players use. (more on the line) Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.gpu/vk/vk_shader.cpp:2401: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. (more on the line) Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.@fixcan do L3 and L4.Checks: Still running: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against main. On Windows with an RTX 4060, the author reports 74.74 versus 73.42 FPS and 0.985 versus 1.274 ms programs_ms over five runs, comparing the PR's switch on and off. Both sides include changes that remain active when the switch is off, and the run used 720p with 50% internal resolution rather than the device's normal settings.
Other systems: The program-selection path affects graphics, compute and mesh draws, including the compute mesh fallback used by RADV and Steam Deck. Only Windows NVIDIA gameplay is reported; Linux, AMD/RADV and Steam Deck behavior and timing remain unverified. Shader-cache loading also populates the new answer data, including when the switch is off.
Switches: RX_VK_PROG_FAST is added as a kill/A-B switch, default on, with a switches.def row. Its default has a Windows NVIDIA A/B result but is not yet supported by measurements on the other affected Tier 1 systems.
Reviewed:
aece3ffa1dagainst55773e3613: Read the repository rules and PR template, commit and changed shader, replay, cache, switch and test code and relevant callers and bank layout. The large draw and replay files and the existing cache tests were read around changed and dependent paths rather than in full. No recorded runs or generated files were included in the diff. docs/review-checklist.md and the neighboring Tooling checkout were absent.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no build, tests or project scripts were run. The supplied CI checks are still running.
Overlaps and merge order: Not available from the supplied checkout and PR context.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -2268,3 +2398,3 @@const Program* program_for(const NvnState& s, ProgramKind kind, const uint8_t color_types[8], bool actor_turf) {if (!s.has_prog) return nullptr;if (kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);const bool fast = prog_fast_on();L1 (should fix): Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main.
When: The reported 1.79% gain compares two modes of
aece3ffaat reduced resolution; it cannot show the net effect of the entire PR against55773e361at the normal preset and native resolution.Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.
@ -2269,2 +2399,3 @@if (!s.has_prog) return nullptr;if (kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);const bool fast = prog_fast_on();if (!fast && kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);L2 (should fix): Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them.
When: RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths.
Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.
@ -0,0 +212,4 @@const auto it = g_state_sigs.find(&s);return it != g_state_sigs.end() ? it->second : prog_stage_sig(s.prog);}static void sim_bind_program(NvnState& s, const nvn_prog* bprog) {L3 (should fix): The signature test exercises a handwritten copy of the replay update instead of the changed replay code.
When: Removing the assignment to the cached signature inside NOP_BIND_PROGRAM while leaving its source markers present would still pass the simulated bind tests, although real replay would retain the old signature.
Do: Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test.
#2954: Deck measurement
Steam Deck LCD (RADV VANGOGH, Mesa 26.2.0-devel), 2026-12-01. Build: base
87045899plus a dev-pack ofmainwith #2954 and #2958 merged, renderer and host from that tree. Settings: 1280x800 output, 50 % render (640x400) with the game's own upscaler, preset Custom/0, no V-Sync, no cap. Same save, slot and route as my other Deck runs (Hyrule Field anchor, walk/pan/turn passes, play window 30-97 % of each trace). Arms are separate interleaved launches becauseHOS_AB's thread does not start on this platform yet (glibc refuses the 64 KiB stack: this binary's static TLS block is 61,936 bytes; fix in review as #2971).3 runs with both switches on against 3 with both off (
RX_VK_PROG_FAST=0 RX_VK_DRAW_SELF_FAST=0): fps 37.03 against 36.69 (+0.94 %, permutation p 0.25), median frame 26.70 against 27.09 ms (-0.39 ms, -1.43 %, p 0.05, the floor for 3 a side), mean 27.01 against 27.26 ms. p99 and frames over 60 ms are within spread.Phase medians, three paired samples:
programs_ms1.19 ms against 1.57-1.60 ms (-24.2 %, -24.7 %, -25.6 %) anddraw_ms-3.8 to -4.6 %, withdesc_msslightly worse (+3.4 to +4.4 %). Your -22.67 % on Windows transferred almost exactly in percentage terms.The absolute saving is small because the phase is:
programs_msis 1.6 ms of a 27 ms frame at this setting, so a quarter of it is 0.39 ms. At 100 % render the frame is 31 ms and the saving is insidegpu_wait_ms. Worth merging for the phase it fixes, not as a frame-rate change on this hardware.Queue note: #2954 does not merge cleanly with #2946 (
vk_internal.h,vk_progcache.cpp,vk_shader.cpp) or with #2952 (vk_draw.cpp), and those two fast paths overlap (#2946 routes mesh programs through the TLSprog_fast/picks, this PR expands theprog_fastcache), so the two together would need reconciling rather than stacking.aece3ffa1d30ef7ca5ccAddressed review #3003 L3 and audited the Beanstalk reports in
30ef7ca5c:tests/test_vk_prog_fast.py,NOP_BIND_PROGRAM/state_prog_sig): Extractedprog_sig::stage_sigandprog_sig::ProgSigCache<State>(bind_program,on_new_queue,on_switch_queue,get) into standalonegpu/vk/prog_fast.h, wired throughgpu/vk/vk_internal.handgpu/vk/vk_replay.cppwithout modifyinggpu/vk/vk_shader.cpp. Replaced the handwrittensim_bind_program/g_state_sigscopy intests/test_vk_prog_fast.pywith the productionprog_fast.hhelpers, added source wiring checks, added 3MUST_FAILbroken variants (skip_sig_update,skip_prog_copy,skip_queue_switch), and added compiler fallback discovery (--cxx/CXX->clang++/g++/c++) and Windows DLLPATHhandling.-24.2%to-25.6%programs_ms).linux+nvidiascreenshot.max_diff 0.1 -> 0.3,windows+nvidiamarket.frametime_p50_ms +17.0%): Auditedgpu/vk/vk_shader.cpp(program_for,mesh_program_locked,fast_still_valid,populate_fast_answers,answer_stage_mask,c2_decode_slot),gpu/vk/vk_replay.cpp(use_queue_state,NOP_BIND_PROGRAM), andgpu/vk/vk_progcache.cpp(program_cache_read,program_cache_read_light).c2_decode_slotmatchesdriver_bank_wordbank-2 slot ranges (0x20,0x120,0x168,0x568),fast_still_validmatchesstill_validacrossc2_only, secondary/shifted descriptors, UBO/handle-program fallbacks,canon_uint_image,type_fixed(Rect/Buffer exceptions), depthstrip_int, and strictRX_VK_CAPTURE=0mode, andf.ubis skipped only whenf.amask != ~0u(all answers inc2, unaffected byNOP_UPDATE_UB).Meshrouting keys onct_hash ^ s.prog.serial ^ kind+actor_turfand validatesfast_still_valid;populate_fast_answersruns beforeready.store(true, release)in both translation and cache-load paths;tonemap_seenclearspicksand all 8prog_fastways.vk_shader.cpp:linux+radvpassed (-6%field p99,-7%market p99),amdpassed (+0%), andlinux+nvidiahad+0%/+1%frame times with onlyscreenshot.max_diff 0.3(likely scene/animation variance between runs), whilewindows+nvidia(+13%median /+17.0%max delta, flagged as an outlier by Beanstalk) far exceeds the entireprograms_msphase (~1.0–1.6 ms).Verified after the final edit:
clang++andg++-std=c++20 -Wall -Wextra -Werror -fsyntax-onlyongpu/vk/prog_fast.hpython -I -B tests/test_vk_prog_fast.pywith--cxx clang++,--cxx g++, and default discovery (default+strict+ 3/3MUST_FAILbroken variants caught)python -I -B tests/test_hos_ab.py --cc clang,python -I -B tests/test_tls_objects.py,python -I -B tests/test_vk_braces.py,python -I -B tests/test_pick_tex_gen.py, andpython -I -B tests/test_scene_tonemap_pass.py@review
@beanstalk
Beanstalk test farm · an earlier run: commit
30ef7ca(the newer results are in a comment below)Commit
30ef7ca· approved by HumanBean (reviewed) · dashboard⚠️ Note: The farm does not measure the programs_ms phase or reproduce the in-recording switch flips, so it cannot directly verify the claimed 22.67% phase saving.
⚠️ Note: The plan tests the shipping default against main, not the switch-off fallback or player-specific presets; it also does not run the full test suite or guarantee that mesh-specific paths are exercised.
Done (started 2026-12-02 16:19 UTC, last report 12:12 UTC). Comment
@Beanstalkto run it again.windows+nvidialinux+nvidiawindows+amdlinux+radvintelsteamdeckCouldn'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.
intel, report 1:the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>What was tested
What will be tested · AI plan (
gpt-6.1-terra)Compare the PR with main on Windows NVIDIA and AMD, Linux NVIDIA and RADV, Intel, and Steam Deck. Three starts per side exercise the Market and Hyrule Field at uncapped CPU-focused settings, with 30-second warmed frame-time measurements and stationary screenshot comparisons. The PR fails for a crash, a frame-time regression over 15%, or a screenshot difference over 0.3. No tester online now matches linux+nvidia: that target waits for one.
market-entrance(settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switchesHOS_OUTPUT_RES=1280x720,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side.Measurements on `windows+nvidia`, for the PR description
Verdict: pass on windows+nvidia (2 reports): no rule failed and no PR run crashed.
Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window
NVIDIA GeForce RTX 3090, 621.1.0AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xessNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `linux+nvidia`, for the PR description
Verdict: pass on linux+nvidia (2 reports): no rule failed and no PR run crashed.
Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu
NVIDIA GeForce GTX 1660 Ti, 620.73.4Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpu+dlssNVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `windows+amd`, for the PR description
Verdict: pass on windows+amd (2 reports): no rule failed and no PR run crashed.
Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4
AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM; 2: windows+amd+amd-proprietary+igpu+window+xessAMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `linux+radv`, for the PR description
Verdict: pass on linux+radv (2 reports): no rule failed and no PR run crashed.
Hardware: 1: linux+amd+radv+igpu
AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `intel`, for the PR description
Verdict: pass on intel (2 reports): no rule failed and no PR run crashed.
Hardware: 1: windows+intel+intel-proprietary+igpu+window
Intel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM; 2: linux+intel+anv+igpuIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `steamdeck`, for the PR description
Verdict: pass on steamdeck (2 reports): no rule failed and no PR run crashed.
Hardware: 1: linux+amd+radv+igpu+handheld
AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAM; 2: linux+amd+radv+igpu+handheldAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMScene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, 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); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 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 (
@Beanstalkon this PR runs it again)55773e330ef7caFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
windows+nvidiaNVIDIA GeForce RTX 3090, 621.1.0AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAMwindows+nvidiaNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMlinux+nvidiaNVIDIA GeForce GTX 1660 Ti, 620.73.4Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAMlinux+nvidiaNVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMwindows+amdAMD Radeon(TM) Graphics, 2.0.279AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAMlinux+radvAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMlinux+radvAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMintelIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMintelIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMRecommendation: Approve. The code is ready: only testing is left. The signature test now exercises the production helper, but the complete change still lacks a base-versus-HEAD measurement and the remaining affected Tier 1 hardware runs. CI is also still running. Recommend approval; not approved on the forge.
The change expands the Vulkan program cache and avoids repeated handle validation, aiming to reduce CPU time spent selecting shader programs. The extracted signature helper makes that replay behavior directly testable at the cost of another sidecar abstraction.
Nits (1): optional.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_shader.cpp:2400: Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main. When: The reported 1.79% gain compares two modes ofaece3ffaat reduced resolution; it cannot show the net effect of the entire PR against55773e361at the normal preset and native resolution. Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.gpu/vk/vk_shader.cpp:2401: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. When: RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths. Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.@fixcan do L4.Since the last review (on
aece3ffa1d)Resolved: L3 (The signature test exercises a handwritten copy of the replay update instead of the change…)
Still open: L1 (Measure the complete change against the base at settings players use. The switch-off side…); L2 (Exercise the changed selection path on the other affected Tier 1 systems before choosing t…); L4 (The checklist says the full test suite passes and both host platforms build, while Testing…)
Checks: Still running: 10 checks.
Also noticed (3; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Unproven for the complete change against main. On Windows RTX 4060, the reported in-run switch comparison showed +1.79% FPS and -22.67% programs_ms, but both sides include other changes from this PR. A Steam Deck run with this PR and #2958 together showed programs_ms down 24.2–25.6%, but does not isolate this PR against its base.
Other systems: The selection path affects Vulkan graphics and mesh programs across drivers and operating systems. The comments report RADV and AMD runs and an audit of NVIDIA farm results, but do not establish coverage of all affected Tier 1 systems; the Windows NVIDIA farm result also reported a frame-time outlier.
Switches: RX_VK_PROG_FAST is added, default 1, with per-recording HOS_AB sampling. Its default still needs the base comparison and remaining Tier 1 runs requested in the ledger.
Reviewed:
30ef7ca5ccagainst55773e3613: Read the repository rules, PR template, changed signature helper and replay diff, and the supplied range-diff and test changes. The remaining changed renderer and test files were not read in full; recorded runs were reviewed from the supplied description and comments.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports Windows in-game testing and game-free checks; the current head's CI checks are still running.
Overlaps and merge order: The Deck tester reports conflicts with #2946 and #2952; #2946 also overlaps the mesh program cache path. Reconcile the paths and retest in the eventual merge order.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
AMD Lab Market A/B on PR head
30ef7ca5ccfb, usingRX_VK_PROG_FAST=0andRX_VK_PROG_FAST=1on the same build.Within the run-to-run spread. Median average FPS changed by -0.46%.
0)1)Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up.
After warm-up, the harness still flagged pipeline or shader activity in 45 / 40 / 31 frames on side A and 2 / 34 / 62 on side B across the three captures. The FPS and tail numbers include those frames.
30ef7ca5ccdc4bbc2eafBeanstalk test farm
Commit
dc4bbc2· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.Rebased onto main @
a98cf28a(the branch wasmergeable=False) and pusheddc4bbc2e.The rebase
program_forwith the mods' CURVE-hook check (curves_hash). It now drops all 8prog_fastways together with the picks.tests/test_scene_tonemap_pass.pyis gone on main, so this PR no longer edits it.Checks that read the changed code
test_vk_prog_faststubsprogram_hooks_now()and adds a case: acurves_hashchange must drop a kept pick.test_curve_passchecks that the CURVE-hook change clears every way (for (auto& f : prog_fast) f.on = false;) instead of the two slots it named before.test_same_bind:NOP_BIND_PROGRAMnow binds throughprog_sigs.bind_program. The check now finds that call and checks, inprog_fast.h, that thememcmpcomes beforebind_gen++, which is the order it checked before.switches.def: theRX_VK_PROG_FASTrow moved afterRX_VK_PROGRAM_CACHE_ZSTD, the ordertest_switch_tablewants.test_draw_stream_visibility,test_fsr_uniform_ownershipandtest_recording_admissioncopydraw_begin_recording(). They now stubprog_fast_begin_recording().Results on Windows, through
dev.py queue:vk_draw.cpp,vk_replay.cpp,vk_shader.cpp,vk_progcache.cpp) passclang++ -fsyntax-onlywith the build's flags.tests/run_all.py --changed origin/mainon main1c91b18f: 354 passed, 2 failed, 17 skipped.test_prepare_stallfailed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone.test_switch_tablefails here, and the same way on main1c91b18fanda98cf28a:LONGSHOT_SANDBOX_PROGRAMDATA(host/sandbox_win_plan.h:41) has no row ingpu/vk/switches.def.a98cf28a, which changed none of this PR's files,test_intel_quick_compute(the one check main changed among those that read this PR's files) passes.BeanBot L4: fixed in the description. "
mise run testpasses" and "builds on Linux" are unticked, and Testing lists what ran.Results from others
scripts/dev.py, so that report says nothing about the change.=0against=1: −0.46 % median FPS, within the run-to-run spread; p99 48.17 → 40.52 ms. Thanks.Still open (I can't run these here: one Windows RTX 4060, shared GPU queue)
Verdict: Comment. The code reads right:
fast_still_validgivesstill_valid's answer in every case I checked. But on my PC the part of this PR that saves time is the recheck, which my #3303 replaces too. The 8 ways and the uniform rule, ported over #3303, saved nothing measurable. The two rechecks can't both land, so one should be chosen before either merges.(I wrote #3303, so weigh what follows with that in mind.)
For a player, this makes choosing each draw's shader variant cheaper on the render thread: about a quarter of
programs_ms, 0.3 ms a frame at Market, a percent or two of fps where the render thread is the limit. It has three pieces:fast_still_validoverfast_answers);Your A/B flips all three together, so it can't say which one carries the gain.
Reviewed:
dc4bbc2eagainst its merge base with main,a98cf28a.gpu/vk/vk_shader.cpp:still_valid,fast_still_valid,fast_c2_word,c2_decode_slot,populate_fast_answers,answer_stage_mask, andprogram_for's fast path andkeep.driver_bank_word(vk_bank.cpp),descriptor_handle,canonical_answer.tests/test_vk_prog_fast.py:test_still_valid_parityand the source cuts. The rest of that file was only skimmed.prog_fast.h(the stage-signature cache), the wiring invk_replay.cpp,vk_draw.cppandvk_progcache.cpp, and the other tests' edits.de091ae29plus #3303 at a4d4e380a). It keeps #3303's recheck and leaves out this PR's recheck, the mesh routing and the stage-signature cache.Fixed in this review: nothing.
Checked and fine:
c2_decode_slotagrees with bank 2 indriver_bank_word:fast_c2_word's truncation islo().descriptor_handle. Ac2_onlyanswer needsnvn_stage < kNvnStages, asdriver_bank_worddoes.canon_uint_image,type_fixed(with the Rect and Buffer exceptions) andstrip_intfollowcanonical_answer, including the strict mode underRX_VK_CAPTURE=0.fast_still_validchecks each answer's type at every recheck instead of trusting an equal handle. So it is at least as strict as the compare withpk.handles: a slot registered again with another type is caught.populate_fast_answersruns beforereadyis published, on the translation path and on both cache-read paths.Suggestions
Show that the ways and the uniform rule pay on their own, or drop them. On my PC they didn't.
Setup: Ryzen 9 3900X, RTX 3080, Windows 11; Market (child), 3440x1440 output at 67 % render, uncapped, threaded rendering on. The port above, with
RX_VK_PROG_FASTflipped every 3 s within each run (HOS_AB;=0is #3303 alone). 2 runs of 60 s.RX_VK_PROG_FAST=0(#3303 alone)programs_ms, run 1 / run 2The pick counters explain it. Of 13.0 M picks (both sides), 9.8 M kept their last program. Only 455,888 of those came from ways 3 to 8, and only 42,083 were kept past a uniform update. Both counters grow only while the switch is on, so that is about 7 % and 0.6 % of that half. Each of those hits saves a
pickslookup and a recheck that #3303 already makes cheap, while a miss now walks up to 8 ways.The two PRs' own A/Bs measured savings of the same size, on different PCs:
That fits the recheck carrying this PR's gain too.
Choose one recheck. This PR (
fast_still_valid) and #3303 (pick_recheck) both replaceanswer_handles+ the compare +still_valid. #3303 reads each handle once, reads a plain bank 2 word in place, and appliesstill_valid's own rule when a handle differs. Whichever PR lands second has to drop its own recheck.They differ in upkeep:
c2_decode_slot) and ofstill_valid's type rule (fast_still_valid).driver_bank_wordread through one map (driver_bank2_slot) and callsstill_valid's rule itself. Its=checkmode compared both ways on over 7 M rechecks in play, with 0 differences.I haven't timed the two rechecks against each other. Doing that over the same main would settle which to keep.
If
c2_decode_slotstays, test it at every bank 2 offset.test_still_valid_parityreads a few fixed offsets (0x20, 0x38, 0x48, 0x120, 0x130, 0x170, 0x2a8, 0x5a0, 0x5c8), none at a range's end. If a boundary indriver_bank_wordmoved (0x168, 0x568, 0x968), the test would still pass. Better still, read through one map: #3303'sdriver_bank2_slot, if that lands first.Questions
aece3ff(+13 % median frame time at Market) ever explained? The later run on30ef7capassed, so it may have been that PC. The Deck report from the later run (maximum frame time 101 → 891 ms) is still open in your own list.Testing: So far:
programs_ms);programs_ms, measured together with #2958);Still owed:
dc4bbc2e;pr statuslists 4 to fix in the description: two Still-to-test lines don't say who runs them, and two boxes are unticked.Overlaps and merge order:
@ -1214,0 +1286,4 @@return mask;}namespace {void c2_decode_slot(uint32_t offset, uint8_t& src, uint8_t& slot) {A second copy of bank 2's map in driver_bank_word (vk_bank.cpp). It agrees today (checked), but the parity test reads only a few fixed offsets, none at a range's end: suggestion 3.
@ -2385,26 +2524,55 @@ const Program* program_for(const NvnState& s, ProgramKind kind, const uint8_t coif ((f.amask >> k & 1) && f.tex_gen[k] != s.tex_gen[k]) by_tex = false;if (by_tex) fbind = bind;}const uint64_t fub = (fast && f.amask != ~0u) ? ub : f.ub;In my port of the ways and this rule over #3303 (switch flipped in-run, Market, 3900X/3080): 42,083 picks kept past a uniform update and 455,888 from ways 3 to 8, out of about 6.5 M with the switch on; fps and programs_ms the same either way. Suggestion 1.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.