Ports from RYUKI-7900XT and Scarlett: root-view reach, d16 image bits, NaN guard, early depth, strict spills, alias source #329

Open
github-bot wants to merge 10 commits from github-bot/gh-329 into main AGit
Owner

@⁠GiovanniFadanelli on GitHub · 2026-11-26 17:21 UTC · original
GiovanniFadanelli:port/ryuki-shader-fixes → main · +895 −36 · 14 files · 10 commits · open

Summary

Six fixes from other forks, ported onto main (c9c932c). The original authors stay on the ported commits. Five of the six have an off switch, and the four shader switches are part of the shader-cache key. TRANSLATOR_VERSION goes 1 → 2, so every program is translated again on the first run.

# Change Switch, default Source
1 A root view's window reaches the memory the title committed after its 4 MiB cell, instead of the cell alone (a device removal in the intro, RX 7900 XT, DRED) VICTORY_ROOT_WINDOW_MB, 32 (4 = the cell alone, as before) ryuki, YukiRyuu/RYUKI-7900XT
1b That reach (VirtualQuery) is cached for one second VICTORY_ROOT_REACH_MS, 1000 (0 = asked every time) ryuki
1c Window lookups that may take any window run under the read lock; the write lock only makes a window none ryuki
2 d16 image loads and gathers through an integer view keep its 16 bits instead of converting them as a float (0 or NaN before) VICTORY_D16_BITS, on (=0 as before) Op-lite/victory-scarlett via RYUKI-7900XT f6dc189
3 Float colour exports of pixel programs: NaN → 0, ±inf → ±65504 VICTORY_NAN_GUARD, on Neptune 25fbf69 via Scarlett
4 Pixel programs with DB_SHADER_CONTROL bit 12 and no depth/stencil/coverage export declare ForceEarlyDepthStencil VICTORY_EARLY_DEPTH, on myokex c3723f3 via Scarlett
5 Spilled SGPRs are followed only through plain lane moves inside the wave; s_bfm_b32 with 32-bit literals is resolved like inline constants VICTORY_SPILL_STRICT, on (the s_bfm part has no switch) cool_fox 8cc31ab via Scarlett
6 An aliased view is copied again when its card-written source changes within a list none fxceless/victory-fork 19a45d1 via Scarlett and RYUKI-7900XT

Not ported: Scarlett's block-scoped restored_lanes and NAN_GUARD_STORES.

Overlap with open work

  • #114 (open) changes integer_view for d16 buffer accesses through views in tables. #2 here touches only the image load/gather path (the legacyF32ToF16 "shortcut" in lower.rs). 9a6c829 on main already covers buffer loads and stores. These are different functions, with no textual conflict expected.
  • #184 (open) also bumps TRANSLATOR_VERSION 1 → 2. Whichever merges second should go to 3.
  • #268 / #308 (open) touch ir::build unspill and spill::build. #5 here changes only resource.rs's tracer.

Tests

Each switch has a test that fails with the switch off and passes by default (Windows 11, RX 9070 XT, release build):

Test Off Result off → on
shadow::window_tests::a_root_view_window_covers_the_memory_committed_after_its_cell VICTORY_ROOT_WINDOW_MB=4 left: (…, 4194304) right: (…, 12582912) → ok
shadow::window_tests::a_root_view_reach_is_used_again_within_its_time VICTORY_ROOT_REACH_MS=0 left: (…, 4194304) right: (…, 12582912) → ok
emit::picture_fix_tests::a_d16_image_load_keeps_an_integer_views_bits VICTORY_D16_BITS=0 "the d16 load's integer bits are converted as a float" → ok
emit::picture_fix_tests::a_float_colour_export_turns_nan_and_infinity_into_numbers VICTORY_NAN_GUARD=0 "no NaN guard on the colour export" → ok
emit::early_depth_tests::a_pixel_program_tested_before_it_runs_declares_early_depth (ported) VICTORY_EARLY_DEPTH=0 "the early-depth flag changed nothing" → ok
resource::tests::spilled_sgprs_are_not_followed_through_lanes_past_the_wave VICTORY_SPILL_STRICT=0 "followed through lane 40 of a wave32: Ok([…])" → ok
resource::tests::a_bit_mask_from_a_literal_width_is_a_constant main's copy_source left: Value(Value(0)) right: Const(4294963200) → ok

The DXIL tests read dxc -dumpbin text and are skipped when dxc is missing. dump_dxil now writes one temp file per call, because two dumps on parallel test threads were writing the same file.

