arm64 run: the recompiled title boots to its intro; recompiler fixes, main merged in #115

Open
github-bot wants to merge 254 commits from github-bot/gh-115 into native/arm64-run AGit
Owner

@⁠thebcd69 on GitHub · 2026-11-26 17:15 UTC · original
thebcd69:arm64-recompile → native/arm64-run · +15960 −1481 · 131 files · 254 commits · open

What this is

The arm64 run (native/arm64-run, b11a2f2) brought up to main (3fd73fd) and taken further on an M5 Max: the title's exe and DLLs lifted to C with victory-recomp lift-split, built for arm64 (no Rosetta) and run with VICTORY_LIFT_DIR. It now boots, reads its packs through DirectStorage, translates its shaders ahead and presents the intro at 30 fps (the first frame drawn by the arm64 build). Each run stopped at a recompiler gap; the fixes are below, each with its own test.

Recompiler (crates/victory-recomp)

  • escapes <pe> [seeds]: direct targets that a linear sweep of each function finds outside every function (a thunk's target, a switch case that tail-calls), to feed back as seeds (lift-split <pe> <dir> 2000 <seeds>). 481 for the title's exe.
  • Jump-table sizes: the range check counts only when it tests the index's own value (value numbering through plain copies; a check of a value changed after it, of another register, or across a branch target no longer bounds the table); MSVC two-level switches are bounded by their byte table; a table ends where the function's next table starts. tablelist compares two builds: 208 of the exe's 3434 tables changed (f_53bf950 went from 7 to 8 cases, the trap that stopped a run).
  • A jump through a register is a table's only if the table's load and add reach it: virtual calls in tail position right after a switch got the switch's cases (8 in the exe) and trapped.
  • Tables of 64-bit addresses (jmp qword ptr [base + 8*idx], an interpreter's dispatch): one switch per function after its body.
  • Inner entries: a direct jump or call into the middle of another function gets an f_<rva> that enters the same body at its label.
  • Polling loops on a stack slot (mov eax, [rsp + 0x48] / cmp eax, 8 / jne: a waiter spinning on a counter its workers raise through its address) read the slot as a shared access; as a plain stack access clang had made the loop b .. pause lifts to yield with a memory clobber.

Runtime, HLE, native host

  • arm64 ABI: HLE functions are extern "efiapi", method tables go through fn_addr!, the x86-only dump and write-trap code is gated.
  • Native host: page tables are kept current in place from the pool's change journal instead of being rebuilt on every mapping change (the rebuilds stalled submissions, and a retired table could still be read by the GPU). Title-lock holds over 200 ms are logged.
  • From the earlier Rosetta work: pool spans across contiguous mappings, crash reports outside the title lock, fewer pool snapshots per submission, shaders translated ahead on threads of their own, indirect dispatch fixes, live keyboard, mouse and pads.

Shader translator

  • wave64 ds_bpermute_b32 stays inside its 32-lane half (RDNA2 ISA 10.4.4), so it needs no exchange between host waves and is no longer refused in divergent code.
  • Comparison immediate samplers clear the reduction bits; SDWA sign extension of 16-bit results; BC7 rotation is read only in modes 4 and 5.
  • After merging main: one v_mad_u32_u16 lowering (main's) and one s_pack_* lowering; both branches had added them.

Merging main

Conflicts: UCRT ilogb (main's NaN case, in extern "efiapi"), and a native.rs test (this branch accepts root constants in compute shaders, so type 0 is left out of main's refused-types list).

Tests

victory-recomp lib 13/13, victory-shader 235/235, victory-hle 233/235 (the GameInput live-controller and XPackage completed-installation tests fail the same way without these changes).

Building the lift

victory-recomp lift-split <exe> <dir> 2000 [seeds], each unit built with clang -arch arm64 -O2 -ffp-contract=off -mcpu=apple-m1 -mllvm -disable-machine-sink -mllvm -enable-misched=false -DRT_TSO and linked with -dynamiclib -Wl,-undefined,dynamic_lookup; the runtime is rt_host.c with -DRT_MULTI. Title-specific seeds are not in the tree (escapes produces them).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk

**@⁠thebcd69** on GitHub · 2026-11-26 17:15 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115) `thebcd69:arm64-recompile` → `native/arm64-run` · +15960 −1481 · 131 files · 254 commits · open ## What this is The arm64 run (`native/arm64-run`, b11a2f2) brought up to `main` (3fd73fd) and taken further on an M5 Max: the title's exe and DLLs lifted to C with `victory-recomp lift-split`, built for arm64 (no Rosetta) and run with `VICTORY_LIFT_DIR`. It now boots, reads its packs through DirectStorage, translates its shaders ahead and presents the intro at 30 fps (the first frame drawn by the arm64 build). Each run stopped at a recompiler gap; the fixes are below, each with its own test. ## Recompiler (`crates/victory-recomp`) - **`escapes <pe> [seeds]`**: direct targets that a linear sweep of each function finds outside every function (a thunk's target, a switch case that tail-calls), to feed back as seeds (`lift-split <pe> <dir> 2000 <seeds>`). 481 for the title's exe. - **Jump-table sizes**: the range check counts only when it tests the index's own value (value numbering through plain copies; a check of a value changed after it, of another register, or across a branch target no longer bounds the table); MSVC two-level switches are bounded by their byte table; a table ends where the function's next table starts. `tablelist` compares two builds: 208 of the exe's 3434 tables changed (f_53bf950 went from 7 to 8 cases, the trap that stopped a run). - **A jump through a register is a table's only if the table's load and add reach it**: virtual calls in tail position right after a switch got the switch's cases (8 in the exe) and trapped. - **Tables of 64-bit addresses** (`jmp qword ptr [base + 8*idx]`, an interpreter's dispatch): one switch per function after its body. - **Inner entries**: a direct jump or call into the middle of another function gets an `f_<rva>` that enters the same body at its label. - **Polling loops on a stack slot** (`mov eax, [rsp + 0x48]` / `cmp eax, 8` / `jne`: a waiter spinning on a counter its workers raise through its address) read the slot as a shared access; as a plain stack access clang had made the loop `b .`. `pause` lifts to `yield` with a memory clobber. ## Runtime, HLE, native host - arm64 ABI: HLE functions are `extern "efiapi"`, method tables go through `fn_addr!`, the x86-only dump and write-trap code is gated. - Native host: page tables are kept current in place from the pool's change journal instead of being rebuilt on every mapping change (the rebuilds stalled submissions, and a retired table could still be read by the GPU). Title-lock holds over 200 ms are logged. - From the earlier Rosetta work: pool spans across contiguous mappings, crash reports outside the title lock, fewer pool snapshots per submission, shaders translated ahead on threads of their own, indirect dispatch fixes, live keyboard, mouse and pads. ## Shader translator - wave64 `ds_bpermute_b32` stays inside its 32-lane half (RDNA2 ISA 10.4.4), so it needs no exchange between host waves and is no longer refused in divergent code. - Comparison immediate samplers clear the reduction bits; SDWA sign extension of 16-bit results; BC7 rotation is read only in modes 4 and 5. - After merging `main`: one `v_mad_u32_u16` lowering (main's) and one `s_pack_*` lowering; both branches had added them. ## Merging `main` Conflicts: UCRT `ilogb` (main's NaN case, in `extern "efiapi"`), and a `native.rs` test (this branch accepts root constants in compute shaders, so type 0 is left out of main's refused-types list). ## Tests victory-recomp lib 13/13, victory-shader 235/235, victory-hle 233/235 (the GameInput live-controller and XPackage completed-installation tests fail the same way without these changes). ## Building the lift `victory-recomp lift-split <exe> <dir> 2000 [seeds]`, each unit built with `clang -arch arm64 -O2 -ffp-contract=off -mcpu=apple-m1 -mllvm -disable-machine-sink -mllvm -enable-misched=false -DRT_TSO` and linked with `-dynamiclib -Wl,-undefined,dynamic_lookup`; the runtime is `rt_host.c` with `-DRT_MULTI`. Title-specific seeds are not in the tree (`escapes` produces them). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Pixel shaders that build a buffer descriptor around a computed address read title memory through the pool page table (aligned dword loads only). A PRIM_MASK reaching M0 through scalar masks anchors the POPS input mapping. Vertex user-data records below the header's first dword are rebased when that resolves an unbound address to a declared root table or view. Slots with no vertex pieces are skipped, and depth-only slots lower with a vertex shader alone. Guesses are listed in docs/native-host.md.
QPC, tick counts, CRT clock, GameInput, audio coprocessor timestamps, GPU timestamps and GetClockCalibration all derive from one process-wide Instant, and wall-clock APIs from it plus a UTC offset captured at start. VICTORY_CLOCK_SLOW scales every guest monotonic clock alike.
# Conflicts:
#	crates/victory-hle/src/host_posix/ucrt/time.rs
RegisterForCallbacks/UnregisterForCallbacks with documented duplicate and unknown semantics. Each ~10 ms pass, from CoreAudio or the silent clock, runs engine start, voice start (BytesRequired), mix, voice end, engine end, with no host lock held. StopEngine waits for the active pass; destroying a voice waits for its in-flight callbacks; an output enqueue failure raises OnCriticalError.
# Conflicts:
#	crates/victory-hle/src/modules/dstorage.rs
The reservation test freed an address and re-reserved it, which another test thread could claim in between; it now checks alignment, granule sizing and writability while it owns the mappings. The stdio test closed a descriptor twice, and the number can be reused at once by another test; it now checks the original stream lost its descriptor.
The zero-copy GPU pool table scanned every earlier mapping under its mutex on each map/unmap (~70 us per 64 KiB at 29k mappings). It now finds the first overlap with a B-tree lookup and visits only affected entries. HLE unmap and alias lookups avoid temporary lists, the first two aliases per physical page are stored inline, and macOS scatter maps runs contiguous in address and pool offset with one Mach call, falling back page by page on failure. 64 KiB map: 69.3 -> 1.1 us.
Drops the fleet workflows, which drive the upstream project's own infrastructure.
# Conflicts:
#	crates/victory-hle/src/host_posix.rs
Guessed render pipelines were converted without the host's root layout unless
a stage read title memory, so the converter made the user-data block a root
CBV pointer while the host wrote it inline: every guessed shader read its
descriptor table offsets from address 0. Render stages now get the layout,
except stages with immediate samplers, which RootLayout cannot declare yet.

The title also copies view records into its shader-visible heap with plain
stores; their host heap entries stayed empty. At each draw and dispatch the
first 16 entries of every bound table are mirrored again when their record
changed.

A normal run now draws the content target: the button prompts of the start
screen, placed by the real matrix.
# Conflicts:
#	crates/victory-hle/src/host_posix.rs
A stage with immediate samplers was converted without the host's root layout
(the converter refuses a layout that lacks them), so it still read its user
data through address 0. RootLayout now carries the decoded static samplers,
passed to the converter as the root signature's static samplers, and every
render stage gets the layout. The boot passes that sample the content target
now run: the presented image shows the start and setup menus.
The menus sample a 2048x2048 A8_UNORM atlas, RGBA32F and R16_UNORM textures,
which had no host format, so their views stayed empty. Runs with scripted
keys now reach the legal-notices menu.
The two tests share the process-wide clock and tick counters, so they now
run one at a time from a fresh clock. The 0 ms time-out polls run on a
1 s interval, so an oversleeping CI host can no longer find a 2 ms tick
already passed. Elapsed-time bounds allow for scheduler jitter, and the
missed-tick check uses 200 ms ticks so returning at once is still told
apart from waiting for the next tick.
The boot movie's Y/U/V planes were uploaded blank and only re-synced a
scanner round later (about 2 s by then), so its frames showed zero planes
(solid green) or an old set. Textures written after their first upload,
or blank at it, are now probed at each submission for 600 submissions.

Also: VICTORY_TRACE_CONTENT takes a target format filter and dumps 8-bit
textures; VICTORY_TRACE_PIPES logs guessed pipeline depth/stencil/blend.
Host work runs on title threads too: the native GPU host converts and
builds Metal pipelines at a draw. The title's own stack sizes (1 MiB and
less) overflowed there at the first guessed draw.
Text was drawn as boxes: the text pixel shaders output unmultiplied colour
with coverage in alpha, and guessed pipelines had no blending. The eight
CB_BLEND<n>_CONTROL registers sit at byte 0xd0 or 0x124 of the slot's
register image (pair 0), by its word 1, and are now decoded into the
guessed state. The legal-notices screen now renders correctly.

Also forget a released pipeline object's host pipelines, since a new
object can reuse its address, and dump register images with
VICTORY_DUMP_DESC_DIR.
An empty array expanded under set -u is an unbound-variable error in
bash 3.2, so every run without --headless stopped before the game
started.
A few glyphs written into the 2048x2048 UI atlas can miss all 8 sampled
pages, leaving them blank until the scanner's next round (seconds). Hot
textures up to 4 MiB that changed more than once are now compared whole;
textures written once after a blank upload are still sampled, which keeps
the frame rate.
# Conflicts:
#	README.md
NSEvent raises for keyCode on any other kind of event, so the first
mouse or app event aborted the windowed game.
Input (apps/victory/src/input.rs, on the main thread beside the window's
event loop):
- Keys go to GameInput as Windows virtual keys and set-1 scan codes; key
  events are not passed on to AppKit (no beep) unless Command is held, so
  Command-Q still quits.
- A click in the window captures the mouse (pointer hidden and held): its
  motion turns the right stick, left button the right trigger (fire),
  right button the left trigger (aim), middle the right stick's click. F1
  or losing focus lets it go. VICTORY_MOUSE_SPEED (points a second for a
  full stick, 1500).
- Pads from Apple's Game Controller framework (DualSense, Xbox and others)
  are host pads 0-3: cross/circle/square/triangle as A/B/X/Y, Options as
  Menu, Create and the touchpad's click as View; player lights set.
- The keyboard and mouse also drive the first host pad, so both work at
  once; extra keys where a PC player looks: Space X, left Shift A, R B,
  G Y, left Control the left stick's click, V the right stick's click.
- Key presses are logged (to replay a run's path through the menus).

Window title, once a second: frame rate, frame time, GPU time a frame
(from command buffers' GPU start and end), draws a frame, draws dropped,
frame number. VICTORY_SHOTS=<dir>,<seconds>: the last frame at a quarter
size as PPM, for runs nobody watches.

Tried with Bahadır's keyboard: the start screen, FINISH SETUP and LEGAL
NOTICES pass with Enter and the arrows, into the loading screens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Input: our window input (keys with scan codes, mouse, Game Controller
pads) stays in the loop; upstream's key table is taken (Tab Menu, V View,
Space and Enter A, Esc and Backspace B) with our extras (left Shift A,
R B, G Y, left Control the left stick's click), and its live keys still
reach the pad through the same keys() (its window hook is left unused).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
input(macos): add PS/2 scan codes, full keyboard/modifier mapping, and NSEvent tests
Memory the title reserves first and commits later was committed plainly,
where the GPU backend (which resolves title addresses by pool) cannot see
it. Now the parts no view shows and nothing committed yet get pools of
their own. Not reached yet in Grand Theft Auto VI's runs so far (n10 logs
no such commit); kept for the views that still say "not in a mapped pool".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
input(macos): wire GameController extendedGamepad into GameInput
macos: default run-native.sh to --console series-s on <=16 GB Macs
gpu(native): extend remirror_tables window from shader table metadata
- victory-metal: a pass that cannot be encoded no longer drops its command
  buffer (the queue-order wait was already encoded and the next buffer waited
  for its signal for good: the title's fence never moved and its watchdog
  crashed it 30 s later, at the loading screen's end). An indexed draw
  without an index buffer is left out without leaving the encoder open.
- victory-metal: a render pass with no targets (pixel shaders writing only
  UAVs) gets its size from the draws' viewports (else scissors); Metal made
  no encoder for it.
- ExecuteIndirect of dispatches (types 2 and 105, count not in a buffer) runs
  on the native host: Metal reads the group counts from the argument record.
- A buffer view the host cannot make clears its heap entry: the stale entry
  let the GPU write where its previous view pointed.
- Translator: v_permlane16_b32 / v_permlanex16_b32 (inside one 32-lane half,
  so one host wave), v_cvt_pknorm_u16_f32 / v_cvt_pknorm_i16_f32.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
gpu(tests): size native test pools for >=16 KiB pages under x86_64 Rosetta
loader(native): populate static TLS blocks in live threads for late-loaded DLLs
- Image stores and typed buffer stores of some channels (dmask / format
  count) write the enabled channels from their VGPRs and 0 to the rest.
- FSPX compute programs take root constants: a block runs from its record's
  user SGPR to the next parameter's, or to the last user SGPR (RSRC2).
- s_pack_ll/lh/hh_b32_b16, s_absdiff_i32, v_ldexp_f32 (two exact powers of
  two), v_mad_u32_u16 (op_sel halves).
- Crash diagnostics: an access violation logs every register, the bytes at
  those that look like title addresses, and whether a pool holds them and
  which heap buffer views cover them (victory_core::crash, set by the app).
- Logs (first 200 each) of the title's big reservations (VirtualAlloc,
  XMemVirtualAlloc) and of commits that no pool backs, to place the
  addresses of "not in a mapped pool".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
- NativeHost::execute leaves out a command whose arguments cannot be made
  (a root parameter never set, memory no pool holds) instead of refusing
  the whole submission: other queues waited on memory that submission's
  other work writes, and on its fence signals (n14: three queues held for
  30 s, then the title's watchdog).
- Buffer views of memory no pool held when the title wrote them (the
  title writes views before mapping their pages; 750+ per run) are made
  again when the pool table changes.
- FSPX compute root constants of slot 255 (no root parameter) are refused
  again: nothing is known to fill them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Conflicts: our window input (crate::input: keys with scan codes, mouse,
GameController pads, the window figures) stays in the event loop; upstream's
modifier_key helper is kept for its key_event (kept for its test). In
gameinput, the stand-in pad keeps the mouse merged onto the keyboard one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
metal: always set depth bias per draw so zero bias resets prior bias
shader: recognize bit-field extraction in pixel primitive masks
- Resource heaps reach HEAP_VIEWS entries (when the title's entries and
  the contract's fit) with null views at its last two, and carry a
  view-stride table (a dword per entry: element size, integer-format bits;
  0 for no buffer view), kept by `mirror` and bound as root SRV
  VIEW_STRIDES. Shaders taking buffer views at computed heap indices read
  it; without it their commands were left out ("root parameter 255 was
  never set", 40 a run) and the title's watchdog ended it 30 s later.
- Translator: the thread-group info SGPR (TG_SIZE: wave count, wave index
  over console waves), s_sext_i32_i8/i16.
- VICTORY_DUMP_THREADS=0 also dumps every thread at a write to address 0
  (the title's watchdog crashes that way).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
shader: lower v_permlane16_b32 and v_permlanex16_b32
n17's thread dump at the title's watchdog: the main thread waited on the
render subsystem, which waited on its worker threads, all four inside host
calls: a scene's first frame binds ~1,100 new pipelines, translated and
converted one by one under the host's lock (~10 a second at the end), for
30 s, past the watchdog.

- Pipelines' shaders are translated when the title creates them, on a
  pool of threads (VICTORY_PREFETCH=0 off, =<n> threads), and compute ones
  converted to Metal libraries too.
- Metal Shader Converter conversions are kept by their input (a memo), so
  the pipeline made later finds its library; those made ahead up to 1 GiB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
gpu(native): bound per-submission hot-texture probing in sync_dirty
On a 32-lane host (Options::wave32_host, the native Metal host) a wave64
compute program runs as two host waves per console wave, and what
reaches across the halves (ballots, lane reads, whole-wave reductions,
LDS shared without a barrier) meets at a group barrier. In a per-lane
branch or loop the two halves may not both arrive, so such a program
was refused.

Such programs, where the group is one console wave, are now made again
with the per-lane branches around the places where the halves are apart
taken by the whole wave, as the console's scalar unit takes them
(structure::structure_wide): the wave goes into an `if` where some
lane's EXEC bit is set, round a loop while some lane is, and EXEC stays
a guard on every vector instruction inside. Each such decision is the
console's: each host wave asks its lanes (WaveActiveAnyTrue, or AllTrue
for execz and vccz) and the halves exchange the answers through the
group-shared `xchg` array (lower/halves.rs, halves_decide), so both go
the same way and are together inside, where the existing exchanges and
LDS barriers then go, in loops too when every branch of the loop is
scalar or taken wave-wide (lower::together_blocks). The branches are
found from the blocks the lowering reports apart (lower::take_needs,
lower::branches_around: the mask branches those blocks depend on,
transitively; those to the program's end last) and added until no
block is apart (emit::widened).

A branch taken wave-wide is an Atom::Wave in the per-lane form, the
lane's own bit kept apart (Structured::lane_when), so that every
analysis that reads a branch as what a lane does sees the wave's
decision instead. EXEC joined at a loop header from a latch only scalar
code reads is now known along the back edge (Lanes::phi_args), which
such loops need once lanes outside EXEC go round. The halves form is
refused where a scalar branch they meet at tests a value the lanes may
hold differently (a join after a per-lane branch, or a first-lane read,
which is each half's own on this host: lower::scalar_parting), so that
no host wave waits at a barrier the other does not reach.

Programs that translated before are made byte for byte as before (the
walk runs only after a refusal). VICTORY_WAVE_WALK=0 on the native host
(Options::no_wave_walk) refuses them as before.

On the Wine route (D3DMetal, the same 32-lane limit), where our tree
runs wave64 programs as halves on a different lowering, the same walk
made 148 of the 153 wave64 programs bound in a recorded frame get a
Metal pipeline (115 before); the frame took 3.7 ms more GPU time with
the extra work drawn, and shadow blocks and missing culling were fixed.

Tests: emit/walk_tests.rs (six programs refused without the walk and
made in 32-lane waves with it; a program whose halves meet unchanged),
structure tests for the wave-wide branch and the loop header's EXEC,
and native/walk_tests.rs in victory-gpu, which runs the walked programs
on the GPU through Apple's converter against the console's results.

After f2f31d5 and 228be7c of our tree, re-applied by hand on the
wave32_host lowering.
shader: support computed buffer byte and halfword loads
Two reductions a branch chooses between that share their end (each arm
saves EXEC and reduces up to the read of lane 32, the join reads lane 0
and restores EXEC: cond ? WaveActiveMax(x) : WaveActiveMin(x)) leave no
block with a whole section, so the wave simulation does not follow them
and v_permlanex16_b32 is refused, or lowered on its own where the
console's section reads every lane. When a program does not translate,
or permutes lanes outside the sections the simulation follows, it is
translated once more with each such section in one block
(ir::whole_sections: the block that starts it takes the join's code and
exit, a copy where other ways lead there too; up to four rounds), and
that translation is taken if it succeeds. The SSA renaming is split out
of ir::build_bounded (ir::rename) so a changed program can be renamed.

On our Wine route, of the 19,106 containers of a frame capture,
a929109552ce1e84 (a compute program refused for v_permlanex16_b32) now
translates; the other refusals are lane-mask joins and lane masks read
as data, which this does not move. A test builds the two-arm program and
checks the sections are found whole after the join. Programs without
such a permute or refusal translate as before.

After darkworldhm/victory-fork-darkworldhm (ir::whole_sections).

(cherry picked from commit fdcc89332cf7af7c4f01a2beb2a57590ff83a000)
n19 died of a Metal "GPU Hang Error" at the scene's start (the other
buffers discarded as victims, their fence signals with them, then the
title's watchdog). Each submission's command buffer is labelled with its
command and draw counts and the compute shaders it runs, and a failed
buffer's report prints the label.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
hle: fix SRW wait race and order the native waits probe
A small kernel copies each indirect dispatch's three group counts into a
slot of its own and zeroes them when they cannot be a dispatch the title
meant (a count past 65535 or more than 2^22 groups); the dispatch reads the
slot. Counts read from memory that dropped work never wrote are a likely
cause of the GPU hang at the scene's start (n19).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Upstream's v_permlane16/x16 lowering (fi and bound_ctrl followed) replaces
ours; our console-lane marking for v_permlane stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Surface::read_last read the presented texture with 4-byte rows whatever
its format. Once the scene presents a half-float (RGBA16Float) texture,
Metal wrote twice the buffer, over the host heap where the title's own
objects live: their pointers became half-float texels (+-inf, the cleared
HDR target), and the title crashed a second or two after the scene's
start ("AGX: Texture read/write assertion failed: bytes_per_row >=
used_bytes_per_row" just before; n12, n13, n20, likely n18). Only runs that
read frames (VICTORY_SHOTS) were hit. Rows are now the texel's size, and
wider texels are clamped to 8 bits for the caller; unknown formats none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
metal: detach replaced and dropped heap allocations from MTLResidencySet
Indices 0 and 1 are the converter's descriptor heaps: a dispatch after the
kernel that reads a heap the host does not bind would have found the
kernel's buffers there. VICTORY_INDIRECT_DISPATCH=0 drops indirect
dispatches as before, for comparisons.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
This reverts commit 250a448739fcb5dd2b58e42dca146b924dc15c60, reversing
changes made to 027a7a6b02766736241a7c4baa9a559852e853a0.
This reverts commit 027a7a6b02766736241a7c4baa9a559852e853a0, reversing
changes made to b8242bf59654e9d6f623dc2f5d14bbd40ff76f8b.
This reverts commit b8242bf59654e9d6f623dc2f5d14bbd40ff76f8b, reversing
changes made to e05ff95bcec141c40c064bc76d9d3c5587cba5fe.
This reverts commit c0b54db942.
macos: honor Cargo target directories in setup and launcher
Native host: R8G8_UINT and R8G8_SNORM were mapped to each other's formats
g_ncpy, g_ncat and g_cpy_s took the whole source string's length before
limiting it to the count, so strncpy, strncat, strncpy_s and strncat_s
(and the wcs forms) scanned the source for a NUL past the count. A
counted source need not have one: a fixed-size field copied with its
size is the usual case. Read that way, a field that ends where a
mapping ends faults on the native host instead of copying.

Read at most the count (for _TRUNCATE, one unit more than fits, which
is how a truncation is told). The new test puts an unterminated source
right before a no-access page; without the fix it dies with SIGBUS.
Review follow-ups for the counted copies:

- strcpy_s, strncpy_s, strcat_s and strncat_s (and the wcs forms) read
  no more than the room left in the destination: that many units
  without a NUL already mean ERANGE, so a count past the room no longer
  scans to the count.
- An error empties the whole destination, as the CRT does: a failed
  strcat_s or strncat_s cleared the unit after the old string and left
  the old string visible.
- The test fills buffers with 0xEE and appends to nonempty strings, so
  it sees each terminator, that a full-count strncpy writes none, and
  that nothing past them is touched. It covers a count past the room
  with a source of four units before the guard page.
- docs/native-host.md notes the rule.
Metal ends a command buffer whose encodeWaitForEvent is not satisfied
within about 5 s (kIOGPUCommandBufferCallbackErrorTimeout, measured at
5.006 s on an M4 for waits of 5, 10 and 20 s). The buffer's work does not
run and its encoded signals are never delivered, so the title's fence
stays behind and the buffers queued after it fail the same way.

D3D12 lets ID3D12CommandQueue::Wait last until its signal arrives. The
native host encoded every queue Wait as a GPU event wait at once, so a
Wait whose signal came more than 5 s later (a later CPU Signal, or a
signal behind work held on the CPU) lost the queue's later work.

wait_queue now encodes the wait on the GPU only when a signal that
reaches the value has already been given to the GPU (tracked per fence).
Otherwise it holds the queue's later work on the CPU behind a FenceWait,
which the host thread's 1 ms pump releases once the fence gets there. A
wait for a value already reached encodes nothing. A CPU Signal that lowers
a fence below its tracked value drops the entry, so later waits hold on
the CPU.

Tests (native Metal, through the title's method tables):
- a_queue_wait_longer_than_metals_event_wait_limit_still_runs_the_work:
  the CPU signals after 6 s. It fails on main (three command buffers fail
  with the timeout and the work never runs) and passes with this change.
- a_queue_waits_for_another_queues_signal: a cross-queue wait whose
  signal is already queued still takes the GPU path and orders the work.

Refs #2: this is one way to reach a stuck fence and stopped presents. It
is not confirmed as the cause of the 53 s timeout.
ucrt: read no further than the count in strncpy, strncat and their _s forms
remquo stores the sign and the low bits (at least three) of the
integral quotient x / y. The host took them from (x - r) / y, which is
no exact integer once the quotient passes 2^53: remquo(7.32e218,
1.23e62) gave 7 where the low bits are 100, and 83,412 of 199,812
random finite pairs disagreed with the host libm.

Take them from |x| mod 8|y| instead, which fmod computes exactly. The
test checks the sign and low three bits against the host's remquo over
300,000 pairs across every exponent.
nexttowardf takes its target as a double (long double is double here)
so that a target between two floats still moves x one float toward
it. The host rounded the target to a float first, which can round it
to x itself: nexttowardf(1.0f, 1.0 + 1e-10) returned 1.0f instead of
the next float up, and nexttowardf(0.0f, 1e-300) returned 0.

Compare as doubles and step toward the infinity on the target's side.
m - remainder(m, |y|) overflows near DBL_MAX: remquo(DBL_MAX, 1e308)
stored 7 instead of 2. Divide each by |y| first. The test covers that
case, and native-host.md states the quotient-bit guarantee.
A finite float stepping past FLT_MAX to infinity sets ERANGE, also
toward an infinite target; an infinity in does not. The test checks
errno on overflow and opposite-signed zeros, and native-host.md notes
that long double is a 64-bit double on Windows x64.
shader: name the refusal of a sampler built from computed words
ucrt: step nexttowardf toward its double target
OMSetRenderTargets built the colour list with filter_map, so a target the
host could not make (an unrepresentable format, or an RTV naming a resource
with no host texture) vanished from the middle of the list and every later
target moved down one slot. Metal binds rp.color[i] to colorAttachments[i]
and the guessed pipeline is made from the same shortened formats, so
SV_TargetN wrote a surface an earlier slot owns.

Resolve every slot positionally and, if any colour slot has no host
texture, bind nothing, clear the recorded formats and refuse the draws that
follow until the title binds a set the host can make. A depth target that
cannot be made does not renumber colour slots and keeps its current
behaviour (no depth attachment).
ucrt: keep remquo's quotient bits when the quotient is huge
fgets(buf, 1, f) reads nothing and, since no end of file was met,
stores "" and returns buf (C 7.21.7.2; the host libc does the same).
The host returned NULL whenever no character was read. Return NULL
only when an end of file or error ends the read before any character.
The module sets ERANGE for an infinity from finite arguments, but the
float forms (expf, powf, coshf, hypotf, ldexpf and the rest made by the
unary and binary macros) checked the double result before rounding it
to a float. A float overflow is finite as a double, so expf(100) and
ldexpf(1, 200) returned infinity with errno untouched, while exp(1000)
set ERANGE.

Check the result after rounding it to the float it returns.
The test seeds a nonzero errno and checks that a finite result and an
infinity from an infinite argument leave it alone, so it tells a valid
infinity from an overflow. native-host.md scopes the rule to the
checked float wrappers and ldexpf; fdimf, scalbnf and scalblnf still
set no errno.
# Conflicts:
#	crates/victory-shader/src/emit/gfx_refusal_tests.rs
# Conflicts:
#	crates/victory-shader/src/emit/gfx_refusal_tests.rs
#	docs/native-host.md
ucrt: set ERANGE when a checked float wrapper or ldexpf overflows
A windowed run that got past the menus named one more texture format the
host could not make: DXGI 91 (B8G8R8A8_UNORM_SRGB), a 1024x512 sampled
texture. Views of it had no host texture, so the draws that sampled it
read nothing.

Add Format::Bgra8UnormSrgb with its 4-byte block, map DXGI 91 to it, and
give it Metal's BGRA8Unorm_sRGB.
ucrt: fgets with room for only the NUL returns an empty string
scalbn, scalbnf, scalbln, scalblnf and _scalb returned infinity on
overflow without setting errno, while ldexp, the same operation, set
ERANGE. Check them the same way (the float forms after rounding to a
float), through scalbn_checked and scalbnf_checked, which ldexp and
ldexpf now use too.

The test covers each, and that an in-range result, an infinity in and
an underflow to zero leave errno alone. native-host.md lists them with
ldexpf, notes that underflow sets no errno, and leaves only fdimf.
gpu(native): resolve buffer ranges that run over adjacent pool mappings
gpu(native): drop a draw or dispatch that cannot run, not its whole piece
shader: settle copy propagation when phis oscillate
gpu(native): preserve unselected planes in depth/stencil clears
shader: lower v_cvt_pknorm_u16_f32 and v_cvt_pknorm_i16_f32
loader(native): take the VICTORY_DUMP_THREADS=0 dump at an unhandled access violation too
gpu(native): keep colour attachment slots when a target has no host texture
The three floats 0x24, 0x20 and 0x1c bytes before the blend block of the
0x1c8 register image are taken as PA_SU_POLY_OFFSET_CLAMP, _FRONT_SCALE and
_FRONT_OFFSET (register order, as AMD's PAL writes them: slope scale in
1/16ths, D3D12's integer bias as a float). They become the guessed state's
depth bias when POLY_OFFSET_FRONT_ENABLE is set, which victory-metal already
passes to setDepthBias:slopeScale:clamp:. The order is a guess, marked in the
code and explained in native-host.md with how to check it.

Closes #18
The n26 windowed run of d5a3ca0 logged 3,000 buffer-view rejections
across 64 KiB boundaries. It reached a draw counter of 6656 before
the 900-second run limit.

Follow adjacent title mappings when their backing offsets are
consecutive in the same physical pool. Reject gaps, repeated pages
and different pools. The regression test maps three pages separately
and verifies both the resulting span and the rejected cases.

The pool tests, x86-64 macOS release build and asset policy check
pass. The three failures in the wider host tests also reproduce on
d5a3ca0. The game run used the pre-fix build.
shader: lower typed buffer stores of fewer than four channels
ucrt: set ERANGE when scalbn and its relatives overflow
gpu(native): give B8G8R8A8_UNORM_SRGB a host texture
gpu(native): avoid unsignalled Metal waits and preserve presentation order
gpu(native): read the guessed pipelines' polygon offset from the register image
__stdio_common_vs(w)printf had the two non-standard modes swapped. With
LEGACY_VSPRINTF_NULL_TERMINATION (_vsnprintf, _vsnwprintf) a text that
fills the buffer exactly is now returned whole without a NUL, and a
longer one is cut without a NUL (-1). With no option (ISO vswprintf,
_vswprintf_c_l in the CRT headers) a cut text now always ends in a NUL
(-1): swprintf(buf, 4, L"%d", 1234) used to leave the buffer unterminated.

No buffer with a count of 0, the sizing idiom, now returns the length in
every mode instead of -1 outside the standard one; no buffer with room is
EINVAL, as Microsoft's behavior summary for these functions says.
The hex path multiplied the mantissa by 2f64.powi(exponent). Below 2^-1022
that power is 0, so what printf's %a writes for small numbers read back
as 0 (0x1.0000000000000p-1000, 0x1p-1074); and for a zero mantissa with a
large exponent it made 0 * inf, a NaN then turned into an infinity with
ERANGE (0x0p2000). One scalbn scales exactly at both ends.
Microsoft's strtod returns 0 and sets ERANGE on an underflow, as on an overflow. Nonzero digits read as 0 (1e-400, strtof's 1e-50) now set it; zero digits and subnormals still do not. scanf's floats, which already set ERANGE on an overflow through the same parser, follow.
Without a precision, %a trimmed the trailing zeros of the mantissa as glibc does (0x1p+0). Microsoft's format specification gives a, A a default precision of 13, so the CRT writes 0x1.0000000000000p+0; a precision of 0 still drops the point unless # is given.
Root constants in a compute shader, SM 6.6 descriptor heap records (root types 5 and 6) and genuinely unknown root types all ended in "an FSPX resource of an unknown root type". Each now has its own message with the root type number, so a tester log counts the refusals by cause and tells which fix is needed.
Ten title shaders in the tester logs of issues #66 and #68 were first
refused on one of these decoded-but-unlowered opcodes.

Semantics from the AMD RDNA2 ISA reference guide (opcode tables):
- s_pack_ll/lh/hh_b32_b16 (SOP2 50-52): D = {S1 half, S0 half}
- s_bfm_b64 (SOP2 37): ((1 << S0[5:0]) - 1) << S1[5:0], in 64 bits
- s_bitreplicate_b64_b32 (SOP1 59): bit i of S0 to bits 2i and 2i+1
- v_mad_u32_u16 (VOP3 883): S0.u16 * S1.u16 + S2.u32, wrapping;
  op_sel bits 0/1 pick the high halves (table 21, opcodes usable with
  OPSEL). Bits 2/3 and source modifiers are refused, not guessed.
None of them writes SCC (ISA summary table; LLVM SOPInstructions.td
gives them no SCC def), which ir::writes_scc already agrees with.

Tests: hand-assembled pixel-shader programs (llvm-mc -mcpu=gfx1030) in
gfx_refusal_tests.rs that fail without the change, and Windows value
probes in semantics_tests.rs (count edges 32+ for s_bfm_b64, all op_sel
combinations and wrapping carries for v_mad_u32_u16).
The windowed n27 run of 4c255d6 reached prologue prestreaming and
then exited on an access violation. All 16 GPU address descriptions
were unavailable. The locked-title regression test reproduces that
missing information for a mapped address.

Share the crash metadata independently of the title lock. Obtain pool
and mirrored buffer-view information without waiting, and include
whichever table is available in the existing crash report. Remove a
view's metadata when its slot is cleared, replaced with a texture or
its descriptor heap is released.

The five focused tests, x86-64 macOS release build and asset policy
check pass. The wider GPU suite has the two failures reproduced in
the pre-fix n26 comparison. The game was run once on 4c255d6.
ir::writes_scc lists s_lshl1_add_u32..s_lshl4_add_u32 as writing SCC,
but their arm returned no carry, so SCC fell to the default
`result != 0`: s_lshl1_add_u32 1, 2 gave 4 with SCC 1 instead of 0.

RDNA2 ISA, section 12.1 (SOP2 46-49): D.u = (S0.u << N) + S1.u and
SCC = ((S0.u << N) + S1.u) >= 0x100000000; the RDNA3 manual writes the
sum out in 64 bits, so bits shifted out of S0 count. SCC is now the
32-bit add's carry (add_sub_carry) or S0 >> (32 - N) != 0. Mesa ACO
ignores the bits shifted out (it fuses s_lshl and s_add_u32 even when
SCC is read); the manual is followed here.

Tests: Windows value probes in semantics_tests.rs scalar_probes() for
the four opcodes over the edge pairs plus the cases 1<<1 + 2, 0x80000000
<< 1, 0x7FFFFFFF << 1 + 2, 0x3FFFFFFF << 2, 0x10000000 << 4,
0x0FFFFFFF << 4 + 0x10 and -1 << 3 + -1, with the inputs the old SCC
got wrong tagged and run by scalar_shift_adds_set_scc_from_the_overflow.
D3D12CreateRootSignatureDeserializer forwarded to the host's d3d12.dll,
which macOS does not have, so every call failed with E_NOTIMPL (29 at the
first world frame, from the FidelityFX upscaler). rootser now reads RTS0
blobs, versions 1.0 and 1.1, bare or inside a DXBC container, into an
ID3D12RootSignatureDeserializer that owns its description. Malformed
blobs give E_INVALIDARG and no object. A 1.1 blob is returned as the 1.0
description without its flags (a guess; a Windows test compares it with
the host's deserializer).
n28 reached prologue prestreaming before the title watchdog fired.
Symbolizing its host calls identified reset_x on the render subsystem
and other threads in execute_x and compute_table. Pool information
was unavailable in all 16 crash address lookups.

Check a heap's cached page table generation before copying the mapping
list. Resolve each root view by its one pool address instead of copying
and scanning the entire map. On a remap, rebuild the table from a fresh
snapshot and keep using the same pool-offset contract.

The regression tests reproduce two unnecessary snapshots for two root
lookups and two snapshots across two identical dispatches. They now
verify zero snapshots for the root lookups and one for the two
dispatches, with a rebuild and correct writes after remapping.

Thirteen focused tests, the x86-64 macOS release build and asset policy
check pass. The wider GPU suite still has the two baseline failures.
The effect on the watchdog has not been measured in the game.
ilogb went straight to macOS's libm, whose FP_ILOGBNAN equals its FP_ILOGB0, INT_MIN, so a NaN looked like a zero. The CRT's FP_ILOGBNAN is 0x7fffffff (corecrt_math.h), which Microsoft's ilogb reference returns for NaNs and infinities alike; macOS already gives INT_MAX for an infinity. ilogbf follows.
memmove_s handed its errors to memcpy_s, which zeroes the destination for a null source or a destination too small. Microsoft's memmove_s reference lists 'not modified' for all three error cases (null destination, null source, too small), unlike memcpy_s, so it now returns EINVAL or ERANGE itself and leaves the destination as it was. A count of 0 is still a success.
Their SCC was Val::Missing, so a shader that read it was refused with
"the carry of a scalar operation".

RDNA2 ISA reference guide, SOP2 opcodes 2 and 3 and SOPK opcode 15:
- s_add_i32: SCC = S0[31] == S1[31] && S0[31] != D[31]
- s_sub_i32: SCC = S0[31] != S1[31] && S0[31] != D[31]
- s_addk_i32: SCC = tmp[31] == SIMM16[15] && tmp[31] != D[31], tmp the
  old D and the constant sign-extended
computed as the sign of (a ^ r) & (b ^ r) for the adds and of
(a ^ b) & (a ^ r) for the subtraction.

Tests: a translation test (a select and a branch on each SCC) that is
refused without the change, and Windows value probes in
semantics_tests.rs: s_add_i32 and s_sub_i32 with their SCC over the edge
pairs plus 0x7FFFFFFF + 1, 0x80000000 + -1, -1 + 1, 0x80000000 - 1,
0 - 0x80000000 and 0 - 1, and s_addk_i32 with constants 0, 1, 0x7FFF,
0x8000 and 0xFFFF over the edge values.
The translator refused image_sample_lz_o, _l_o, _b_o, _c_o, _c_lz_o,
_d_o and image_gather4_c_lz(_o) by name: offsets were read for plain
image_sample only, and the bias and level positions assumed no offset.
The suffix now picks the address VGPRs in the RDNA2 ISA order (8.2.5:
offset, bias, z-compare, derivatives, coordinates, level or clamp), so
every sample takes `_o` (constant offsets in -8..7, not on cubes), and
the comparison gather at level 0 becomes textureGatherCmp. A comparison
gather of another channel than red stays refused (DXIL compares red; the
console's channel choice is a guess), as do comparisons at an explicit
level, with bias or gradients.
Conflicts: PoolTable::resolve keeps ours (bounds-checked, range walk) with upstream's comment and tests;
execute keeps upstream's cut/no-target/unset-root drops and still leaves out any other command that
fails to prepare (not the whole submission); the first-chance dump goes through report_at_fault and
also fires at the watchdog's write to address 0; typed buffer stores take upstream's form.
The unmapped-address test now expects the command to be left out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Our native host work (view strides, indirect dispatch, prefetch, translator ops, crash reports, pool
spans, input) and upstream main since 19a6b59, on the recompiled-title branch. Conflicts take the
newer code with the arm64 ABI: extern "efiapi" for every HLE function (the WASAPI and spatial audio
modules that came with main too), crate::title::call_win64 for calls into the title, and fn_addr! in
their method tables so the methods with floats by value (spatial SetPosition/SetVolume) are called
with their signature. The x86 thread dump, memory watch and write trap stay x86-only; the handle
traces' caller chain is empty on arm64. input and window build on both architectures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
The pool-offset page table of a heap was rebuilt whole whenever the pool table's generation moved:
a snapshot of every mapping under the pool lock (which the title's own map calls wait on, under
xmem's page-table lock), a new buffer, all under the title lock, for each command whose shader reads
memory, as soon as the streaming threads mapped a page in between. And only the last 8 tables were
kept: a superseded table was freed while queued GPU work still looked addresses up in it, so the GPU
could read and write title memory through stale or reused words (n24/n27/n28: frames at 0.8 fps in
the prologue prestream, DirectStorage waiting, the pool table locked at every crash read, f16 and
+-inf in pointer fields).

Now PoolTable keeps a journal of the ranges each change touched (bounded; a table further behind is
built again), and a heap's addr::Table is built whole once and then brought up to date in place:
only the 64 KiB pages that changed are rewritten, each entry in one 64-bit store, a new block before
level 1 points at it. A table that outgrows its buffer is copied into one twice the size and the old
one is kept. A page now shows a pool when all of it shows one run of the pool (mappings of 16 KiB
pieces in pool order included). A "page tables" line every 5 s says what was done; a pool with no
view pair left is warned about once.

The title lock records who holds it: holds and waits of 200 ms or more are logged with the caller.

Tests: the journal (changed pages, a released pool, a table too far behind), a kept table against
one built whole after unmaps, remaps, quarter pages and growth, and the GPU end to end following a
remap in place with no rebuild and no snapshot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
gpu: read root signature blobs without a host d3d12.dll
shader: name the root type of refused FSPX metadata records
shader: set the SCC of s_lshl<n>_add_u32 from the 64-bit overflow
shader: set the SCC of s_add_i32, s_sub_i32 and s_addk_i32 to the signed overflow
shader: lower s_pack_*_b32_b16, s_bfm_b64, s_bitreplicate_b64_b32 and v_mad_u32_u16
shader: translate sample and gather variants with offsets and comparisons
ucrt: ilogb of a NaN is FP_ILOGBNAN, INT_MAX, as in the CRT
Function discovery walks from each start and takes an in-range forward jmp
as internal, stopping at `jmp reg`; so a thunk's target (a1: rva 0x9f6400)
and a switch case that tail-calls (a2: rva 0x5b4c9f0, the case reached
through a jump table in .rdata) were left out, and the lifted image aborted
there ("rt: no fallback installed").

`discover::sweep` decodes each final extent linearly and keeps its direct
call / jcc / jmp targets and executable `lea rip` targets;
`escaping_targets` returns those that land in no function (to feed back as
seeds) and those that land in the middle of one (reported only).
`victory-recomp escapes <pe> [seeds]` prints the first to stdout, the
second to stderr. On game_scarlett_master: 481 seeds, 61 targets into the
middle of .pdata functions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
- ds_bpermute_b32 in a wave of 64 permutes lanes 0..31 and 32..63 apart
  (RDNA 2 ISA 10.4.4): the lane read is the address modulo 32 in the
  reading lane's own half. It was lowered as a read across the whole
  console wave plus a 64-lane ballot, both exchange sites on a 32-lane
  host, so in divergent code it was refused ("cross-lane operation between
  host waves in divergent code", 34 programs in n28 with the others of
  that reason), and where the address wrapped past 31 it read the other
  half. It is now the host wave's own read and ballot. After
  VIctory-macOS 0665a0e8 (QB) and ka1qux f9a5034 (its test checked all 64
  lanes against RDNA 2 hardware). Tests: the permute lowers with no
  barrier and no exchange, also under an EXEC branch.
- An immediate sampler used with a comparison sample clears the reduction
  bits (0x180) before setting the comparison one (0x80): a minimum sampler
  (0x100) became a maximum one (0x180). After ka1qux 93b9b2f, port of
  Marvisak/VIctory #2983 (RVZO6).
- SDWA destination WORD_0 with dst_unused 1 (sext) copies bit 15 upward:
  a 16-bit -1 came out as 0x0000ffff. After fxceless 58de9bf (upstream
  VIctory #3124).
- BC7: the 2-bit rotation field exists in modes 4 and 5 only; in the other
  modes those bits are other fields, and reading them swapped a channel
  with alpha (wrong colours, a shift past the width in modes 0, 1, 3).
  After ka1qux 765d9fa (upstream VIctory pull request #3111). Test.

The shader translator changed: its cache keys move with the build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
ucrt: a failed memmove_s leaves the destination unmodified
ucrt: print %a with the CRT's default precision of 13
ucrt: follow the CRT's buffer rules for legacy and ISO vsprintf
ucrt: scale hexadecimal floats with scalbn in strtod
ucrt: set ERANGE when strtod underflows to zero
a3 trapped 25 s in ("jump table index out of range", f_53bf950): the table
at rva 0x67694f4 has 8 cases, and the size came from `cmp r8d, 7` / `jae`,
after which the index is `add r8d, 2` and a branch target joins. The size
was taken from the last compare-and-ja within 40 instructions on any
register a move connected to the index, whatever happened in between.

Now `index_bound` reads forward to the table load with value numbers: a
plain copy (`mov eax, r13d`, `movzx r10d, dl`, `movsxd rax, ecx`,
`mov r8d, r8d`, `cdqe`) passes a value on, any other write (and a call, for
the registers the Windows x64 convention gives the callee) makes a new one,
a compare followed by ja/jae bounds the value it tests (the least of its
checks), and a branch target forgets everything before it. The load's
index is bounded by its value's check, or, for MSVC's two-level switch
(`movzx eax, byte [base+idx+bytes]`, then `mov ecx, [base+4*rax+table]`),
by the largest of the byte table's checked entries plus one. A table also
ends where the function's next table starts (tables sit side by side in
.rdata, MSVC's byte table right after its offsets); up to there an entry
in other code is a tail-call case, as with a check.

Over the exe's 3434 tables (`victory-recomp tablelist <pe> [seeds]`
prints them, to compare builds): 208 change. 167 unchecked tables no
longer run on into the next table's entries (21 -> 5 cases and the like);
10 MSVC switches go from 3-56 cases to their 2-47 real ones (the rest were
bytes of the byte table read as offsets, one as rva 0x10100); 28 checks of
another or a changed value no longer bound (2 of them had read one entry
of the next table; f_53bf950's two tables go from 7 to 8 cases); 3 tables
are newly bounded by the check of a copy made ahead of it (as at 0x22e39e3,
where the looser outer check would give 41 cases running into other
functions). Tests for each case.

Functions entered in the middle: a direct jump, call or executable
`lea rip` from one lifted function into the middle of another one (not its
own chained parts) went to the dispatcher, which has no function there.
Each such address that is an instruction of a function without landing
pads is now an entry of its own, `f_<rva>`: the same body after the
prologue, `goto` its label (`FuncIn::entries`, `inner_entries`); one that
is no instruction start gets a function that traps, so the table always
links. The exe has one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
a4 got past a3's trap, showed the intro (the first frame drawn by the
arm64 build), presented black frames from then on and read nothing more
from disk: title-main sat in 762 of 762 samples on one instruction of
f_9dcac0, `b .`. The guest code there (rva 0x9dd0d7):

    lock inc dword ptr [rax]          ; one more job handed out
  spin:
    mov eax, dword ptr [rsp + 0x48]   ; the counter the workers raise
    cmp eax, 8
    jne spin

The counter lives on the waiter's stack and the workers write it through
the address it handed them. Stack accesses are lifted as thread-local
(plain), so clang took the read as loop-invariant, the loop as endless,
and emitted a branch to itself.

`spin_reads`: in a polling loop (a backward branch over at most 16
instructions that only load, compare, test and branch: no call, no store,
no register arithmetic, so nothing of its own changes between turns) the
reads of fixed stack slots are emitted as shared accesses (acquire under
RT_TSO), which clang must repeat and which order what follows the exit.
In the exe: 50 such reads in 27 units. And `pause`, a spin-wait hint, is
lifted as ARM's `yield` with a memory clobber, so a waiting loop with it
reads memory again on every turn whatever it reads (182 units have one).
Tests: the spin above, a loop that writes its slot, one that calls, a
search loop that counts, `pause`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Upstream main since af380ca: #84 (s_pack_*_b32_b16, s_bfm_b64,
s_bitreplicate_b64_b32, v_mad_u32_u16), #86 and #93 (SCC of
s_lshl<n>_add_u32 and of s_add/s_sub/s_addk_i32), #92 (sample and gather
variants with offsets and comparisons), #83 (root signature blobs read
without a host d3d12.dll), #85 (FSPX root types refused by name), and the
UCRT fixes #70 #71 #72 #73 #96 #97 (vsprintf buffer rules, printf hex
precision, strtod hex scale and underflow, memmove_s, ilogb of a NaN).

Conflicts: ucrt/math.rs `ilogb` takes main's NaN case in the arm64
branch's `extern "efiapi"`. native.rs: this branch takes root constants in
compute shaders too (the block runs to the next parameter's first SGPR),
so main's new test of refused root types leaves type 0 out and keeps this
branch's check that root constants are a root parameter.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
The arm64 run and main (#84) each added both; the run's arms came first,
so main's v_mad_u32_u16 (which refuses op_sel on the 32-bit addend and
integer modifiers, as its test expects) was never reached. Main's
v_mad_u32_u16 stays, and the run's s_pack lowering (the same as main's).
victory-shader: 235 passed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
a5 (the spin fix in) read on from disk past a4's stop and then aborted:
`rt: unresolved guest target 0x143de57f7 (inside an image, not a lifted
function start)`. f_3de2550 is a bytecode interpreter: `lea r12, [rip +
0x6553900]` once at its top, then `imul eax, edi, 0x3315` / `movzx ebx, ax`
/ `jmp qword ptr [r12 + 8*rbx]`, through 530 absolute addresses of its
handlers (relocated with the image). A jump through memory went to the
dispatcher, which has no function at a handler.

`find_jump_tables_ext` now takes `jmp qword ptr [base + 8*idx]` whose base
is an `lea base, [rip + table]` of the function (the last one before the
jump, else the first after it: the interpreter sets r12 once) as a table of
64-bit addresses (`Entry::Abs64`, beside `Rel32` and `Rva32`), sized as the
others without a check: up to the function's next table, else while the
entries land in the function. The lifter sends such a jump to one switch per
function after its body (`jt = <address>; goto JT;`, `jt` declared with the
prologue), whose default goes to the dispatcher as before; a function with
none keeps its old text byte for byte (so a relift rebuilds only the units
that changed). In the exe: three such jumps (the interpreter's two, and
0x5141259), 545 and 42 cases, every one in the function an instruction
start. Tests: the recovery, and the switch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
a6 trapped ("jump table index out of range", f_1ffa540): the function's
switch is `movsxd rax, [r8 + 4*rax]` / `add rax, r8` / `jmp rax`, and one of
its cases is a virtual call in tail position, `mov rax, [rcx]` /
`mov rax, [rax + 0x78]` / `jmp rax`. The table finder took any `jmp reg`
with a scaled load and an add of the base into the jump's register within
40 instructions before it for a switch, so the virtual call got the
switch's five cases, and its real target trapped.

`feeds_jump`: the load writes the offset, an `add off, base` (the jump
takes off) or `add base, off` (the jump takes the base) follows, and on the
way from the load to the jump nothing else writes the offset and the base
(before the add) or the target (after it), no unconditional jump, indirect
jump, return or interrupt breaks the flow, and no branch target (the jump
included) joins another path. In the exe this takes the table from eight
jumps, all virtual calls in tail position behind a switch (0x11e405d,
0x11e4096, 0x11e40ae, 0x11e40d4 behind the one at 0x11e4047, 0x1ffa572,
0x4c497d, 0x2e800c9, 0x43833c1), which now go to the dispatcher; no real
switch loses its table. Test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:21:11 +00:00
a7 aborted in bink2scarlett.dll: `rt: unresolved guest target ... rva
0x1751f`, a case of the switch at 0x1751d that the last change had taken
the table from. Bink (MSVC) loads the offset over its base register and
sets the base again in another one for the add:

    movzx ecx, byte ptr [rdx + rcx + 0x17a74]
    mov   edx, dword ptr [rdx + 4*rcx + 0x17a5c]   ; offset over the base
    lea   rcx, [rip - 0x1751a]                    ; __ImageBase again
    add   rdx, rcx
    jmp   rdx

`feeds_jump` now keeps the registers that hold the base: the load's base
register (unless the load overwrites it) and any one an `lea` of the same
address sets on the way; a write to one takes it out. The add must take one
of them. Over the 17 images, against the table recovery before
`feeds_jump`, only the eight virtual calls in tail position in the exe lose
their tables; Bink's switch is back (6 cases). Test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BotUDcRjHo3zJ1HWdpX4mk
a8 got through the loading screens and aborted at rva 0x51413db, a handler
of the interpreter at 0x5141100. It has two opcode tables, 0x6681790 (set
just before the dispatch) and 0x6681640 (set at 0x51415f8, which jumps to
the dispatch past the first `lea`), and one `jmp qword ptr [rdx + 8*rax]`.
The dispatch took only the `lea` before it.

Every rip-relative `lea` of the base register in the function now names a
table the jump may take; each is sized as before (the first ends where the
second starts), and `tables_for` gives the jump the cases of all of them.
A case can never misroute (the switch compares the address the jump read),
so a table of an unrelated `lea` costs only labels. In the exe the
dispatch at 0x5141259 goes from 42 to 84 cases, and 0x301360f gets one (16
cases) where it had none. Test.

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

@⁠LakshanSivakumar on GitHub · 2026-11-26 18:57 UTC · original · requested changes

Thanks, getting the intro drawn by the arm64 build is a big step. This branch is now 137 commits behind main and conflicts with it, so I can't test it as it stands. Could you merge main again? While you're at it:

  • The page-table change (kept current in place from the pool's change journal) touches the native host's core path for everyone, not only arm64. If it can go in as its own PR with a test that shows a retired table is no longer read, it will be much easier to review and land first.
  • The description says victory-hle is 233/235 with the GameInput and XPackage tests failing "the same way without these changes". On main those pass on macOS x86_64 here, so please check them again after the merge.

Splitting the recompiler (victory-recomp and its fixtures) from the runtime/HLE/host changes would also help a lot.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 18:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115#pullrequestreview-6079238390) · **requested changes** Thanks, getting the intro drawn by the arm64 build is a big step. This branch is now 137 commits behind main and conflicts with it, so I can't test it as it stands. Could you merge main again? While you're at it: - The page-table change (kept current in place from the pool's change journal) touches the native host's core path for everyone, not only arm64. If it can go in as its own PR with a test that shows a retired table is no longer read, it will be much easier to review and land first. - The description says victory-hle is 233/235 with the GameInput and XPackage tests failing "the same way without these changes". On main those pass on macOS x86_64 here, so please check them again after the merge. Splitting the recompiler (victory-recomp and its fixtures) from the runtime/HLE/host changes would also help a lot.
Author
Owner

@⁠AnastasisKon on GitHub · 2026-11-27 09:36 UTC · original

Answers to the review: (1) the texture view is created eagerly per typed/structured entry in write_typed_buffer (gfx.rs), but zero-copy — it shares the pool MTLBuffer's pages and is not added to the residency set, so GPU-memory cost is one small MTLTexture object per entry, not per-entry pages; count/time/footprint measurement needs a Mac run, which I'll do before merge. Lazy creation would need the translator to mark format-accessed entries and an entry rewrite before bind — possible follow-up, not done here. (2) A view whose offset is not a multiple of minimumTextureBufferAlignmentForPixelFormat(pf).max(elem_bytes) falls back to a plain buffer entry (no textureViewID); nothing crashes, the store is lost as before. (3) The view's texture_buffer format carries only lane width; SINT→UINT there is deliberate (same 32-bit lanes). The converter takes the integer kind from the DXIL type (the GFX10 format field, buffer_format → Numeric), not from the view. (4) Scanned the diff: no converter listings or application content in the repo or comments; test descriptors are synthetic.

**@⁠AnastasisKon** on GitHub · 2026-11-27 09:36 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115#issuecomment-7214875464) Answers to the review: (1) the texture view is created eagerly per typed/structured entry in write_typed_buffer (gfx.rs), but zero-copy — it shares the pool MTLBuffer's pages and is not added to the residency set, so GPU-memory cost is one small MTLTexture object per entry, not per-entry pages; count/time/footprint measurement needs a Mac run, which I'll do before merge. Lazy creation would need the translator to mark format-accessed entries and an entry rewrite before bind — possible follow-up, not done here. (2) A view whose offset is not a multiple of minimumTextureBufferAlignmentForPixelFormat(pf).max(elem_bytes) falls back to a plain buffer entry (no textureViewID); nothing crashes, the store is lost as before. (3) The view's texture_buffer format carries only lane width; SINT→UINT there is deliberate (same 32-bit lanes). The converter takes the integer kind from the DXIL type (the GFX10 format field, buffer_format → Numeric), not from the view. (4) Scanned the diff: no converter listings or application content in the repo or comments; test descriptors are synthetic.
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 10:32 UTC · original

This comment is on #115, but its text answers my review of #278 (typed and structured buffer views). Please post it on #278, and note that #278 belongs to Sheffy007: if you are not its author, please say that these are your reading and not the author's.

It is also not the measurement I asked for there. "I'll measure before merge" is not a count of the entries that get a texture in a world run, the time to mirror, and the process footprint before and after.

For #115 itself my questions from yesterday are still open: merge main again, split the page-table change into its own pull request, check the victory-hle tests again after the merge, and split the recompiler from the runtime.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 10:32 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115#issuecomment-7216000124) This comment is on #115, but its text answers my review of #278 (typed and structured buffer views). Please post it on #278, and note that #278 belongs to Sheffy007: if you are not its author, please say that these are your reading and not the author's. It is also not the measurement I asked for there. "I'll measure before merge" is not a count of the entries that get a texture in a world run, the time to mirror, and the process footprint before and after. For #115 itself my questions from yesterday are still open: merge main again, split the page-table change into its own pull request, check the victory-hle tests again after the merge, and split the recompiler from the runtime.
Author
Owner

@⁠Hayyan612 on GitHub · 2026-11-27 13:47 UTC · original

Hi @⁠thebcd69, a note on the review's first point, in case it saves you work: since that review, main fixed the retired-table read itself in 1c6bee8f ("a page table lives until the GPU ran the work submitted with it": tables are backend-owned buffers that submissions keep alive). So what's left to split out of this PR is the in-place update from the pool's change journal and the title-lock hold logging, which is the performance part.

If it helps with the merge of main (it conflicts in about 30 files now), I'm happy to help; I'd only start if you're OK with that, so we don't collide with your own update.

**@⁠Hayyan612** on GitHub · 2026-11-27 13:47 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115#issuecomment-7219954850) Hi @⁠thebcd69, a note on the review's first point, in case it saves you work: since that review, main fixed the retired-table read itself in 1c6bee8f ("a page table lives until the GPU ran the work submitted with it": tables are backend-owned buffers that submissions keep alive). So what's left to split out of this PR is the in-place update from the pool's change journal and the title-lock hold logging, which is the performance part. If it helps with the merge of main (it conflicts in about 30 files now), I'm happy to help; I'd only start if you're OK with that, so we don't collide with your own update.
Author
Owner

@⁠Hayyan612 on GitHub · 2026-11-27 20:38 UTC · original

@⁠thebcd69, I ran FEX-Emu's x86-64 instruction tests (unittests/ASM, MIT, checked out outside the repo) through victory-recomp at 4aae3061: each test is assembled, lifted, built for arm64 and its registers compared with the values FEX expects, so no Rosetta is involved. 1,211 of 1,796 eligible tests pass (x87/MMX/3DNow! left out).

Fixes it led to, each with a kat.rs test that fails without it (branch: https://github.com/Hayyan612/Native-Victory-macOS/commits/recomp/fex-fixes, on top of 4aae3061):

  • 32-bit cmpxchg wrote EAX (zero-extending RAX) when the compare succeeded, and a failed register form rewrote its destination; x86 writes the accumulator only on a miss. Rosetta 2 does both writes, which is why diff_bits/diff_forms agreed with the lifter: they now compare operand-size values, and diff_forms waives Cmpxchg_rm32_r32 with the reason.
  • SSE4a insertq/extrq kept the destination's high qword; FEX's SSE4a tests (run on AMD hosts) expect it cleared.
  • MXCSR: ldmxcsr was ignored and stmxcsr always gave 0x1f80. Now RC and FTZ/DAZ go to FPCR per thread, cvt* and vround*/vcvtps2ph with immediate bit 2 round through an frintx asm clang cannot fold (with __builtin_rint it folded constants and turned rint(-x) into -rint(x)), and a function containing ldmxcsr gets #pragma STDC FENV_ACCESS ON (without it clang moved FP work above the rt_ldmxcsr call). Limits are written in rt_host.c.
  • Test code: entries was missing from the FuncIn literals in tests/common/difftest.rs and tests/diff_forms.rs (the tests did not compile), and diff_forms' NaN canonicalisation computed 32 - w for 64-bit lanes (an overflow panic in debug builds).

With these, diff, diff_bits, diff_legacy, diff_vex, diff_forms (0 mismatches), kat and litmus pass here; e2e needs the MinGW toolchain I don't have installed.

Gaps left (tools/fex-asm/FINDINGS.md): a locked read-modify-write whose access crosses 16 bytes raises SIGBUS (no fallback), AF is not computed, loope/loopne never end, 16-bit operand-size stack ops push 8 bytes. The runner is tools/fex-asm/run.py (Python, so its own commit: not on the policy allowlist). Also seen at 4aae3061, not touched: the Windows clippy gate stops on image.rs:144, lib.rs:242 and analyze.rs:1335.

Happy to open a PR into your branch with any of this.

**@⁠Hayyan612** on GitHub · 2026-11-27 20:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/115#issuecomment-7227693163) @⁠thebcd69, I ran FEX-Emu's x86-64 instruction tests (`unittests/ASM`, MIT, checked out outside the repo) through `victory-recomp` at `4aae3061`: each test is assembled, lifted, built for arm64 and its registers compared with the values FEX expects, so no Rosetta is involved. **1,211 of 1,796 eligible tests pass** (x87/MMX/3DNow! left out). Fixes it led to, each with a `kat.rs` test that fails without it (branch: https://github.com/Hayyan612/Native-Victory-macOS/commits/recomp/fex-fixes, on top of `4aae3061`): - **32-bit `cmpxchg`** wrote EAX (zero-extending RAX) when the compare succeeded, and a failed register form rewrote its destination; x86 writes the accumulator only on a miss. Rosetta 2 does both writes, which is why `diff_bits`/`diff_forms` agreed with the lifter: they now compare operand-size values, and `diff_forms` waives `Cmpxchg_rm32_r32` with the reason. - **SSE4a `insertq`/`extrq`** kept the destination's high qword; FEX's SSE4a tests (run on AMD hosts) expect it cleared. - **MXCSR:** `ldmxcsr` was ignored and `stmxcsr` always gave `0x1f80`. Now RC and FTZ/DAZ go to FPCR per thread, `cvt*` and `vround*`/`vcvtps2ph` with immediate bit 2 round through an `frintx` asm clang cannot fold (with `__builtin_rint` it folded constants and turned `rint(-x)` into `-rint(x)`), and a function containing `ldmxcsr` gets `#pragma STDC FENV_ACCESS ON` (without it clang moved FP work above the `rt_ldmxcsr` call). Limits are written in `rt_host.c`. - **Test code:** `entries` was missing from the `FuncIn` literals in `tests/common/difftest.rs` and `tests/diff_forms.rs` (the tests did not compile), and `diff_forms`' NaN canonicalisation computed `32 - w` for 64-bit lanes (an overflow panic in debug builds). With these, `diff`, `diff_bits`, `diff_legacy`, `diff_vex`, `diff_forms` (0 mismatches), `kat` and `litmus` pass here; `e2e` needs the MinGW toolchain I don't have installed. Gaps left (`tools/fex-asm/FINDINGS.md`): a locked read-modify-write whose access crosses 16 bytes raises SIGBUS (no fallback), AF is not computed, `loope`/`loopne` never end, 16-bit operand-size stack ops push 8 bytes. The runner is `tools/fex-asm/run.py` (Python, so its own commit: not on the policy allowlist). Also seen at `4aae3061`, not touched: the Windows clippy gate stops on `image.rs:144`, `lib.rs:242` and `analyze.rs:1335`. Happy to open a PR into your branch with any of this.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/115/head:github-bot/gh-115'
git switch 'github-bot/gh-115'

Merge

Merge the changes and update on Forgejo.
git switch 'native/arm64-run'
git merge --no-ff 'github-bot/gh-115'
git switch 'github-bot/gh-115'
git rebase 'native/arm64-run'
git switch 'native/arm64-run'
git merge --ff-only 'github-bot/gh-115'
git switch 'github-bot/gh-115'
git rebase 'native/arm64-run'
git switch 'native/arm64-run'
git merge --no-ff 'github-bot/gh-115'
git switch 'native/arm64-run'
git merge --squash 'github-bot/gh-115'
git switch 'native/arm64-run'
git merge --ff-only 'github-bot/gh-115'
git switch 'native/arm64-run'
git merge 'github-bot/gh-115'
git push origin 'native/arm64-run'
This discussion has been locked. Commenting is limited to contributors.
No description provided.