WIP: feat(linux): run natively on AArch64 Linux (Apple M5 under Asahi, 16 KB pages, Borealis) #2692
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2692
Loading…
Reference in a new issue
No description provided.
Delete branch "Kolkka/Longshot:builder/aarch64-linux"
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
On AArch64 Linux, clang rejects the x86-64 flags that
mainpasses. This branch builds Longshot for the host CPU and plays it on an Apple M5 under Asahi (16 KB pages, Borealis): Kokiri Forest from thekokiri-startsave, played by hand and by 1800-present scripted runs, at about 13 fps with the memory-saving settings under Testing.af4cbcc5selects the native Linux architecture inbuilder/crates/build-compile/src/toolchain.rs. It reads Arm CPU features, uses the AArch64 Linux Rust target and searches the AArch64 Vulkan library paths. AArch64 IR units use-fno-global-iselto work around an LLVM 22 crash. A minimal four-instruction reproducer uses no game content, and a test pins the flag.32c87a16adds AArch64 host context switches, fault decoding, profiler sampling and spin waits. Start withhos_posix_guest_discardinhost/hos_main.c. Whole host pages are discarded and partial pages are zeroed in place. Commit and protection ranges round to host pages.79b5f2e5letsmemory_initingpu/vk/vk_memory.cppstart on the Linux dma-buf route withoutVK_EXT_external_memory_host. It aligns pools to host pages and guards the host-pointer fallback. Shader preparation can start without a guest window. The recorder uses an AArch64 spin pause.b5ca53a4makesscripts/devtools/build.pyselectlinux-arm64and use the system clang, lld, Vulkan, SPIR-V and VMA headers, FFmpeg and SDL2 viaLONGSHOT_OWN_TOOLS=1. The Arm route installs no locked tools.efced427makes Automatic run Borealis's mesh shaders on the compute path, as it does RADV's. Its native path lost the device in the first shadow passes (the depth-only 4096×4096 pass filled the tiler's buffer). Borealis is known by itsdriverInfo, since its driver ID (35) is not in the Vulkan registry.RX_VK_MESH_SHADERS=nativestill tries it.23e811aa(test) ande094c238(fix): the occlusion query ring (kOccPool,gpu/vk/vk_replay.cpp) goes from 65536 to 32768 queries. Borealis gives each query index a counter from one heap of 32768, kept until the pool is destroyed. Past that, a draw's query failed to record (VK_ERROR_OUT_OF_HOST_MEMORY, "Descriptor table not large enough"), and the submission lost the device about 45 s into play, with no kernel message. A full ring only leaves reports "visible" (occ_room), so 32768 changes nothing for other GPUs but how many frames of queries can be in flight.154185f9: where the compute fallback runs beside native mesh shaders, a mesh program whose native pipeline the driver refuses takes its fallback variant instead of being left out (on the M5, Borealis's compiler refuses one of OoT's mesh-only programs: one draw a frame).0959a697replacesefced427's rule: Automatic keeps Borealis's mesh shaders and runs only its task + mesh draws on the compute path (task_mesh_fallback, as for AMD's Navi 2x on Windows). Its native task + mesh path loses the device (in the 4096×4096 shadow pass and in a 128×128 render), its mesh-only draws do not, and every mesh draw on the compute path broke render passes: Kokiri Forest 13.5 → 17 fps, the castle gate 8.2 → 9.7, the market entrance 11.3 → 14.757a7214(test) and249a250b: fewer indirect mesh argument batches (RX_VK_MESH_CONV=2,mesh_conv_at_barrier). The scan stopped at every counter's report, which is written on the CPU as it is replayed and records no GPU write (the batch's copies and the draws that take from it share one command buffer), so the occlusion pass's ~200 reports a frame cut it at each: each indirect mesh draw after one got a batch and a pass end of its own. And after a draw that may write memory dropped the batch, the draws after it converted one by one, a pass end each; they are now batched again right after that draw. Kokiri Forest 25 batches → 10, 134 render passes → 121: 17 → 20.9 fps. This runs on every GPU with native mesh shaders;RX_VK_MESH_CONV=1still converts at the draw.6603bc68makes #2684's float middle path build on AArch64: its emptyasmtook x86-64's register class ("=x,0"), which clang refuses there, and 174 hot units failed to compile.llvm::Options::aarch64gives"w"; its text in the units' keys is unchanged on x86-64, so no lift there is redone.8e630258builds #2036's native cloth kernels on AArch64:game/cloth_sse_neon.hppgives the 98 x86 intrinsics they use with NEON, each with Intel's semantics, andgame/neon'sxmmintrin.h,emmintrin.h,smmintrin.handimmintrin.hlead to it, before the compiler's own, for the game's C++ on AArch64 alone. The kernels themselves are unchanged.a5a33ca4/9c5abcab(L1, L2) ask for the page size each time instead of caching it on first use.764ed9b6/6e0bd422(L3) take the dma-buf-only route only where every pool can be imported.1b103d62fixestest_sim_turf_settingson 16 KB pages.Follow-ups for a release builder on Arm are the
linux-arm64packages intools.lockand the builder'starget_system(). Also a follow-up, not in this branch: the renderer submits command buffers without checkingvkEndCommandBuffer's result (part_submit,submit_recording), so a driver's recording error reads as a lost device.See #420 and #966. Mooki's paused macOS port runs natively on Apple silicon. This PR takes no code from it. The overlap is the Arm host and 16 KB pages.
Testing
Tested:
78d817d933), Vulkan 1.4. Fedora clang 22.1.8 and mise Rust 1.99.1, with system tools viaLONGSHOT_OWN_TOOLS=1.8e630258onmain@22d0d200(dev.py game --quickfrom my own dump, 924 units, zero failed): boots, intro, title and menu, Kokiri Forest fromkokiri-start. Scripted runs through the job queue (headless, A pressed until play, then 1800 presents of play): still running after 1800 presents every time since the occlusion fix (at head: frame 3054, 13.8 fps, 705 draws a frame withHOS_NATIVE_CLOTH=check; frame 3071, 11.8 fps with the cloth's default). I also played it by hand in a window, keyboard input, until I closed it.RX_VK_PRECOMPILE=0(pipelines built at first draw) and memory-saving switches (HOS_OUTPUT_RES=1920x1080 HOS_RES_SCALE=0.5 HOS_DYNRES=0 RX_VK_VRAM_MB=640 RX_VK_TARGET_POOL_MB=64 RX_VK_WORKERS=1 RX_VK_LOAD_WORKERS=1 RX_VK_COMPUTE_SERIAL=1 RX_VK_MIRROR=0 RX_VK_WB_SHADOW_MB=0 RX_VK_FRAMEGEN=0 RX_VK_AUTO_TUNE=0), with 16 GB of swap (8 GB zram, 8 GB file). WithoutRX_VK_PRECOMPILE=0, building every pipeline at start-up runs out of memory on this PC.e094c238~2every scripted run lost the device 40-50 s into play. WithMESA_VK_ABORT_ON_DEVICE_LOSS=1and uprobes on Mesa's__vk_errorfand_vk_queue_set_lost, the cause washk_ensure_occlusion_query_for_drawreturningVK_ERROR_OUT_OF_HOST_MEMORY(counter heap full), thensubmitted a command buffer recorded with VK_ERROR_OUT_OF_HOST_MEMORY. WithRX_VK_OCC_QUERIES=0the same run played. Ate094c238, with the queries on, it plays.HOS_NATIVE_CLOTH=check(every call also run lifted and compared): Kokiri Forest, 1800 presents, about 905,000 calls of thirteen kernels compared (cull 181,709; capsule tail 128,189; link 79,884; aabb, anchor, bones, tether, verlet about 62,000 each; bend link 58,263; pm and skin 48,210 each; bend 37,142; capsule 12,375), 0 mismatches. With the kernels at their default (on), the same run played its 1800 presents. Game-free:test_cloth_sse_neon(413 cases against Intel's definitions, written apart from the header, -O0 and -O2) and every cloth test built the same way on AArch64 (test_cloth_kernels,test_cloth_step8,_step9,_step12,test_cloth_loops,test_cloth_sphere,test_oot_cloth,_60,_time): pass.test_vk_occlusion_queries(102400 queries through the ring: 65536 distinct before, at most 32768 after),test_guest_discard_pages(now also built with ThreadSanitizer: eight threads' first discard andVirtualProtectat once; TSan reported the race before),test_dma_buf_route(new: no sparse binding and a udmabuf limit under the guest window refuses the route),test_sim_turf_settings(aborted onmprotectEINVALbefore).test_mesh_mode_switch,test_device_policy,test_import_buffer_binding(updated to cut the udmabuf helpers) andtest_udmabuf_limit_unreadablepass.tests/test_lifter_semantics.pypassed on AArch64: 126,846 runs over 42,375 words, 2,988 edge states and 4,000 sequences.test_fault_write_aarch64,test_cpu_relax,test_dev_buildpass.tests/run_all.py --strict, asmise run test, withLONGSHOT_VULKAN_HEADERSandLONGSHOT_SPIRV_HEADERSset to/usr/include: no locked tools for linux-arm64) at8e630258on this AArch64 PC: 863 passed, 20 failed, 10 skipped. All 20 also fail onmain(22d0d200) on the same PC, run the same way, and none touches a file this branch changes for them: three need cmake, which this PC lacks (f2i_immediate,global_load_16,native_suatom);test_lifter(clippy'sneedless_borrowinbuilder/crates/build-driver/src/play.rs);test_switch_table; and fixtures that miss functions or files the host now has:test_bug_report,test_check_cache,test_control_picture,test_crash_record,test_framegen_hdr,test_framegen_resources,test_guest_holes,test_input_background,test_log_open_failure,test_perf_send,test_pipeline_tour,test_present_source_crop,test_screensaver,test_temporal_present_bandwidth,test_xinput_thread.mainalso failstest_lifter_semanticshere (-mcx16on AArch64), which this branch fixes, andtest_sim_turf_settings, fixed by1b103d62.mise run lintpasses.Still to test:
kokiri-starton each. Expect play with working input and no device loss, and no change in frame times from the 32768-query ring.Measurements
22d0d200249a250b-march=x86-64and-mcx168e630258, task + mesh alone at0959a697; fewer argument batches at249a250b)0959a697) → 20.9 / 10.3 / 15.4 (249a250b)e094c238~2), same runstest_vk_occlusion_queries: distinct queries out of 102400Verdict: it helps. The game builds and plays on AArch64 Linux, where
maindoes not build; on the Apple M5 the device loss is gone (every run plays its 1800 presents, against a loss 40-50 s in before), at 20.9 fps in Kokiri Forest with memory-saving settings (13.5 with every mesh draw on the compute path). On x86-64 the fewer argument batches should help GPUs with native mesh shaders a little or not at all; the Test Farm is to confirm it.These are
--quickbuilds and scripted runs through the job queue'sgpumode, not timed runs: the queue's timing mode runs without swap, and the game needs swap on this 16 GB PC (a timing-mode run was killed for memory). On x86-64 the compile flags are identical argument for argument (a test pins them), and the changed host and renderer paths keep their x86-64 behaviour. The changes every GPU runs are the 32768-query occlusion ring and the fewer indirect mesh argument batches (native mesh shaders only), for the Test Farm to measure.Switches: none added. Existing ones this branch reads, at their defaults:
RX_MARCH(unset: the PC's own CPU features on AArch64, as on x86-64),RX_VK_NO_DMABUF(off: dma-bufs where udmabuf works),LONGSHOT_PREPARE_ONLY(off: a normal run),LONGSHOT_OWN_TOOLS(set bydev.pyon linux-arm64 alone, wheretools.lockhas no tools)LONGSHOT_NO_CLANG(tests only, unset) andRX_TARGET(unset: the PC's own OS;windowsbuilds the Windows game, whose lifted code is x86-64's, sollvm::Options::aarch64is set only for a Linux game built on an Arm PC).Risks
RX_VK_PRECOMPILE=0avoids it), and a cold Mesa shader cache (a new driver build) took the game to 6.4-6.9 GB of anonymous memory at the start of play, once over the edge.AGX3 binary packer refused iadd ... abs ... neg, and one compute pipeline (texture_sampleoperand gate); the renderer leaves those pipelines out.RX_NVN_WATCH_*debug watches are coarser on 16 KB pages. Reverting the PR removes the Arm path and restores the old requirement for host-pointer import.Checklist
Ready for review
main; the title is a Conventional Commit. Rebased on22d0d200.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
mainand passes here.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. CI, base confirmation and measurements are pending.🤖 Generated with Claude Code
https://claude.ai/code/session_017tiHuc6Vpni6h8picLF9VG
Tested in game: Apple M5 (10 cores, 14.5 GB unified), Linux 7.3.0 with 16 KB pages, Aurora Fedora Remix 44 (KDE Wayland), Mesa 26.3.0-devel Borealis (git 78d817d933), Vulkan 1.4, through the job queue: the game builds from my own dump (906 units, 0 failed), boots, plays the intro (screenshot of the night opening), title and menu, and loads Kokiri Forest from the repository's kokiri-start save; played by hand with the keyboard, input works, it reaches play with 900-3,700 draws a frame. Then the GPU is lost (VK_ERROR_DEVICE_LOST) in the first frames of play: the kernel's recovery shows the game's own depth-only 4096x4096 pass overflowing the tiler buffer with no growth, reproduced by a scripted run every time; ASAHI_MESA_DEBUG=nomerge does not change it. Being worked on with the driver; this is why the PR is WIP. Pipelines built at first draw (RX_VK_PRECOMPILE=0): building them all before the title does not fit in 14.5 GB on this driver. Not run on x86-64 Linux or Windows (no such hardware here).
Possibly related, for context:
@review
Recommendation: Request changes. The new page-size caches have unsynchronized first-use writes, and the dma-buf-only route can accept a device that cannot import pools needed for rendering. The reported Arm run also loses the GPU in the first frames of play.
The change enables native AArch64 Linux builds and fixes partial guest-page discards on larger host pages. It also changes shared host and Vulkan memory paths; the new route needs reliable pool handling and playable hardware validation before merge.
Blocking (1): must change before merging.
gpu/vk/vk_memory.cpp:849: The dma-buf-only startup check accepts devices without ensuring that required pools can be imported. (more on the line) Do: Provide a working fallback or split strategy for these pools, or reject the unsupported configuration before reporting successful initialization. Cover the no-host-pointer, no-sparse, oversized-pool case in a game-free test.Should fix (2): not blocking, but worth doing before merging.
host/hos_main.c:270: The cached page size is initialized with unsynchronized reads and writes from guest threads. (more on the line) Do: Initialize the page size before guest threads start, or publish it with a thread-safe once or atomic initialization.host/posix/win32_posix.c:715: host_page has the same unsynchronized first-use initialization in the POSIX allocation and protection paths. (more on the line) Do: Initialize this value before concurrent use or use a thread-safe once or atomic initialization.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: 10 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven as a playable port: the author reports a 906-unit build, a successful boot and menu, and entry into Kokiri Forest, but device loss in the first frames. The 16 KB discard test reportedly fails on main and passes here.
Other systems: The host page and Vulkan memory changes also run on x86-64 Linux; Windows uses the changed shared host headers and spin-wait callers. The author reports no x86-64 Linux or Windows game run. Tier 1 GPU and Steam Deck coverage remains pending; the Arm run used first-draw pipeline compilation and reported omitted vertex pipelines and excessive precompile memory use.
Switches: No switches added or removed. Existing RX_MARCH now selects the AArch64 architecture when set; otherwise detected Arm features are used. Existing LONGSHOT_OWN_TOOLS is enabled by default for the Arm dev.py toolchain route. Existing dma-buf and background-import switches also affect the new route; their defaults were not changed.
Reviewed:
553df5ae8fagainsta3591a98c9: Read the available repository rules, PR template, standards, diff and commit messages; examined the changed host, renderer, builder, development tool and test paths and their relevant callers. The recorded runs are the PR description and comment. No generated files or translations were changed. The separate Tooling checkout and docs/review-checklist.md were not available in the supplied review material.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no builds, tests or project scripts were run. The author reports 845 game-free checks passed, seven failures also present on main, and 12 skips; CI is still running.
Overlaps and merge order: The description names #420 and #966 and a paused macOS port; no overlapping pull request was established from the supplied material.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -818,0 +846,4 @@#ifdef __linux__if (const long s = sysconf(_SC_PAGESIZE); s > 0) host_page = std::max<uint64_t>(host_page, (uint64_t)s);#endifif (!dev.external_memory_host) {L3 (blocking): The dma-buf-only startup check accepts devices without ensuring that required pools can be imported.
When: On a driver without host-pointer import or sparse buffers, a pool larger than udmabuf's piece limit is rejected by import_dma_buf; import_pool then has no fallback and pool lookup returns no buffer. The renderer starts successfully but cannot render work using that pool.
Do: Provide a working fallback or split strategy for these pools, or reject the unsupported configuration before reporting successful initialization. Cover the no-host-pointer, no-sparse, oversized-pool case in a game-free test.
@ -265,2 +268,3 @@back, the parts of the host pages at either end zeroed in place (their other bytes are the guest's live memory) */int hos_posix_guest_discard(void *p, size_t n) {return madvise(p, n, hos_guest_memfd >= 0 ? MADV_REMOVE : MADV_DONTNEED);static uintptr_t page;L1 (should fix): The cached page size is initialized with unsynchronized reads and writes from guest threads.
When: Two threads freeing guest memory for the first time can enter hos_posix_guest_discard together and race on page. This is a C data race, so the discard calculation has undefined behavior.
Do: Initialize the page size before guest threads start, or publish it with a thread-safe once or atomic initialization.
@ -712,1 +712,4 @@MADV_DONTNEED leaves a shared mapping's pages as they were; MADV_DONTNEED elsewhere *//* (the host's page: 4 KB on x86-64, 16 KB or 64 KB on some Arm PCs, where mprotect and madvise take only whole ones) */static uintptr_t host_page(void) {static uintptr_t page;L2 (should fix): host_page has the same unsynchronized first-use initialization in the POSIX allocation and protection paths.
When: Concurrent first calls to VirtualAlloc, VirtualProtect or a non-guest discard can read and write page simultaneously, causing a C data race while computing protection or discard ranges.
Do: Initialize this value before concurrent use or use a thread-safe once or atomic initialization.
Honeykrisp (Mesa's driver for Apple's GPUs, and Borealis, its fork) gives each query of an occlusion pool a counter the first time it is begun, keeps it until the pool is destroyed, and has 32768 for all pools (AGX_MAX_OCCLUSION_QUERIES). The ring numbers 65536 queries (kOccPool), so about 45 s into play on an Apple M5 a draw's query failed to record ("Descriptor table not large enough", VK_ERROR_OUT_OF_HOST_MEMORY) and the next submission lost the device. The check runs 102400 queries through vk_replay.cpp's ring and counts the distinct ones it hands out. It fails here: 65536. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017tiHuc6Vpni6h8picLF9VGBorealis (Mesa's Honeykrisp fork for Apple's GPUs under Asahi) offers task and mesh shaders, and on an Apple M5 (G17G) its native path lost the device in OoT's first shadow passes: the depth-only 4096x4096 pass filled the tiler's buffer whatever its size (128 blocks; 256 with the kernel's floor raised). On the compute fallback the same passes drew and the game reached play. Automatic now takes the compute path for it, as it does for RADV, by its driverInfo ("Borealis, derived from Honeykrisp"): its driver ID (35) is its own, not in the Vulkan registry. RX_VK_MESH_SHADERS=native still tries the driver's own. The mesh-mode check covers the rule, the log's note and that Automatic decides it after asking the driver who it is; device_policy.h's mesh_mode agrees. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017tiHuc6Vpni6h8picLF9VGAnswers to the review of
553df5ae(head now5bb26a78):6e5e0cdf(test) andf934d955(fix).hos_posix_guest_discardandhost_page()asksysconf(_SC_PAGESIZE)each time instead of filling a static on first use; glibc answers from the value it read at start-up.test_guest_discard_pagesnow also builds the cut functions with ThreadSanitizer and has eight threads make their first discard andVirtualProtectat once: TSan reported the race inhos_posix_guest_discardbefore the fix, nothing after.ec7a50d5(test) anda824e191(fix). The route is taken only with sparse binding, or where udmabuf's limit (andRX_VK_DMABUF_PIECE_MB) holds the whole guest window; otherwise start-up stops and the log says what is missing. Newtest_dma_buf_routecovers the no-host-pointer, no-sparse, oversized-pool case: the route was taken in all four such cases before the fix. On the Apple M5 nothing changes (Borealis has sparse binding;size_limit_mbis 2147483647).5bb26a78: Automatic now uses the compute path there) and the occlusion query ring being larger than Borealis's 32768 counters (f6ee5270/3afc6ecf). Kokiri Forest now plays: 1800-present scripted runs every time, and by hand. Default settings still do not fit in 14.5 GB (start-up pipeline preparation runs out of memory), so the runs useRX_VK_PRECOMPILE=0and memory-saving switches; the description says which, and keeps this under Risks and Still to test.Also new:
9740d8d1fixestest_sim_turf_settingson 16 KB pages. Full suite on this PC: 847 passed, 9 failed (6 fail onmaintoo, 3 need cmake), as Testing says.@Beanstalk Please build this PR's head and run it on the Tier 1 machines: x86-64 Linux (an AMD and an NVIDIA GPU if there are both), Windows, and the Steam Deck. On each: start the game with default settings, load the repository save
kokiri-start, and play Kokiri Forest for a few minutes. Expect the title and menu, play with working input, and no device loss or crash. Please report each machine's average fps and frame time in Kokiri Forest, and the log linesvk: occlusion queries onandvk: mesh shaders:. This PR shrinks the occlusion query ring from 65536 to 32768 queries on every GPU, and changes host page-size and guest-memory import code that x86-64 also runs.@Kolkka only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was for5bb26a7, and the PR has changed since (8e63025), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.5bb26a78638e63025829@Beanstalk Please build this PR's head (
8e63025, rebased onmain@22d0d200) and run it on the Tier 1 machines: x86-64 Linux (an AMD and an NVIDIA GPU if there are both), Windows, and the Steam Deck. On each: start the game with default settings, load the repository savekokiri-start, and play Kokiri Forest for a few minutes. Expect the title and menu, play with working input, and no device loss or crash. Please report each machine's average fps and frame time in Kokiri Forest, and the log linesvk: occlusion queries on,vk: mesh shaders:andoot: cloth:. This PR shrinks the occlusion query ring from 65536 to 32768 queries on every GPU, changes host page-size and guest-memory import code that x86-64 also runs, and adds a field to the lift's code-generation options whose key text is meant to stay the same on x86-64 (a build there should reuse its kept lifts, not lift again).@Kolkka only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was for8e63025, and the PR has changed since (0959a69), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.@Beanstalk Please build this PR's head (
0959a69, onmain@22d0d200) and run it on the Tier 1 machines: x86-64 Linux (an AMD and an NVIDIA GPU if there are both), Windows, and the Steam Deck. On each: start the game with default settings, load the repository savekokiri-start, and play Kokiri Forest for a few minutes. Expect the title and menu, play with working input, and no device loss or crash. Please report each machine's average fps and frame time in Kokiri Forest, and the log linesvk: occlusion queries on,vk: mesh shaders:andoot: cloth:. This PR shrinks the occlusion query ring from 65536 to 32768 queries on every GPU, changes host page-size and guest-memory import code that x86-64 also runs; on GPUs that run task + mesh draws on the compute path beside native mesh shaders (AMD Navi 2x on Windows), a mesh program whose native pipeline the driver refuses now takes the compute path instead of being left out, so please include one such machine if the farm has it; and the PR adds a field to the lift's code-generation options whose key text is meant to stay the same on x86-64 (a build there should reuse its kept lifts, not lift again).@Kolkka only members of
BigBeanscan start the farm.One of them can approve this request by reacting 👍 to it or to this comment.This request was for0959a69, and the PR has changed since (249a250), so a 👍 no longer approves it. Comment@Beanstalkagain to ask for the new commit.@Beanstalk Please build this PR's head (
249a250b, onmain@22d0d200) and run it on the Tier 1 machines: x86-64 Linux (an AMD and an NVIDIA GPU if there are both), Windows, and the Steam Deck. On each: start the game with default settings, load the repository savekokiri-start, and play Kokiri Forest for a few minutes. Expect the title and menu, play with working input, and no device loss or crash. Please report each machine's average fps and frame time in Kokiri Forest, and the log linesvk: occlusion queries on,vk: mesh shaders:andoot: cloth:. This PR shrinks the occlusion query ring from 65536 to 32768 queries on every GPU, changes host page-size and guest-memory import code that x86-64 also runs; on GPUs that run task + mesh draws on the compute path beside native mesh shaders (AMD Navi 2x on Windows), a mesh program whose native pipeline the driver refuses now takes the compute path instead of being left out, so please include one such machine if the farm has it; on GPUs with native mesh shaders (NVIDIA, RDNA 3 and later, Intel Arc) the indirect mesh draws' arguments are now converted in fewer batches, so please note the log linevk: a frame: indirect mesh draws' argumentswith the fps; and the PR adds a field to the lift's code-generation options whose key text is meant to stay the same on x86-64 (a build there should reuse its kept lifts, not lift again).@Kolkka only members of
BigBeanscan start the farm. One of them can approve this request by reacting 👍 to it or to this comment.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.