No test for 1c (read lock) or 6 (alias source). 1c changes only the locking; the existing window tests pass. 6 needs a HostList on a device, which the unit tests don't build.

Crate suites (Windows 11, release, this branch vs main c9c932c on the same machine)

  • cargo test -p victory-shader --release --lib: 306 passed, 0 failed, 4 ignored, with one test skipped: emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index. It ends the test process with STATUS_ACCESS_VIOLATION, even when run alone, and it does the same on main.
  • cargo test -p victory-gpu --release --lib: 385 passed, 0 failed, 34 ignored on the first run. A later full run had one failure, watch::tests::a_block_just_written_rests, which passes 5/5 alone on both this branch and main. main had a similar one-off failure in watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view (assertion failed: published(two, two + BLOCK)), which also passes 5/5 alone. These are timing-dependent watch tests, not something these commits touch.
  • descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in and watch::many_askers_tests::holes_are_known_until_the_runtime_tells, which fail on our Proton build, pass on Windows on both this branch and main. That points to the Wine environment rather than these changes, but it was not checked under Proton here.

Not tested

  • Nothing was run in game. There are no in-game measurements of these fixes on this branch, and this PR claims no performance or image gain. The source commits quote their own numbers (e.g. ryuki: driving 17.8 → 18.9 fps median with the read lock, on an RX 7900 XT); those were not reproduced here.
  • Not run under Wine/Proton: these tests ran on Windows only.
  • VICTORY_D16_BITS checks the value at run time (≤ 0xFFFF or ≥ 0xFFFF8000), not the view's format. A float view returning such a bit pattern as a real denormal would also take the integer path. The source fork made the same choice.

🤖 Generated with Claude Code

