perf(shaders): native task and mesh stages read global memory through the guest page table #2291
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2291
Loading…
Reference in a new issue
No description provided.
Delete branch "TrashPanda/Longshot:perf/mesh-global-table"
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
#2103 sent the vertex, fragment and compute stages' global loads (and the mesh fallback's task and mesh stages') through the
guest page table. The native task and mesh stages kept the storage buffer search, and their load helpers are inlined at
every load (#994). Native mesh shaders are what NVIDIA runs, and AMD's Windows driver; RADV takes the compute fallback by
default (issue 2245), which already reads through the table, so on RADV this changes something only with
RX_VK_MESH_SHADERS=native. The mesh programs Kokiri Forest and Hyrule Field translate have 2,619left-global loads in 141 task/mesh stages (up to 144 in one mesh stage), and each one tests every bound storage buffer's
range. The drivers turn that into very large shaders: on NVIDIA the largest mesh stages are 560-640 KB of code at 255
registers, and one pipeline (43ec86f35fd937b9) takes 32 s to compile.
This makes a native task or mesh stage that reads global memory read through the table alone, as the other stages do. Stores
and atomics keep the search, as everywhere else (in these scenes the task and mesh stages leave no store global, and one
mesh stage leaves 4 atomics). The result,
offline on the same SPIR-V (84 programs, both drivers here): mesh code 54% smaller on NVIDIA and 38% smaller on RADV, RADV's
SGPR spills 2,377 -> 176, pipeline compile time down about two thirds. In-game GPU time and frame rate: Measurements.
RX_VK_MESH_FIRST's task block can be made);
DefineGlobalMemoryFunctionsgives it device addresses and the push block(
native_mesh_table), andtable_stagetakes every task and mesh stage.RX_VK_GP_TABLE=2checks native task and mesh loads against the table too (translate_program.cppgives them the checkbuffer); only the mesh fallback's task and mesh stages stay out of the check, as before.
push_constantsalready pushes the table to every program with a stage that reads global memory,and
gp_table_coveralready covers a virtual pool's binding for any such stage.RX_VK_GP_TABLE=0turns this off with the rest of #2103.Read first:
gpu/vk/eden/shader_recompiler/backend/spirv/spirv_emit_context.cpp(the constructor's native task/mesh block;DefineGlobalMemoryFunctions:native_mesh_table,table_stage,table_check).Coordination, before this leaves WIP: dyst claimed
perf/mesh-global-helpersin the team room on 2026-11-21: HeyListen'sRX_VK_MESH_G3,RX_VK_MESH_NOINLINE_ABOVEandRX_VK_FOLD_PSEUDO, which make the same inlined native mesh load helperscheaper while keeping the search (no pull request yet). With this one their loads have no search left; G3's hoisting would
still apply to mesh stores and atomics. To be agreed with dyst which goes first, or whether both. And #2144 (dyst, WIP)
changes how
translator_stampholds switches: this PR adds no switch and moves the stamp only through the translator'ssources, so they should not conflict, but whichever lands second rebases and re-checks the stamp.
See #2103.
The idea came from reading Rekarina's notes (another PC port of this game), whose global-memory lookup was its largest
GPU cost; the change here is our own, built on #2103.
Testing
Tested: Linux (Ubuntu), RTX 4070 Ti (NVIDIA 595.99.02); Ryzen 7 9800X3D's Radeon iGPU (RADV, Mesa 26.0.8) for the offline
compiles.
pictures (foliage, trees, rocks; Link lit by Navi wherever she flies on both sides), and
logdiffof each pair of logsfinds no warning or problem line new, gone or changed in count.
RX_VK_GP_TABLE=2(the search kept, every task/mesh/vertex/fragment/compute load compared with the table's answer):Kokiri Forest, 0 loads read otherwise in 273 checked programs; 2,475,150 of 2,475,155 storage buffer bindings held by the
table, 5 written (a virtual pool's), none outside its windows or served from a copy. Hyrule Field: 0 in 333 checked
programs; 2,537,462 of 2,537,467 bindings held, 5 written. (A first Hyrule Field run in this mode timed out waiting for the
game to read the controller: the check's own mesh stages, search and table and comparison inlined at every load, took up to
9 s each to compile in play. The mode is a diagnostic; the second run, with those pipelines cached, passed.)
RX_VK_MISS_LOG=1in both scenes: no global access of a native task or mesh stage missed every binding (so thesearch found a binding for each, which the table maps), and no store or atomic anywhere was lost.
tests/global_load_16_ir.cppnow also emits native task and mesh stages withRX_VK_GP_TABLE0, 1 and 2; with 1 noload helper searches, and the push block has its member at
GUEST_PAGES_PUSH_OFFSET. All 37 modules pass spirv-val. Onmain the task stage with 1 fails ("a load helper still searches").
tests/test_mesh_fallback_pages.pychecks theconstructor's condition (and that it comes before RX_VK_MESH_FIRST's block) and the stages the check reaches (g++ and
clang++). The suite against the merge base
a2dc5385: 904 passed, 22 failed, 26 skipped on both; nothing fails on one sideonly.
Still to test:
Windows NVIDIA, and AMD's Windows driver (native mesh shaders there): Kokiri Forest and Hyrule Field, expecting the same
pictures and lower GPU time, and a cold "Preparing shaders" expecting it shorter (@Beanstalk)
RADV with
RX_VK_MESH_SHADERS=native(not the default, issue 2245) on an RX 6000-9000: the same (by hand; offline on thisPC's RADV iGPU the mesh stages' code is 38% smaller and SGPR spills 2,377 -> 176)
Steam Deck, RADV at its default and the mesh fallback elsewhere (Intel, GCN, Windows RDNA 2): unchanged, the fallback's
SPIR-V is the same as on main (@Beanstalk)
This PR's head (
d19d3b543) is that commit cherry-picked onto currentmain67ba729d(it applied cleanly), compiled withthe build's flags;
test_mesh_fallback_pagespasses on it. The runs above were made atmaina2dc5385; the game was notrun again on this head.
Measurements
Verdict: faster on NVIDIA: +21% fps in Kokiri Forest and +14% in Hyrule Field, 1.20 and 0.90 ms less GPU time a frame;
the mesh stages' code half the size, and their pipelines compile in a third of the time.
Setup: Linux (Ubuntu), RTX 4070 Ti, NVIDIA 595.99.02, Ryzen 7 9800X3D. Kokiri Forest and Hyrule Field from the test save
(tools/gamerun.py: teleports 0 and 1), headless 1280x720 window with the 3D passes at 2560x1440 (the runtime's default
options),
HOS_FPS_MAX=1000(uncapped), 60 s inthe scene, the last 45 s measured from the frame trace (
RX_VK_FRAME_TRACE) and the log'svk: GPU timelines; each run a--mode timingjob of the PC's queue (alone on the GPU: no other game ran during any of them), three interleaved rounds perscene, the median. Baseline:
dev.py abneeds a base at main's commit, which this PC does not have, so both sides are packsover the shared base
3e4b1faf: main @a2dc5385and this branch (0a6d4d65, the same code as 69fc598e: one comment differs).a2dc5385a2dc5385* two runs (one a side) had 400-800 frames over 20 ms in which the game's main thread was blocked (
main_blocked_ms): otheragents' check suites ran beside the timed run on this shared PC. Their GPU time is the same as their side's other runs, and
leaving them out changes no median by more than 0.1 fps.
Where the GPU time went, one more timed run a side with
RX_VK_PASS_TIMING=2(a timestamp at each change of program; thespans add up to more than an unprofiled frame):
Offline, the stored SPIR-V of the 84 mesh programs both scenes translated, compiled with VK_KHR_pipeline_executable_properties
statistics and the drivers' disk caches off:
a2dc5385(RADV: the Ryzen 7 9800X3D's Radeon iGPU, Mesa 26.0.8. Compile times measured on a shared PC: indicative; the code sizes,
registers and spills are the drivers' own statistics.)
The log lines (Kokiri Forest, round 3):
Risks
found no load that differs in Kokiri Forest. What could differ is a storage buffer the table does not hold: a binding
served from a copy, or a bare pointer bound past its game pool (#2103's Risks); none in these runs.
fewer warps in flight for those. The GPU time above is the net.
that is shorter than before for the mesh programs.
RX_VK_GP_TABLE=0brings the search back for every stage (this PR's and #2103's).Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (suite.py compare: 22 fail on both sides)main, or Measurements says why there is nothing to measure. (NVIDIA in game; RADV offline only: its default is the fallback)third_party/untouched; nothing GPL-incompatible.When it applies
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.🤖 Generated with Claude Code
Tested in game: Linux 7.0, RTX 4070 Ti (NVIDIA 595.99.02): Kokiri Forest and Hyrule Field. RX_VK_GP_TABLE=2 check: 0 loads read otherwise (273 and 333 checked programs); timing rounds 1-2 of 3: GPU time a frame 6.20 -> 5.00 ms (Kokiri Forest), 6.50 -> 5.5 ms (Hyrule Field). Offline compiles on the RTX and the RADV iGPU: mesh code 54% / 38% smaller. Runs made at main
a2dc5385; this head is the same commit cherry-picked onto current main (clean), compiled, not yet run in the game.Possibly related, for context:
@Beanstalk
Beanstalk test farm · 🔄 testing (12 of 7 reports so far, a failure already)
Commit
d19d3b5· approved by HumanBean (reviewed) · dashboard⚠️ Note: Cold driver-cache scenarios are Linux-only; the farm cannot measure the requested cold shader preparation on Windows, and this plan does not separately prime a warm driver cache.
⚠️ Note: RADV is tested at its default fallback, not forced native mesh; the requested RX 6000–9000 native path needs a separate targeted run because forcing it across all targets could exercise unsupported hardware.
⚠️ Note: Shader compile and GPU times are reported, but the plan does not enforce the claimed speedup or measure offline shader code size, register spills, or the diagnostic load-by-load comparison.
Done (started 00:35 UTC, last report 05:24 UTC). Comment
@Beanstalkto run it again.windows+nvidiawindows+amdlinux+nvidialinux+radvamdintelsteamdeckWhy it failed
windows+amd:gameplaycrash:3 PR runs crashedwindows+amd:gameplayscreenshot.max_diff:0.0 → 0.9; limit 0.2linux+nvidia:gameplayscreenshot.max_diff:0.0 → 0.7; limit 0.2linux+radv:gameplayscreenshot.max_diff:0.1 → 0.9; limit 0.2amd:gameplayfield.frametime_1pct_low_ms.max_delta_pct:12.4 → 14.3 (+15.1%); limit 15.0steamdeck:gameplayscreenshot.max_diff:0.6 → 0.9; 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.
linux+radv, report 2:no scenario could be judged: the driver's shader cache was not empty at the start (2 MB)amd, report 2:no scenario could be judged: the driver's shader cache was not empty at the start (2 MB)steamdeck, report 2:no scenario could be judged: the driver's shader cache was not empty at the start (2 MB)What was tested
What will be tested · AI plan (
gpt-6.1-terra)Compare the pull request with main in Kokiri Forest and Hyrule Field on NVIDIA, AMD, Intel and Steam Deck systems, including the named Windows and RADV paths. Three gameplay starts per side measure frame and GPU time and compare still pictures; two additional Linux starts per side measure shader preparation with a cold driver cache. The plan takes about 57 minutes per tester, excluding builds, and fails on crashes, materially slower frame or load times, or significant picture differences.
kokiri-start(settings frame_rate_cap=6), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 25 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 25 s (after 5 s warm-up); 3 runs on each side.kokiri-start(each start with an empty driver shader cache, Linux only for now), then teleport to Kokiri Forest, teleport to Hyrule Field; 2 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
NVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce RTX 3090, 621.1.0AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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: fail on windows+amd (2 reports):
gameplay crash;gameplay screenshot.max_difffailed.Hardware: 1: windows+amd+amd-proprietary+dgpu
AMD Radeon RX 6600 XT, 2.0.353AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM; 2: windows+amd+amd-proprietary+dgpuAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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 (2 reports):
gameplay screenshot.max_difffailed.Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu
NVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce RTX 3080 Ti, 620.73.4AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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: fail on linux+radv (2 reports):
gameplay screenshot.max_difffailed.Hardware: 1: linux+amd+radv+igpu
AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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: fail on amd (2 reports):
gameplay field.frametime_1pct_low_ms.max_delta_pct (+15.1%)failed.Hardware: 1: linux+amd+radv+dgpu
AMD Radeon RX 9070 (RADV GFX1201), 26.0.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpuAMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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: fail on steamdeck (2 reports):
gameplay screenshot.max_difffailed.Hardware: 1: linux+amd+radv+igpu+handheld
AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAM; 2: linux+amd+radv+igpu+handheldAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMScene: gameplay, from the repository's save kokiri-start (frame_rate_cap=6); cold-driver, from the repository's save kokiri-start; each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); gameplay: 3 game starts a side, forest 25 s after 5 s warm-up, field 25 s after 5 s warm-up; cold-driver: 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)67ba729d19d3b5Flags 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 RTX 3090, 621.1.0AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAMwindows+amdAMD Radeon RX 6600 XT, 2.0.353AMD Ryzen 5 3600 6-Core Processor, 16 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAMlinux+nvidiaNVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMlinux+nvidiaNVIDIA GeForce RTX 3080 Ti, 620.73.4AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAMlinux+radvAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMlinux+radvAMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAMamdAMD Radeon RX 9070 (RADV GFX1201), 26.0.8AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAMamdAMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 12 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAM@beanstalk
@HumanBean
d19d3b5is already running: see the dashboard.@review
Recommendation: Approve. The code is ready: only testing is left. The NVIDIA measurements show a substantial gain on the tested earlier base, but the current head and other affected Tier 1 configurations still need runs. Recommend approval; not approved on the forge.
Native task and mesh global loads use the guest page table instead of searching every bound storage buffer. This substantially reduces shader size and GPU time in the reported NVIDIA scenes, at the cost of relying on table coverage and allocation for those stages.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/eden/shader_recompiler/backend/spirv/spirv_emit_context.cpp:1196: The changed native shader path still needs game and timing runs on the current head and affected Windows drivers. (more on the line) Do: Run the stated scenes on the current head against its base, including NVIDIA and AMD Windows, checking pictures, frame times and cold shader preparation.gpu/vk/eden/shader_recompiler/backend/spirv/spirv_emit_context.cpp:1196: RADV native mesh execution and the Tier 1 fallback configurations remain untested in game. (more on the line) Do: Run the stated scenes on an RX 6000–9000 with RADV native enabled and on Steam Deck or the relevant fallback configuration, checking output and timing.Checks: Still running: 9 checks.
More: does it help, other systems, switches, what was read
Does it help: Yes on the reported Linux RTX 4070 Ti runs at the earlier base: median FPS rose 136.6 to 165.2 in Kokiri Forest and 126.6 to 145.0 in Hyrule Field; GPU time fell 1.20 ms and 0.90 ms per frame. The current head was compiled but not run in game, and the other affected drivers remain unmeasured.
Other systems: The default affects native mesh shaders on NVIDIA and AMD Windows, and RADV when native mesh shaders are selected. The compute fallback and Steam Deck default are reported to emit unchanged SPIR-V, but their game runs remain outstanding. Stores and atomics retain the search. Table coverage, copied bindings, allocation failure, and driver compilation affect the changed path.
Switches: RX_VK_GP_TABLE remains default 1 where host import and device addresses are available; its scope now includes native task and mesh loads. Mode 0 restores the search and mode 2 compares answers. The default has a measured NVIDIA gain but has not yet been validated on all affected Tier 1 drivers. No switch was added or removed.
Reviewed:
d19d3b543aagainst67ba729d21: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the complete diff and commit message, and the changed shader constructor, global-memory helpers, descriptor setup and tests; traced table allocation, coverage and push constants. Skimmed the remaining portions of the larger changed files and related host code. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run during review. The author reports game runs on an earlier base, SPIR-V validation and a suite comparison; CI is still running on this head.
Overlaps and merge order: The description identifies dyst's unsubmitted perf/mesh-global-helpers work and WIP #2144. Their order remains to be agreed; the second change should be rebased and its translator stamp checked.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -1182,2 +1193,4 @@// every bound storage buffer's range tested at every loadconst bool table_stage{graphics_stage || stage == Stage::Compute || stage == Stage::Task || stage == Stage::Mesh};const bool graphics_table{graphics_table_loads != 0 && table_stage && wants_guest_pages &&rescaling_push_constants.value != 0 && profile.supported_spirv >= 0x00010400};L1 (should fix): The changed native shader path still needs game and timing runs on the current head and affected Windows drivers.
When: The reported game runs used an earlier base; NVIDIA Windows and AMD Windows use the changed native stages but have no reported in-game correctness or performance result.
Do: Run the stated scenes on the current head against its base, including NVIDIA and AMD Windows, checking pictures, frame times and cold shader preparation.
L2 (should fix): RADV native mesh execution and the Tier 1 fallback configurations remain untested in game.
When: RADV native mode takes the changed path, while Steam Deck and other fallback configurations must continue to work; offline compilation and unchanged fallback SPIR-V do not exercise those game paths.
Do: Run the stated scenes on an RX 6000–9000 with RADV native enabled and on Steam Deck or the relevant fallback configuration, checking output and timing.
WIP: perf(shaders): native task and mesh stages read global memory through the guest page tableto perf(shaders): native task and mesh stages read global memory through the guest page tableJer9 referenced this pull request2026-11-23 16:17:47 +00:00