perf(vk): inline active-UB envelope, grass_reach guard, and O(1) L1 ReadSpanTable #2976
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2976
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:perf/vk-ubo-ssbo-fast"
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
Speeds up uniform buffer (
FT_UBO) and storage buffer (FT_STORAGE) binding resolution ingpu/vk/underRX_VK_UBO_SSBO_FAST(default on1).Before this change:
uniform_range()call calledgrass_words()+grass_reach()even when grass distance scaling was at its default1.0f, calledstream_reserve()+ub_overlay()even when no pending inlineub_updatesoverlapped the UBO range, and walkedgpu_buffer_bind()/pools_muon read-only UBO/SSBO bindings.build_descriptors(), whentex_desc_memo::ssbo_lookupmissed for a read-only SSBO,FT_STORAGEre-readaddrandsizeviastage_cbuf_word()instead of reusing the already decoded values.With
RX_VK_UBO_SSBO_FAST:UbActiveEnvelope(g_ub_active) maintained onub_updatespush/prune/bench_framein vk_replay.cpp souniform_range()skipsstream_reserve()+ub_overlay()when no active update overlaps.ubo_ssbo_fast_begin_recording()cachesrec_grass_reachper recording (readingHOS_ABonRX_VK_UBO_SSBO_FAST) souniform_range()skipsgrass_words()whenrec_grass_reach == 1.0f.ubo_ssbo_fast.hprovides an L1-resident64 × 2-way direct-mapped MRUReadSpanTable(alignas(64), keyed by(addr >> 20) & 63) backed byg_bind_stamp_fastandgpu_buffer_bind_with_span()in vk_memory.cpp (with strict< 1 TB,synced_epoch,pool_base, andsparse_hasguards) for UBO and read-only (!d.is_written && !bare && !wide_n) SSBO binds, while leavingFT_VERTEX/d.ibufuntouched and reusing decoded(addr, size)on SSBO memo misses.First read ubo_ssbo_fast.h, vk_draw.cpp, and vk_memory.cpp.
Testing
Tested: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4).
python -X utf8 -I tests/test_vk_ubo_ssbo_fast.py --cxx clang++ --headers ...passed (ReadSpanTableO(1) bucketing, 2-way MRU swap, cross-1MB spans, stamp invalidation, sparse/virtual-address/overflow guards, 2,000-opUbActiveEnvelopeoracle,HOS_ABmode0/1/2parity, source wiring, and 9 broken variants caught).python -X utf8 -I tests/test_hos_ab.py,tests/test_flat_map.py,tests/test_saveload_warm_cache.py,tests/test_switches_removed.py,tests/test_bind_memo.py,tests/test_ub_gap.py,tests/test_sparse_mirror.py, andclang++ -fsyntax-onlyonvk_memory.cpp,vk_replay.cpp, andvk_draw.cpppassed.RX_VK_UBO_SSBO_FAST=1, 15 s):1,209frames,0cold frames,RUN_ERROR=None.RX_VK_UBO_SSBO_FAST=check, 25 s):51,000,000+checks (20.57MReadSpanTablehits,24.46Mub_bypasses),0mismatches,RUN_ERROR=None.HOS_AB(HOS_AB=RX_VK_UBO_SSBO_FAST=0,3,0, 5×90 s,147paired periods in Market):5/5runs won, zero crashes/errors.Still to test:
dev.py abin Market and smoke-checkRX_VK_UBO_SSBO_FAST=checkby hand (by hand).Measurements
Verdict: faster: +1.71% fps, mean frame time -0.214 ms (95% interval +1.29% to +2.18% faster vs
RX_VK_UBO_SSBO_FAST=0).Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (
768x432), output res1280x720, frame generation Off, vsync Off, uncapped (HOS_FPS_MAX=1000), queued in-runHOS_AB=RX_VK_UBO_SSBO_FAST=0,3,0across 5×90 s runs (147paired periods;16,485ON frames vs16,212OFF frames).Baseline: both columns are one build,
23ba22c0eonperf/vk-ubo-ssbo-fast(main@495ed9fe2):RX_VK_UBO_SSBO_FAST=0(Before) againstRX_VK_UBO_SSBO_FASTunset (After).23ba22c023ba22c0desc_msdraw_mswait_gpu_msRisks
Set
RX_VK_UBO_SSBO_FAST=0to disableUbActiveEnvelope,rec_grass_reach, andReadSpanTable(falling back to unconditionalub_overlay+gpu_buffer_bind), orRX_VK_UBO_SSBO_FAST=checkto verify live parity (0mismatches across51.0M+checks). Shader cache and pipeline cache are untouched.Assisted-by: Antigravity
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver 621.40), Market: RX_VK_UBO_SSBO_FAST=1 (1209 frames, RUN_ERROR=None), =check (51.0M+ checks, 0 mismatches), 5x90s HOS_AB (147 periods, +1.71% FPS, 95% CI +1.29%..+2.18%, desc_ms -9.49%)
Possibly related, for context:
@review
Recommendation: Approve. The new span cache bypasses binding bookkeeping used to choose mirrors, and its tests do not exercise the production span-population logic. The claimed performance gain also needs comparison against the base at player settings and testing on the affected Tier 1 systems. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.
The change caches read-only buffer bindings, skips unnecessary uniform overlays, and caches grass reach per recording. It reduces descriptor work in the reported Windows/NVIDIA run, at the cost of a new cache and invalidation path whose effects on mirror selection and other systems remain unmeasured.
Should fix (3): not blocking, but worth doing before merging.
gpu/vk/vk_draw.cpp:4591: A span hit skips the pool heat accounting performed by gpu_buffer_bind for distinct bindings. (more on the line) Do: Preserve the pool's heat accounting on span hits, or change the mirror selection accounting so it remains representative of these bindings.tests/test_vk_ubo_ssbo_fast.py:102: The span safety tests exercise a reimplementation of span population rather than the production function. (more on the line) Do: Compile the production span-population logic with suitable stand-ins and add broken controls for its residency and synchronization guards.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
@fixcan do L1, L2 and L3.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base. The author reports +1.71% FPS and a 0.21 ms mean frame-time reduction over five Windows RTX 4060 runs in Market, but both sides used the PR build and the test used 50% rendering resolution.
Other systems: The binding path affects UBOs and read-only SSBOs on Windows and Linux, including AMD, NVIDIA and Steam Deck. The submitted live parity and timing evidence covers only Windows on an RTX 4060; sparse mirrors, mirror-budget pressure and other drivers need coverage.
Switches: RX_VK_UBO_SSBO_FAST is added, default on; 0 disables the fast paths and check compares results. Its table row is present, but the default has not been measured across supported Tier 1 systems.
Reviewed:
23ba22c0ecagainst495ed9fe2a: Read the repository rules, PR template and standards, the complete production diff, the new helper header, changed binding and replay code in context, and the relevant test harness and wiring checks. Skimmed the remainder of the large changed source and test files. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The author reports a Windows/NVIDIA live smoke, check-mode parity and five in-run A/B measurements; CI is still running.
Overlaps and merge order: Unknown; network access was unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -4561,0 +4588,4 @@if (ubo_ssbo_fast_mode == 0) return gpu_buffer_bind(addr, size, false);const uint64_t stamp = g_bind_stamp_fast.load(std::memory_order_relaxed);if (ubo_ssbo_fast_mode == 1) {BufferRef b;L1 (should fix): A span hit skips the pool heat accounting performed by gpu_buffer_bind for distinct bindings.
When: When many UBO or SSBO ranges in one pool hit the same cached span, only the first miss adds its size to the pool's heat. Under mirror budget pressure, mirrors_by_heat can treat that heavily used pool as cold and give its mirror to a less-used pool, causing subsequent GPU reads to come from guest memory.
Do: Preserve the pool's heat accounting on span hits, or change the mirror selection accounting so it remains representative of these bindings.
@ -0,0 +99,4 @@static void fake_maybe_populate(const FakePool& p, uint64_t gpu, VkBuffer buf, ReadSpan* span_out) {#ifdef MUTATE_IGNORE_SPARSE_GUARDconst bool sparse_ok = g_sparse_has_ok || p.sparse;L2 (should fix): The span safety tests exercise a reimplementation of span population rather than the production function.
When: Removing the sparse residency or synchronization guard from maybe_populate_read_span in vk_memory.cpp leaves fake_maybe_populate unchanged, and the source wiring checks only require that the production function exists. The tests therefore still pass when that production guard is broken.
Do: Compile the production span-population logic with suitable stand-ins and add broken controls for its residency and synchronization guards.
23ba22c0ec44ad52d5eaAddressed L1, L2, and L3 in
44ad52d5e:Pool::heatonReadSpanTablehits): Addeduint64_t* heat_ptrtoReadSpan(populated with&p.heatinmaybe_populate_read_span) and sharedread_span_heat_of(size)(RX_VK_MIRROR_HEAT_CAP_KBcap) betweenPool::heat_ofandReadSpanTable::lookup. Span hits in mode 1 now atomically addread_span_heat_of(size)to*heat_ptrviastd::atomic_ref<uint64_t>(memory_order_relaxed), while=checkmode passescount_heat=falsesogpu_buffer_binddoesn't double-count.maybe_populate_read_span(andReadSpanPoolView/ReadSpanMirrorState) intogpu/vk/ubo_ssbo_fast.hsovk_memory.cppandtests/test_vk_ubo_ssbo_fast.pycompile and exercise the same production residency, sync, virtual-address, and stamp guards directly (replacingfake_maybe_populate). Addedignore_sync_guardandskip_heat_on_span_hitMUST_FAILcontrols (11 total) plusignore_sparse_guardmutating the production header directly, and added--cxx/$CXX/Windows DLLPATHdiscovery.Assisted-by: Antigravity (Google DeepMind).Re-verified after the final edit:
test_vk_ubo_ssbo_fast.py(--cxx clang++,--cxx g++, and default discovery; 11/11MUST_FAILcontrols caught),test_hos_ab.py --cc clang,test_tls_objects.py,test_vk_braces.py,ubo_ssbo_fast.h(clang++ -std=c++20 -Wall -Wextra -Werror -fsyntax-only), andclang++ -fsyntax-onlyonvk_memory.cpp,vk_draw.cpp, andvk_replay.cpp. (L4/L5 live player-settings baseline and multi-GPU Tier 1 runs remain in Still to test.)@review
@beanstalk
Beanstalk test farm · an earlier run: commit
44ad52d(the newer results are in a comment below)Commit
44ad52d· approved by HumanBean (reviewed) · dashboard⚠️ Note: The fixed CPU-focused settings do not measure the requested device-specific player preset and resolution, and the 15% regression thresholds cannot establish the claimed 1.71% speedup.
⚠️ Note: Check mode reports detected mismatches, but the plan does not require a minimum number of checks or guarantee that every cache and grass branch is exercised.
⚠️ Note: macOS is not covered by the farm's available platform tags.
Started at 15:45 UTC.
Estimate: done in about 9 h, from the queue and the testers online now; some jobs can't start yet.
windows+nvidialinux+nvidiawindows+amdlinux+radvintelsteamdeckWhy it failed
windows+nvidia:binding-parity · RX_VK_UBO_SSBO_FAST=check (PR only)log_forbidden_hits.max:0.0 → 321.0; limit 0.0windows+nvidia:binding-parity · RX_VK_UBO_SSBO_FAST=check (PR only)screenshot.max_diff:0.1 → 0.2; limit 0.2windows+nvidia:binding-parity · RX_VK_UBO_SSBO_FAST=check (PR only)log_forbidden_hits.max:0.0 → 584.0; limit 0.0linux+radv:binding-parity · RX_VK_UBO_SSBO_FAST=check (PR only)log_forbidden_hits.max:0.0 → 516.0; limit 0.0linux+radv:binding-performancefield.frametime_1pct_low_ms.max_delta_pct:18.2 → 23.6 (+29.6%); limit 15.0linux+radv:binding-parity · RX_VK_UBO_SSBO_FAST=check (PR only)log_forbidden_hits.max:0.0 → 473.0; limit 0.0What was tested
What will be tested · AI plan (
gpt-6.1-terra)The farm will compare main and the PR in the Market and Hyrule Field on NVIDIA, AMD, Intel and Steam Deck systems, including the named Windows and Linux driver paths. Three starts per side will measure 20 seconds per place at an uncapped, fixed 720p render size; two further starts per side will exercise the PR's parity-check mode and compare still pictures. Crashes, reported parity mismatches, excessive picture differences, or frame-time regressions over 15% fail the plan. No tester online now matches linux+nvidia: that target waits for one.
check(PR only).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 20 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 5 s warm-up); 3 runs on each side.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-check to compare with main, teleport to Hyrule Field, take the picture field-check to compare with main; 2 runs on each side.Measurements on `windows+nvidia`, for the PR description
Verdict: fail on windows+nvidia (2 reports):
binding-parity log_forbidden_hits.max;binding-parity screenshot.max_difffailed.Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess
NVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xessNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAMScene: binding-performance, 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); binding-parity, 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); binding-performance: 3 game starts a side, market 20 s after 5 s warm-up, field 20 s after 5 s warm-up; binding-parity: 2 game starts a side; 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)495ed9f44ad52dRX_VK_UBO_SSBO_FAST=check (PR only)· forbidden log linesFlags and settings
RX_VK_UBO_SSBO_FASTcheckAs Markdown for the PR description:
Measurements on `linux+radv`, for the PR description
Verdict: fail on linux+radv (2 reports):
binding-parity log_forbidden_hits.max;binding-performance field.frametime_1pct_low_ms.max_delta_pct (+29.6%)failed.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: binding-performance, 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); binding-parity, 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); binding-performance: 3 game starts a side, market 20 s after 5 s warm-up, field 20 s after 5 s warm-up; binding-parity: 2 game starts a side; 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)495ed9f44ad52dRX_VK_UBO_SSBO_FAST=check (PR only)· forbidden log linesFlags and settings
RX_VK_UBO_SSBO_FASTcheckAs Markdown for the PR description:
The testers' hardware
windows+nvidiaNVIDIA GeForce RTX 3070, 621.35.0AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAMwindows+nvidiaNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 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 RAMRecommendation: Approve. The code is ready: only testing is left. The heat accounting and test changes address the editable ledger items, and the commit now records AI assistance. The performance gain against the base at representative settings and coverage of the remaining Tier 1 systems are still outstanding. Recommend approval; not approved on the forge.
The change caches read-only buffer bindings and skips unnecessary uniform-buffer work to reduce renderer overhead. It adds cache and synchronization complexity; its reported gain has not yet been established against the base at player settings.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
Since the last review (on
23ba22c0ec)Resolved: L1 (A span hit skips the pool heat accounting performed by gpu_buffer_bind for distinct bindin…); L2 (The span safety tests exercise a reimplementation of span population rather than the produ…); L3 (The AI assistance is named in the PR description but the commit has no assistance trailer.)
Still open: L4 (The reported A/B does not establish the gain against the base at settings players use.); L5 (The default-on renderer path has not been exercised on AMD Windows or Linux, NVIDIA Linux,…)
Checks: Still running: 10 checks.
Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base: the reported Windows RTX 4060 in-build A/B shows +1.71% FPS and a 0.21 ms reduction in mean frame time over five runs, but compares switch settings in the same PR build at 50% resolution. No representative base-versus-head result was supplied.
Other systems: The default-on Vulkan path affects Windows and Linux across GPU vendors, including Steam Deck. Windows NVIDIA Market smoke and parity runs were reported; AMD Windows and Linux, NVIDIA Linux, and Steam Deck runs remain outstanding.
Switches: RX_VK_UBO_SSBO_FAST is added, defaults on, and accepts 0 and check modes. Its default still needs representative base measurements and the outstanding hardware runs.
Reviewed:
44ad52d5eaagainst495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the commit message, the changed span header and relevant binding and heat-accounting code. Inspected the supplied range-diff and test changes; the full changed renderer and test files were not read. docs/review-checklist.md does not exist.; nothing run (a code review).Checked and fine:
Testing: The author reports game-free checks and Windows NVIDIA game runs. No code or tests were run during this review; CI checks are still running. The Test Farm could not be contacted because the network is closed.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Independent Linux Market A/B on PR head
44ad52d5eaad.RX_VK_UBO_SSBO_FASTdefaults to on in this revision.Inconclusive in this short capture. Median average FPS changed by +2.19%.
0)1)Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures.
The repeats on at least one side differ by more than 10%, so the average FPS delta is sensitive to the run chosen.
@rebase
I rebased this pull request onto
main(d63291898b): the new head is2d9f4bd891.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
44ad52d5ea2d9f4bd891Beanstalk test farm
Commit
2d9f4bd· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.Recommendation: Approve. The code is ready: only testing is left. The reported gain has not been measured against the base at representative player settings, and the default-on path still needs coverage on AMD and Steam Deck. The independent NVIDIA Linux run is useful but was inconclusive for performance. Recommend approval; not approved on the forge.
The change reduces Vulkan uniform and read-only storage buffer binding work through an overlap envelope, a cached grass setting and a span table. It adds cache invalidation and parity-checking complexity in exchange for a reported improvement that still needs a base comparison.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
Since the last review (on
44ad52d5ea)Still open: L4 (The reported A/B does not establish the gain against the base at settings players use.); L5 (The default-on renderer path has not been exercised on AMD Windows, AMD Linux or Steam Dec…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base. The author's Windows RTX 4060 test reported +1.71% FPS and a 0.21 ms mean frame-time reduction over five 90-second runs, but compared switch modes in one PR build at 50% resolution. An independent Linux RTX 3090 test reported +2.19% median average FPS across two runs per side, with over 10% variation between repeats.
Other systems: The default-on Vulkan path affects buffer binding and uniform updates across GPU vendors and operating systems. Windows NVIDIA has a live parity run with zero reported mismatches; NVIDIA Linux has an independent short A/B run. AMD Windows, AMD Linux and Steam Deck runs remain missing.
Switches: RX_VK_UBO_SSBO_FAST is added and defaults to on; 0 uses the legacy paths and check compares results. The switch is listed in switches.def, but the default's coverage remains incomplete on the hardware named in L5.
Reviewed:
2d9f4bd891againstd63291898b: Read the repository rules and the relevant renderer diff; reviewed the changed draw paths and switch wiring. Skimmed the test and recorded run claims. The large renderer files and test files were not read in full, and the full template and referenced standards were not reviewed.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The author reports game-free checks and Windows NVIDIA game runs; the independent Linux capture is recorded as inconclusive. CI is still running.
Overlaps and merge order: Not checked; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
AMD Lab Market A/B on PR head
2d9f4bd891ed, usingRX_VK_UBO_SSBO_FAST=0andRX_VK_UBO_SSBO_FAST=1on the same build.Faster in these captures. Median average FPS changed by +5.93%.
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 20 / 45 / 18 frames on side A and 2 / 3 / 2 on side B across the three captures. The FPS and tail numbers include those frames.
About the farm's
binding-parity · RX_VK_UBO_SSBO_FAST=checkfailures (log_forbidden_hits321 and 584 onwindows+nvidia, 516 and 473 onlinux+radv): those hits are the check's periodic summary lines, not mismatches.ubo_ssbo_fast_log_summary_if_due()(gpu/vk/vk_draw.cpp:4964-4971onmain@1e782fa4b) logsvk: ubo_ssbo_fast check: N checks, … hits, … misses, … ub_bypasses, M mismatchesonce every 100,000 checks. The wordmismatchesin that line matches the farm's forbidden pattern, even when M is 0.windows+nvidia) ends withubo_ssbo_fast check: 32200000 checks … 0 mismatches, then 32,300,000 and 32,400,000, all with0 mismatches. That is about 324 summary lines over the run; the two PR runs counted 318 and 324 hits.ubo_ssbo_fast span mismatch (…),ub_active mismatch (…)orssbo addr/size mismatch (…)(vk_draw.cpp:4997,:5132,:5693). None of those appear in the log ends I read.So the check-mode cells say the parity check ran and found nothing. For the farm to pass a check-mode run, either its pattern has to skip these summary lines or the summary has to be worded differently. I haven't changed either.
Measurements since: the AMD Lab RX 580 pairs were faster (+5.93% median FPS, p99 37.00 → 21.70 ms). HumanBean's Linux RTX 3090 pairs were inconclusive (+2.19%, with repeats more than 10% apart). The farm's
linux+radvField 1% low (+29.6%) failed on one PC in that earlier run; I have not followed it up.