**@⁠GiovanniFadanelli** on GitHub · 2026-11-26 17:21 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/329) `GiovanniFadanelli:port/ryuki-shader-fixes` → `main` · +895 −36 · 14 files · 10 commits · open ## Summary Six fixes from other forks, ported onto `main` (c9c932c). The original authors stay on the ported commits. Five of the six have an off switch, and the four shader switches are part of the shader-cache key. `TRANSLATOR_VERSION` goes **1 → 2**, so every program is translated again on the first run. | # | Change | Switch, default | Source | |---|---|---|---| | 1 | A root view's window reaches the memory the title committed after its 4 MiB cell, instead of the cell alone (a device removal in the intro, RX 7900 XT, DRED) | `VICTORY_ROOT_WINDOW_MB`, **32** (4 = the cell alone, as before) | ryuki, YukiRyuu/RYUKI-7900XT | | 1b | That reach (`VirtualQuery`) is cached for one second | `VICTORY_ROOT_REACH_MS`, **1000** (0 = asked every time) | ryuki | | 1c | Window lookups that may take any window run under the read lock; the write lock only makes a window | none | ryuki | | 2 | d16 image **loads and gathers** through an integer view keep its 16 bits instead of converting them as a float (0 or NaN before) | `VICTORY_D16_BITS`, **on** (=0 as before) | Op-lite/victory-scarlett via RYUKI-7900XT f6dc189 | | 3 | Float colour exports of pixel programs: NaN → 0, ±inf → ±65504 | `VICTORY_NAN_GUARD`, **on** | Neptune 25fbf69 via Scarlett | | 4 | Pixel programs with `DB_SHADER_CONTROL` bit 12 and no depth/stencil/coverage export declare `ForceEarlyDepthStencil` | `VICTORY_EARLY_DEPTH`, **on** | myokex c3723f3 via Scarlett | | 5 | Spilled SGPRs are followed only through plain lane moves inside the wave; `s_bfm_b32` with 32-bit literals is resolved like inline constants | `VICTORY_SPILL_STRICT`, **on** (the `s_bfm` part has no switch) | cool_fox 8cc31ab via Scarlett | | 6 | An aliased view is copied again when its card-written source changes within a list | none | fxceless/victory-fork 19a45d1 via Scarlett and RYUKI-7900XT | Not ported: Scarlett's block-scoped `restored_lanes` and `NAN_GUARD_STORES`. ### Overlap with open work - **#114** (open) changes `integer_view` for d16 *buffer* accesses through views in tables. #2 here touches only the *image* load/gather path (the `legacyF32ToF16` "shortcut" in `lower.rs`). `9a6c829` on main already covers buffer loads and stores. These are different functions, with no textual conflict expected. - **#184** (open) also bumps `TRANSLATOR_VERSION` 1 → 2. Whichever merges second should go to 3. - **#268 / #308** (open) touch `ir::build` unspill and `spill::build`. #5 here changes only `resource.rs`'s tracer. ## Tests Each switch has a test that fails with the switch off and passes by default (Windows 11, RX 9070 XT, release build): | Test | Off | Result off → on | |---|---|---| | `shadow::window_tests::a_root_view_window_covers_the_memory_committed_after_its_cell` | `VICTORY_ROOT_WINDOW_MB=4` | `left: (…, 4194304) right: (…, 12582912)` → ok | | `shadow::window_tests::a_root_view_reach_is_used_again_within_its_time` | `VICTORY_ROOT_REACH_MS=0` | `left: (…, 4194304) right: (…, 12582912)` → ok | | `emit::picture_fix_tests::a_d16_image_load_keeps_an_integer_views_bits` | `VICTORY_D16_BITS=0` | "the d16 load's integer bits are converted as a float" → ok | | `emit::picture_fix_tests::a_float_colour_export_turns_nan_and_infinity_into_numbers` | `VICTORY_NAN_GUARD=0` | "no NaN guard on the colour export" → ok | | `emit::early_depth_tests::a_pixel_program_tested_before_it_runs_declares_early_depth` (ported) | `VICTORY_EARLY_DEPTH=0` | "the early-depth flag changed nothing" → ok | | `resource::tests::spilled_sgprs_are_not_followed_through_lanes_past_the_wave` | `VICTORY_SPILL_STRICT=0` | "followed through lane 40 of a wave32: Ok([…])" → ok | | `resource::tests::a_bit_mask_from_a_literal_width_is_a_constant` | main's `copy_source` | `left: Value(Value(0)) right: Const(4294963200)` → ok | The DXIL tests read `dxc -dumpbin` text and are skipped when dxc is missing. `dump_dxil` now writes one temp file per call, because two dumps on parallel test threads were writing the same file. **No test for 1c (read lock) or 6 (alias source).** 1c changes only the locking; the existing window tests pass. 6 needs a `HostList` on a device, which the unit tests don't build. ### Crate suites (Windows 11, release, this branch vs `main` c9c932c on the same machine) - `cargo test -p victory-shader --release --lib`: **306 passed, 0 failed, 4 ignored**, with one test skipped: `emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index`. It ends the test process with `STATUS_ACCESS_VIOLATION`, even when run alone, and it does the same on `main`. - `cargo test -p victory-gpu --release --lib`: **385 passed, 0 failed, 34 ignored** on the first run. A later full run had one failure, `watch::tests::a_block_just_written_rests`, which passes 5/5 alone on both this branch and `main`. `main` had a similar one-off failure in `watch::tests::what_is_put_in_beside_the_guards_is_told_at_every_view` (`assertion failed: published(two, two + BLOCK)`), which also passes 5/5 alone. These are timing-dependent watch tests, not something these commits touch. - `descriptor::host::tests::views_are_made_beside_the_heap_and_copied_in` and `watch::many_askers_tests::holes_are_known_until_the_runtime_tells`, which fail on our Proton build, **pass on Windows on both this branch and `main`**. That points to the Wine environment rather than these changes, but it was not checked under Proton here. ## Not tested - **Nothing was run in game.** There are no in-game measurements of these fixes on this branch, and this PR claims no performance or image gain. The source commits quote their own numbers (e.g. ryuki: driving 17.8 → 18.9 fps median with the read lock, on an RX 7900 XT); those were not reproduced here. - Not run under Wine/Proton: these tests ran on Windows only. - `VICTORY_D16_BITS` checks the value at run time (≤ 0xFFFF or ≥ 0xFFFF8000), not the view's format. A float view returning such a bit pattern as a real denormal would also take the integer path. The source fork made the same choice. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A root view has no size, and the shader reads on from its address
through the copy it is given. Outside buffer objects that copy was the
view's 4 MiB cell alone, so a view into a bigger allocation read past
the end of its window into whatever the host had placed after it; on an
RX 7900 XT (DRED) the card page-faulted 0xbfd000 bytes into the window
of title 0xcae400000, in memory freed texture staging had held, and the
device was removed at the same point of the intro in three runs.

An ask without a length now takes its cell and the cells after it while
the title's memory stays committed (VirtualQuery), up to
VICTORY_ROOT_WINDOW_MB (32; 4 = the cell alone, as before). Small
allocations keep their 4 MiB window.
680 VirtualQuery calls in 8 frames of driving cost the list-translation
threads 362 ms (65 us to 5.7 ms each, the title remapping pages meanwhile).
VICTORY_ROOT_REACH_MS (1000; 0: every time).

Boat idle 20.3 -> 22.5 fps median, driving 18.9 -> 19.6; preparing 5-7 ms
less a frame.
With windows finer than their cell (VICTORY_WINDOW_KB=1024) a lookup
that may take any window holding a range searched under the write lock:
1.4 s of waits in 4 frames of driving. Now under the read lock first;
the write lock only makes a window. Statistics read under the read lock.

Driving the boat: 17.8 -> 18.9 fps median, slowest tenth 11.7 -> 17.8.
Ported by hand from YukiRyuu/RYUKI-7900XT f6dc189 (Op-lite/victory-scarlett squash; origins:
myokex c3723f3 early depth, Neptune 25fbf69 NaN guard, cool_fox 8cc31ab strict spill lanes).
All on by default, each with an off switch, and each part of the shader cache key:

- VICTORY_EARLY_DEPTH: a pixel program with DB_SHADER_CONTROL bit 12 and no depth, stencil
  or coverage export declares ForceEarlyDepthStencil (glass prepass wrote over characters).
- VICTORY_D16_BITS: d16 image loads and gathers keep an integer view's 16 bits instead of
  converting the denormal-looking bits as a float (0 or NaN before).
- VICTORY_NAN_GUARD: float colour exports of pixel programs turn NaN into 0 and +-inf into
  +-65504, so one bad pixel does not persist in a blended history.
- VICTORY_SPILL_STRICT: spilled SGPRs are followed only through plain lane moves inside the
  wave; s_bfm_b32 with 32-bit literals is resolved as with inline constants.

TRANSLATOR_VERSION 1 -> 2: translations change, so earlier cached ones must not be served.
Test (ported): a_pixel_program_tested_before_it_runs_declares_early_depth, red with
VICTORY_EARLY_DEPTH=0 ("the early-depth flag changed nothing"), green by default.
Not ported: Scarlett's block-scoped restored_lanes and NAN_GUARD_STORES.
From fxceless 19a45d1 via Op-lite/victory-scarlett and YukiRyuu/RYUKI-7900XT. An upload of
the view from title memory earlier in the list used its first use already, so a later alias
copy from a card-written source was skipped and the shader read the uploaded bytes (zero
where the card wrote packed light). The list now notes the last source copied into each
aliased view and copies again when it changes.
- VICTORY_ROOT_WINDOW_MB=4: a root view into 12 MiB of committed memory
  gets its 4 MiB cell alone (a_root_view_window_covers_the_memory_committed_after_its_cell).
- VICTORY_ROOT_REACH_MS=0: the reach is asked again after the memory is
  decommitted (a_root_view_reach_is_used_again_within_its_time).
- VICTORY_D16_BITS=0: a d16 image load has no integer-bits select in its
  DXIL (a_d16_image_load_keeps_an_integer_views_bits).
- VICTORY_NAN_GUARD=0: a float colour export of a texel has no NaN or
  infinity test (a_float_colour_export_turns_nan_and_infinity_into_numbers).
- VICTORY_SPILL_STRICT=0: a spill through lane 40 of a wave32 is followed
  (spilled_sgprs_are_not_followed_through_lanes_past_the_wave; the VGPR is
  also read as a vector so ir::build leaves the lanes to the tracer).
- s_bfm_b32 with a literal width is a constant
  (a_bit_mask_from_a_literal_width_is_a_constant; no switch, red with
  main's copy_source).

The DXIL tests read dxc -dumpbin text (VICTORY_PC_DXC, or dxc beside the
validator) and are skipped without dxc. dump_dxil writes one file per call:
two dumps at once on test threads wrote the same file.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:23:13 +00:00
Review on Sr-0w/Victory-Native#150: making NaN 0 and infinity +-65504 in
float colour exports masks a wrong value and differs from RDNA's own
export. The guard now acts only with VICTORY_NAN_GUARD=1, prints one line
when it is on. (In Victory-Native it is listed in docs/workarounds.md; this
repository has no such file, so that line is left out here.)

TRANSLATOR_VERSION 2 -> 3: with the switch unset the cache key is the same
as before, so shaders cached by the earlier branch with the guard on would
otherwise be reused.

Test a_float_colour_export_is_guarded_only_with_the_switch reads the switch
itself, not the rule under test. Against the old rule (on unless 0), with
the switch unset: red, "the colour export is NaN-guarded without
VICTORY_NAN_GUARD=1". With this rule: green unset and green with =1 (dxc
from the Windows SDK, DXIL checked).

Windows 11, RX 9070 XT, release: victory-shader 306 passed, 0 failed,
4 ignored (size_tests::the_record_count_of_a_structured_buffer_read_by_index
skipped; it ends the process on integration too). victory-gpu 383-384
passed per full run, with one or two timing-dependent watch tests failing,
a different one each run (freed_memory_leaves_no_notes,
kernel_reads_into_guarded_blocks_after_opening, a_block_just_written_rests);
each passes 3/3 alone, and this branch does not change watch.rs.

Not checked: in game, under Wine/Proton.

(cherry picked from commit af18b1f3ffa1cae4971f71f722f0142df65fd941)
cargo clippy -D warnings (needless_borrow) on texture.rs:279, from the
ported aliased-view commit: to and from are already references. No change
in behaviour.

clippy --workspace --all-targets -D warnings still stops on two lints this
branch does not touch, in victory-loader descriptor_sites.rs:277
(transmute without annotations) and victory-gpu watch.rs:3626
(unnecessary_mut_passed); with victory-loader excluded and that one lint
allowed, the rest is clean.

(cherry picked from commit 97dcdbe736dda31c1e52b4f7b6c893215028b5dc)
(cherry picked from commit 32a4319f1138507558fd1faf0cd5bd71aafc4ec5)
The port's d16 rule guessed an integer view from the 32-bit value the
load returned: bits up to 0xFFFF or from 0xFFFF8000 kept their low 16
bits, anything else became a half. Those values are also floats: 0xFFFF8000
is a NaN and 0x1234 a denormal from an R32_FLOAT view, and both came out as
integer bits (review of Sr-0w/Victory-Native#193).

The host already keeps a word per view heap slot in the table of strides,
with VIEW_INTEGER and VIEW_SIGNED for typed buffer views of integer
formats. It now marks image views of integer formats too (the format their
description names, else their resource's), in title slots and in the
dynamic slots of fresh tables (make_at). A d16 image load or gather reads
the word of its view's slot and keeps the low 16 bits only through an
integer view; through any other it converts the float as before.

Shaders read the table through a root SRV of its own, SLOT_KINDS (t252):
binding SLOT_STRIDES also makes every buffer view of the heap ready, which
a program that reads images through its tables does not need. Views that
are not in the heap (root or constant descriptors) keep the float
conversion. VICTORY_D16_BITS=0 still converts every view's.

TRANSLATOR_VERSION 3 -> 4: with the switch unset the cache key is the
same as the earlier branch's, whose shaders guessed from the value.

Test emit::d16_tests::a_d16_image_load_converts_by_the_views_kind_not_its_value
runs one program on the hardware GPU and WARP and loads the same texel
bits through slot 0 marked integer and marked float: 0xFFFF8000 gives
0x8000 and a half NaN, 0x1234 gives 0x1234 and 0. With the earlier rule put
back it fails (the float view's NaN came out as 0x8000); with
VICTORY_D16_BITS=0 it checks that both convert. It replaces the test that
only looked for the guess's constants in the DXIL. Host test:
integer_image_views_are_marked_in_the_table_of_strides.

Not checked: in game. Integer image views the title reads through fresh
tables get their word when the host makes the slot; that path is covered
by reading the code, not by a test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 6d4c518cd376a2f201b8aee2f5e7039133511c13)
Reverts dad08cf ("a root view's committed reach is asked once a second").
The cache reused a VirtualQuery answer for up to VICTORY_ROOT_REACH_MS by
address and limit alone, so after a remap at the same address a short
reach kept the undersized copy the window is to fix, and a long one
crossed into memory no longer committed (review on
Sr-0w/Victory-Native#193). Tying it to the runtime's mapping notices was
tried (Sr-0w/Victory-Native#194) and still left a query between the notice
before a free and the free itself; Victory-Native dropped the cache
instead (Sr-0w 884dec4, fb459c8), and this does the same. VICTORY_ROOT_REACH_MS
is gone.

Tests, as in fb459c8: a_root_view_reach_is_used_again_within_its_time
becomes a_root_view_rechecks_its_reach_after_decommit (a decommit with no
notice shortens the next window at once), plus
a_remap_after_a_root_view_ends_its_window_where_the_new_memory_does and
a_commit_after_a_root_view_widens_its_window_at_once.

Not measured here: the cost the cache saved (680 queries in 8 frames took
362 ms of the list-translating threads on the machine that measured it).

Co-Authored-By: Robin Snyders <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠GiovanniFadanelli on GitHub · 2026-11-27 12:29 UTC · original

Updated with what came out of the review of these same ports in Victory-Native (Sr-0w/Victory-Native#150, #193 and #194). There are four new commits on top; the six original ones are unchanged.

dd650c4, NaN guard off by default. VICTORY_NAN_GUARD now acts only with =1 and prints one line when it is on. It masked a wrong value and differs from RDNA's own export. TRANSLATOR_VERSION goes 2 → 3.

be5f660, alias-source borrows. Drops two needless borrows that clippy -D warnings rejects. No change in behaviour.

142d74c, d16 by the view's format. A d16 image load or gather no longer guesses an integer view from the value it read: 0xFFFF8000 is both -32768 from an R16_SINT view and a NaN from a float one. The host now marks integer image views in its per-slot table, and the load reads that word through a new root SRV, SLOT_KINDS. TRANSLATOR_VERSION goes 3 → 4. The test emit::d16_tests::a_d16_image_load_converts_by_the_views_kind_not_its_value dispatches on the hardware GPU and WARP with the same texel bits through an integer view and a float view. It fails with the old rule.

f146ed8, no reach cache. This reverts dad08cf. The one-second cache of the committed reach could go stale after a remap at the same address, and Victory-Native dropped it (Sr-0w 884dec4, fb459c8). VICTORY_ROOT_REACH_MS is gone. Three tests cover it: a decommit with no notice, a same-address remap, and a commit that grows the window. The cost is that every root-view window queries Windows again, which the cache had saved; I haven't measured that here.

Checks on Windows 11, RX 9070 XT, release build:
victory-shader tests: 306 passed (the structured-buffer size test that crashes the process on main too was skipped).
victory-gpu tests: 388 passed.
cargo xtask policy: 266 files ok.
Clippy is clean for victory-gpu and victory-shader apart from unnecessary_mut_passed at watch.rs:3626. With --workspace it also stops on the transmute lint in victory-loader/src/descriptor_sites.rs:277. Both lints are already on main, in files this branch doesn't change.

Not checked: nothing was run in game, nothing under Wine/Proton, and the commits are not signed.

**@⁠GiovanniFadanelli** on GitHub · 2026-11-27 12:29 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/329#issuecomment-7218297776) Updated with what came out of the review of these same ports in Victory-Native (Sr-0w/Victory-Native#150, #193 and #194). There are four new commits on top; the six original ones are unchanged. **dd650c4, NaN guard off by default.** `VICTORY_NAN_GUARD` now acts only with `=1` and prints one line when it is on. It masked a wrong value and differs from RDNA's own export. `TRANSLATOR_VERSION` goes 2 → 3. **be5f660, alias-source borrows.** Drops two needless borrows that `clippy -D warnings` rejects. No change in behaviour. **142d74c, d16 by the view's format.** A d16 image load or gather no longer guesses an integer view from the value it read: `0xFFFF8000` is both -32768 from an `R16_SINT` view and a NaN from a float one. The host now marks integer image views in its per-slot table, and the load reads that word through a new root SRV, `SLOT_KINDS`. `TRANSLATOR_VERSION` goes 3 → 4. The test `emit::d16_tests::a_d16_image_load_converts_by_the_views_kind_not_its_value` dispatches on the hardware GPU and WARP with the same texel bits through an integer view and a float view. It fails with the old rule. **f146ed8, no reach cache.** This reverts dad08cf. The one-second cache of the committed reach could go stale after a remap at the same address, and Victory-Native dropped it (Sr-0w 884dec4, fb459c8). `VICTORY_ROOT_REACH_MS` is gone. Three tests cover it: a decommit with no notice, a same-address remap, and a commit that grows the window. The cost is that every root-view window queries Windows again, which the cache had saved; I haven't measured that here. Checks on Windows 11, RX 9070 XT, release build: victory-shader tests: 306 passed (the structured-buffer size test that crashes the process on main too was skipped). victory-gpu tests: 388 passed. `cargo xtask policy`: 266 files ok. Clippy is clean for victory-gpu and victory-shader apart from `unnecessary_mut_passed` at watch.rs:3626. With `--workspace` it also stops on the transmute lint in victory-loader/src/descriptor_sites.rs:277. Both lints are already on main, in files this branch doesn't change. Not checked: nothing was run in game, nothing under Wine/Proton, and the commits are not signed.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/329/head:github-bot/gh-329'
git switch 'github-bot/gh-329'

Merge

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