NVIDIA (32-lane waves): four refused compute programs run, the whole structure builder has pipelines, xmem maps page runs as one view #823

Closed
github-bot wants to merge 3 commits from github-bot/gh-823 into main AGit
Owner

@⁠Felix2180 on GitHub · 2026-11-25 09:11 UTC · original
Felix2180:pr-nvidia-wave32 → main · +264 −15 · 10 files · 3 commits · closed without merging

Three changes from testing this fork on an RTX 5070 12 GB (Blackwell, 32-lane waves, driver 32.0.16.1088), i7-14700KF, 32 GB, Windows 11. All measured in the first gameplay scene; diagnostics build, VICTORY_RELAY=2, VICTORY_CARD_BUFFERS_MIN_MB=1, VICTORY_CARD_BUFFERS_MB=1024, VICTORY_TEXTURE_NO_WAIT=1.

1. Four refused 64-lane compute programs now run on 32-lane hosts

On NVIDIA, seven of the title's compute programs stay in their 64-lane form, which the driver refuses (E_INVALIDARG), so their dispatches are dropped every frame. Translated as for a 32-lane host with the wave-wide form allowed (VICTORY_HOST_MAX_WAVE=32 VICTORY_WAVE_WIDE=1, offline), four come out with 32-lane waves:

Hash Program
5dc3b25986622949 water_shading:CS_TransmissionVolumetrics_Tiled
6f225b641c5b0708 water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights
369cbe906ea72764 GpuParticleUpdate:CS_Visibility
2cc4c197ee29e291 sr_tracing:CS_Tiling_Generate_Opaque

The wave-wide form stays off globally (runs 121-124 lost the card with it). Instead victory_shader::emit::with_wave_wide allows it for one translation, and the shader cache allows it for the containers in VICTORY_WAVE_WIDE_ONLY (default: those four; none for none).

Visible effect: a band of blocky garbage across the lower third of the screen (floor, reflective surfaces) in the prison window shot was present in earlier runs and gone in 3 of 3 captured frames of the same shot after the change. That fits the reflection pass tracing with a stale tile list while its tiling dispatch was dropped. A 15-minute run in the world: no device loss.

Still refused (they need the wave-wide form in groups of several console waves): 2da4beb386509b77 (alpha transmission prefilter), 02384a60fda6f2d0 and 6b82bc7d22016cb5 (vfx triangle clip).

2. The whole structure builder has host pipelines

Three of the 52 builder programs did not translate for 32-lane waves: a first-lane read where not every lane runs. Their scans read a sum of scalars, the same in every lane of the console wave, which is where VICTORY_FIRSTLANE_OWN=1 is exact. with_firstlane_own allows it per translation, and the cache allows it for VICTORY_FIRSTLANE_OWN_ONLY. The default list holds the three programs both by the hashes the title passes (39321a95223001ed, 77360df21e12ea43, 9fc111d3be79364f) and by the hashes victory translate finds in the DLL.

With VICTORY_BVH_BUILDER=1 the log now says the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53. The title then dies within ~9 s, with and without VICTORY_BVH_QUARANTINE=1. Registers in the handled exceptions just before hold half-float bounding-box patterns (0x7c00fc00fc00), and the title follows a null pointer (read 0x28). This is the run-98 picture: some stage still stores outside its structure. No memory-by-address faults were logged. The builder stays off by default; its "stays off" warning now names the pipelines that have no host pipeline.

Both lists go into the cache key next to the translator's fingerprint, and the offline warm-up translates with them as runs do.

3. xmem: a page-mapping copy maps runs of pages as one view

map_alias mapped page by page (VirtualFree + MapViewOfFile3 + VirtualAlloc per 64 KiB) under the remapping lock that in-place texture reads wait on. While the world streams in, that wait was most of the frame line's "textures" (up to ~2 s a frame). Runs of consecutive slices of one section are now one view, after joining the per-page placeholders unmap leaves (MEM_COALESCE_PLACEHOLDERS), and page by page when that is refused or the ranges overlap. New test: a_page_mapping_copy_maps_a_run_as_one_view.

Also

  • scripts/play-nvidia.ps1: the switches above for a 12 GB NVIDIA card.
  • Three clippy findings on main (-D warnings, both configurations).

Checks

  • cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings: clean.
  • cargo test --workspace --locked on the RTX 5070: 541 passed, 0 failed, 10 ignored.

🤖 Generated with Claude Code

**@⁠Felix2180** on GitHub · 2026-11-25 09:11 UTC · [original](https://github.com/fxceless/victory-fork/pull/823) `Felix2180:pr-nvidia-wave32` → `main` · +264 −15 · 10 files · 3 commits · closed without merging Three changes from testing this fork on an **RTX 5070 12 GB** (Blackwell, 32-lane waves, driver 32.0.16.1088), i7-14700KF, 32 GB, Windows 11. All measured in the first gameplay scene; diagnostics build, `VICTORY_RELAY=2`, `VICTORY_CARD_BUFFERS_MIN_MB=1`, `VICTORY_CARD_BUFFERS_MB=1024`, `VICTORY_TEXTURE_NO_WAIT=1`. ## 1. Four refused 64-lane compute programs now run on 32-lane hosts On NVIDIA, seven of the title's compute programs stay in their 64-lane form, which the driver refuses (`E_INVALIDARG`), so their dispatches are dropped every frame. Translated as for a 32-lane host with the wave-wide form allowed (`VICTORY_HOST_MAX_WAVE=32 VICTORY_WAVE_WIDE=1`, offline), four come out with 32-lane waves: | Hash | Program | |------|---------| | `5dc3b25986622949` | `water_shading:CS_TransmissionVolumetrics_Tiled` | | `6f225b641c5b0708` | `water_shading:CS_TransmissionVolumetrics_Tiled_LocalLights` | | `369cbe906ea72764` | `GpuParticleUpdate:CS_Visibility` | | `2cc4c197ee29e291` | `sr_tracing:CS_Tiling_Generate_Opaque` | The wave-wide form stays off globally (runs 121-124 lost the card with it). Instead `victory_shader::emit::with_wave_wide` allows it for one translation, and the shader cache allows it for the containers in `VICTORY_WAVE_WIDE_ONLY` (default: those four; `none` for none). **Visible effect:** a band of blocky garbage across the lower third of the screen (floor, reflective surfaces) in the prison window shot was present in earlier runs and gone in 3 of 3 captured frames of the same shot after the change. That fits the reflection pass tracing with a stale tile list while its tiling dispatch was dropped. A 15-minute run in the world: no device loss. Still refused (they need the wave-wide form in groups of several console waves): `2da4beb386509b77` (alpha transmission prefilter), `02384a60fda6f2d0` and `6b82bc7d22016cb5` (vfx triangle clip). ## 2. The whole structure builder has host pipelines Three of the 52 builder programs did not translate for 32-lane waves: *a first-lane read where not every lane runs*. Their scans read a sum of scalars, the same in every lane of the console wave, which is where `VICTORY_FIRSTLANE_OWN=1` is exact. `with_firstlane_own` allows it per translation, and the cache allows it for `VICTORY_FIRSTLANE_OWN_ONLY`. The default list holds the three programs both by the hashes the title passes (`39321a95223001ed`, `77360df21e12ea43`, `9fc111d3be79364f`) and by the hashes `victory translate` finds in the DLL. With `VICTORY_BVH_BUILDER=1` the log now says *the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53*. **The title then dies within ~9 s**, with and without `VICTORY_BVH_QUARANTINE=1`. Registers in the handled exceptions just before hold half-float bounding-box patterns (`0x7c00fc00fc00`), and the title follows a null pointer (`read 0x28`). This is the run-98 picture: some stage still stores outside its structure. No memory-by-address faults were logged. The builder stays off by default; its "stays off" warning now names the pipelines that have no host pipeline. Both lists go into the cache key next to the translator's fingerprint, and the offline warm-up translates with them as runs do. ## 3. xmem: a page-mapping copy maps runs of pages as one view `map_alias` mapped page by page (`VirtualFree` + `MapViewOfFile3` + `VirtualAlloc` per 64 KiB) under the remapping lock that in-place texture reads wait on. While the world streams in, that wait was most of the frame line's "textures" (up to ~2 s a frame). Runs of consecutive slices of one section are now one view, after joining the per-page placeholders `unmap` leaves (`MEM_COALESCE_PLACEHOLDERS`), and page by page when that is refused or the ranges overlap. New test: `a_page_mapping_copy_maps_a_run_as_one_view`. ## Also - `scripts/play-nvidia.ps1`: the switches above for a 12 GB NVIDIA card. - Three clippy findings on `main` (`-D warnings`, both configurations). ## Checks - `cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings`: clean. - `cargo test --workspace --locked` on the RTX 5070: 541 passed, 0 failed, 10 ignored. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
map_alias mapped page by page, three host calls a page under the
remapping lock that texture reads wait on. Runs of consecutive slices of
one section are now mapped as one view, after joining the per-page
placeholders unmap leaves (MEM_COALESCE_PLACEHOLDERS); page by page if
that is refused or the two ranges overlap.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
- Four wave64 compute programs the driver refused (water transmission
  volumetrics x2, particle visibility, the reflection pass's tiling) take
  the wave-wide form and come out with 32-lane waves; it stays off for
  everything else (VICTORY_WAVE_WIDE_ONLY, default those four).
- The three structure-builder programs that read a first lane where not
  every lane runs take the host wave's own, exact for their scans
  (VICTORY_FIRSTLANE_OWN_ONLY, default those three by both hashes): the
  whole builder has host pipelines; its 'stays off' warning names any that
  do not.
- Both lists are part of the cache key; the offline warm-up uses them.
- scripts/play-nvidia.ps1: the switches measured fastest on an RTX 5070.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:51:57 +00:00
Author
Owner

@⁠iGoldenNinja on GitHub · 2026-11-25 09:34 UTC · original · edited 2026-11-25 09:52 UTC

Independent RTX 5080 check on aaf658a40f3e512550165e489a0f0c411e3c9544, driver 617.14, Windows 11 Pro 25H2 (26200.9974). All seven matched compute programs emitted and validated offline with VICTORY_HOST_MAX_WAVE=32. The parent and PR both created 0/7 with VICTORY_WAVE_WIDE=0. The PR with VICTORY_WAVE_WIDE=1 created 4/7, exactly the four hashes listed in the PR. The same three controls still returned the invalid-parameter error.

The Series X title run used the default per-program allowlist and default relay, readback and builder settings. It logged successful creation of those same four and reached controllable prison. Distinct D3D12 pipeline refusals fell from eight to four versus the earlier parent replay. Blocky tiles below the courtyard window persisted in two stationary captures. The post-retreat shot showed some brighter divider and floor detail, and stepped character edges persisted.

One 90-second run per revision measured 3.56 FPS / 470.38 ms P99 on the parent and 2.97 FPS / 552.72 ms on the full PR. Startup shader-cache behavior differed and the PR had more draws. Neither run logged device removal. Pinned test and measurements

Same-executable follow-up on aaf658a with identical cache seeds and page-mapping code. Setting VICTORY_WAVE_WIDE_ONLY=none made all four targeted pipelines return E_INVALIDARG again. Both 90-second routes reached controllable prison, with courtyard tiling and stepped character edges in both settings. The enabled setting had more lit detail on the divider and floor in the comparable post-retreat view. Enabled measured 2.97 FPS / 552.72 ms P99 and disabled measured 3.59 FPS / 517.43 ms P99. Each setting ran once, with enabled first, and draw counts differed. Same-build comparison

**@⁠iGoldenNinja** on GitHub · 2026-11-25 09:34 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7158513276) · edited 2026-11-25 09:52 UTC Independent RTX 5080 check on `aaf658a40f3e512550165e489a0f0c411e3c9544`, driver 617.14, Windows 11 Pro 25H2 (26200.9974). All seven matched compute programs emitted and validated offline with `VICTORY_HOST_MAX_WAVE=32`. The parent and PR both created **0/7** with `VICTORY_WAVE_WIDE=0`. The PR with `VICTORY_WAVE_WIDE=1` created **4/7**, exactly the four hashes listed in the PR. The same three controls still returned the invalid-parameter error. The Series X title run used the default per-program allowlist and default relay, readback and builder settings. It logged successful creation of those same four and reached controllable prison. Distinct D3D12 pipeline refusals fell from eight to four versus the earlier parent replay. Blocky tiles below the courtyard window persisted in two stationary captures. The post-retreat shot showed some brighter divider and floor detail, and stepped character edges persisted. One 90-second run per revision measured 3.56 FPS / 470.38 ms P99 on the parent and 2.97 FPS / 552.72 ms on the full PR. Startup shader-cache behavior differed and the PR had more draws. Neither run logged device removal. [Pinned test and measurements](https://github.com/iGoldenNinja/victory-fork/blob/983d166048a7f754a23b30be84cd2aa6797d4b7c/docs/nvidia-pr823-5080.md) Same-executable follow-up on `aaf658a` with identical cache seeds and page-mapping code. Setting `VICTORY_WAVE_WIDE_ONLY=none` made all four targeted pipelines return `E_INVALIDARG` again. Both 90-second routes reached controllable prison, with courtyard tiling and stepped character edges in both settings. The enabled setting had more lit detail on the divider and floor in the comparable post-retreat view. Enabled measured **2.97 FPS / 552.72 ms P99** and disabled measured **3.59 FPS / 517.43 ms P99**. Each setting ran once, with enabled first, and draw counts differed. [Same-build comparison](https://github.com/iGoldenNinja/victory-fork/blob/b85ccb58d6eeff9742a0a0b17c5509a8fef99952/docs/nvidia-pr823-5080.md#same-build-allowlist-comparison)
Author
Owner

@⁠MamaLeVrai on GitHub · 2026-11-25 10:12 UTC · original

Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head aaf658a into main 9376fd6 in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings: clean, and the same with --all-features: clean. main itself fails both on this machine (dead code in victory-gpu), so this PR is the one of those I tested that makes clippy pass. cargo test --workspace --locked: 541 passed, 0 failed, 10 ignored, two runs (main alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

**@⁠MamaLeVrai** on GitHub · 2026-11-25 10:12 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7159386446) Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `aaf658a` into `main` `9376fd6` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings`: **clean**, and the same with `--all-features`: clean. `main` itself fails both on this machine (dead code in `victory-gpu`), so this PR is the one of those I tested that makes clippy pass. `cargo test --workspace --locked`: 541 passed, 0 failed, 10 ignored, two runs (`main` alone: 540 passed, 0 failed, 10 ignored). The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-25 11:38 UTC · original

I tested the selective wave translation from a416e39 on an RTX 5070 Ti, with f85101b plus the same local compute-group split in both builds. Series X at 1080p, builder off, async submit and copy-queue readback active, refetch on, and VICTORY_FILL_WAIT=1 from startup in both runs. Two previously refused ordinary compute programs created and bound host pipelines in the prison scene.

Across the same 149 presents at the window, the control averaged 5.05 FPS (185.3 ms median, 293.2 ms p95). The wave build averaged 4.83 FPS (206.7 ms median, 216.6 ms p95). The control had a roughly 952 ms outlier. This is one matched pair. In both endpoint captures the wave build showed block-shaped shadows on the left wall and bright blue patches on the lower right that were absent in the control. Both builds rendered the character and yard. I tested the shader changes separately from the xmem commit.

AI-assisted testing and analysis. Asset-free measurements only.

**@⁠SkillIssueXO** on GitHub · 2026-11-25 11:38 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7161315956) I tested the selective wave translation from `a416e39` on an RTX 5070 Ti, with `f85101b` plus the same local compute-group split in both builds. Series X at 1080p, builder off, async submit and copy-queue readback active, refetch on, and `VICTORY_FILL_WAIT=1` from startup in both runs. Two previously refused ordinary compute programs created and bound host pipelines in the prison scene. Across the same 149 presents at the window, the control averaged 5.05 FPS (185.3 ms median, 293.2 ms p95). The wave build averaged 4.83 FPS (206.7 ms median, 216.6 ms p95). The control had a roughly 952 ms outlier. This is one matched pair. In both endpoint captures the wave build showed block-shaped shadows on the left wall and bright blue patches on the lower right that were absent in the control. Both builds rendered the character and yard. I tested the shader changes separately from the xmem commit. AI-assisted testing and analysis. Asset-free measurements only.
Author
Owner

@⁠VibeClauding on GitHub · 2026-11-25 12:10 UTC · original

An A/B that isolates the two water programs in the wave-wide list, on an RTX 3070 8 GB (driver 610.88), Series S, held view at the cell window.

Setup:

  • Same build and settings in both runs: 8dd30ab + #220 #648 #670 #705 #346 #646 #834 + #294's first two commits; builder off; VICTORY_SHADER_OPT=0 VICTORY_PAGE_WRITES=1.
  • Wide form per program: my own per-program switch, the same idea as here, through the shader cache key.
  • The only difference: whether 5dc3b25986622949 and 6f225b641c5b0708 (the two water volumetrics) are in VICTORY_WAVE_WIDE_ONLY. 2cc4c197ee29e291 and 369cbe906ea72764 are in it in both runs.
run water volumetrics wide fps window, mean red of its lower part, frames 2048–4096
82 yes (they get pipelines and run) 8.0–8.5 0, 106, then 216–234 in every frame from 2400 on
84 no (refused, as on main) 8.0–8.7 108–110 in every frame
  • In run 82, from frame 2400 on, the yard through the window is washed out to near white haze: no inmates, no ground detail. In run 84 it's clear the whole way.
  • An earlier run without the water programs in the list (run 77) was clear in every frame too.
  • So on this card, running those two in the wide form makes their output (or what reads it) far too bright. The other two programs in the list show no such effect.

Before the water programs go into the default list, it may be worth checking the transmission volumetrics' output in the wide form against the 64-lane form. That's the form WARP runs, if the offline path allows it there. It could be a whole-wave step that the wide form doesn't keep.

I can't tell from these runs whether the blue patches and blocks others saw come from the same two programs.

AI-assisted (Claude Code); my runs with my own copy; measurements only.

**@⁠VibeClauding** on GitHub · 2026-11-25 12:10 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7162022167) An A/B that isolates the two **water** programs in the wave-wide list, on an RTX 3070 8 GB (driver 610.88), Series S, held view at the cell window. **Setup:** - Same build and settings in both runs: `8dd30ab` + #220 #648 #670 #705 #346 #646 #834 + #294's first two commits; builder off; `VICTORY_SHADER_OPT=0 VICTORY_PAGE_WRITES=1`. - Wide form per program: my own per-program switch, the same idea as here, through the shader cache key. - The only difference: whether `5dc3b25986622949` and `6f225b641c5b0708` (the two water volumetrics) are in `VICTORY_WAVE_WIDE_ONLY`. `2cc4c197ee29e291` and `369cbe906ea72764` are in it in both runs. | run | water volumetrics wide | fps | window, mean red of its lower part, frames 2048–4096 | |---|---|---|---| | 82 | yes (they get pipelines and run) | 8.0–8.5 | 0, 106, then **216–234 in every frame from 2400 on** | | 84 | no (refused, as on main) | 8.0–8.7 | 108–110 in every frame | - In run 82, from frame 2400 on, the yard through the window is **washed out to near white haze**: no inmates, no ground detail. In run 84 it's clear the whole way. - An earlier run without the water programs in the list (run 77) was clear in every frame too. - So on this card, running those two in the wide form makes their output (or what reads it) far too bright. The other two programs in the list show no such effect. Before the water programs go into the default list, it may be worth checking the transmission volumetrics' output in the wide form against the 64-lane form. That's the form WARP runs, if the offline path allows it there. It could be a whole-wave step that the wide form doesn't keep. I can't tell from these runs whether the blue patches and blocks others saw come from the same two programs. AI-assisted (Claude Code); my runs with my own copy; measurements only.
Author
Owner

@⁠Ortomanic on GitHub · 2026-11-25 15:39 UTC · original

Independent result for part 1 on an RTX 5080 under Linux (CachyOS, Wine 11.22, vkd3d-proton 3.1.r64, driver 620.73.04, --console series-s): the same four programs run and the same three stay refused.

I did not run this branch. I reached the same place with a different selection rule on 0b0074e plus our Linux patches: a 29-line change that adds VICTORY_WAVE_WIDE=last, which tries widen only for a one-wave wave64 compute program that every other form has failed on a 32-lane host. No hash list. Branch: Ortomanic/victory-fork fx/wave-wide-last (3282163), not opened as a PR since it overlaps this one and #695.

In game, one run each, first room:

refused (E_INVALIDARG) not translated
without 02384a60 2cc4c197 2da4beb3 369cbe90 5dc3b259 6b82bc7d 6f225b64 4
VICTORY_WAVE_WIDE=last 02384a60 2da4beb3 6b82bc7d 1 (f133e35e, cascade shadows, two console waves)
  • 369cbe90, 2cc4c197, 5dc3b259 and 6f225b64 each log a host pipeline and a first bind. That is your list of four, and the three left are your three.
  • Two minutes in the world (24 five-second lines), no device loss, no Xid. Time on the GPU went from about 97 to about 113 ms a frame, which I read as the extra dispatches running; one run each, so treat it as rough.
  • The three upscaler programs that also start translating only exist with #258.

Offline, which may help if the default list is extended. Over the shader pack on a 32-lane host (25,985 containers, each validated with dxv and converted with dxil-spirv), last moves 20 programs from WaveSize(64) to 32 and makes 5 more translate; none is lost and no validation or conversion result changes. 27 programs need 64-lane waves before, 7 after. Beyond your four, the 16 that move are:

  • GpuParticleEmit: 18d957e6 407eca66 ae0deeaf 5e3dd99e 9fe71156 57f1b81d a40ae275
  • shadowmask hair: 2889c213 888af37a
  • vfx_proj_decal_trail: ffa3a764 aeac9d88 a4cb3ce5 98fef92f a09f0c1f f38f8343
  • water_shading:CS_TransmissionVolumetrics_VolumePortals…: a10179ab

and water_shading:CS_TransmissionVolumetrics 6871d6e4 and …Submerged 926c46ba start translating. None of these 18 was bound in my run, so they are checked offline only. Still at 64 lanes: 2da4beb3, 3b02415f, 1d434307, 22338086, 02384a60, 6832a9da, 6b82bc7d (groups of 128 to 1,024 threads).

AI-assisted (Claude Code); built and run locally.

**@⁠Ortomanic** on GitHub · 2026-11-25 15:39 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7167189950) Independent result for part 1 on an **RTX 5080 under Linux** (CachyOS, Wine 11.22, vkd3d-proton 3.1.r64, driver 620.73.04, `--console series-s`): the same four programs run and the same three stay refused. I did not run this branch. I reached the same place with a different selection rule on `0b0074e` plus our Linux patches: a 29-line change that adds `VICTORY_WAVE_WIDE=last`, which tries `widen` only for a one-wave wave64 compute program that every other form has failed on a 32-lane host. No hash list. Branch: `Ortomanic/victory-fork` `fx/wave-wide-last` (`3282163`), not opened as a PR since it overlaps this one and #695. **In game, one run each, first room:** | | refused (`E_INVALIDARG`) | not translated | |---|---|---| | without | `02384a60` `2cc4c197` `2da4beb3` `369cbe90` `5dc3b259` `6b82bc7d` `6f225b64` | 4 | | `VICTORY_WAVE_WIDE=last` | `02384a60` `2da4beb3` `6b82bc7d` | 1 (`f133e35e`, cascade shadows, two console waves) | - `369cbe90`, `2cc4c197`, `5dc3b259` and `6f225b64` each log a host pipeline and a first bind. That is your list of four, and the three left are your three. - Two minutes in the world (24 five-second lines), no device loss, no Xid. Time on the GPU went from about 97 to about 113 ms a frame, which I read as the extra dispatches running; one run each, so treat it as rough. - The three upscaler programs that also start translating only exist with #258. **Offline, which may help if the default list is extended.** Over the shader pack on a 32-lane host (25,985 containers, each validated with dxv and converted with dxil-spirv), `last` moves 20 programs from `WaveSize(64)` to 32 and makes 5 more translate; none is lost and no validation or conversion result changes. 27 programs need 64-lane waves before, 7 after. Beyond your four, the 16 that move are: - `GpuParticleEmit`: `18d957e6` `407eca66` `ae0deeaf` `5e3dd99e` `9fe71156` `57f1b81d` `a40ae275` - `shadowmask` hair: `2889c213` `888af37a` - `vfx_proj_decal_trail`: `ffa3a764` `aeac9d88` `a4cb3ce5` `98fef92f` `a09f0c1f` `f38f8343` - `water_shading:CS_TransmissionVolumetrics_VolumePortals…`: `a10179ab` and `water_shading:CS_TransmissionVolumetrics` `6871d6e4` and `…Submerged` `926c46ba` start translating. None of these 18 was bound in my run, so they are checked offline only. Still at 64 lanes: `2da4beb3`, `3b02415f`, `1d434307`, `22338086`, `02384a60`, `6832a9da`, `6b82bc7d` (groups of 128 to 1,024 threads). AI-assisted (Claude Code); built and run locally.
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 16:47 UTC · original

Tested on an RTX 5080 16 GB under Windows 11 (driver 621.14, Series X profile): part 1 works here too.

Build: diagnostics build of main 3973179 + #24 + #927, then the same with this PR's three commits on top. Default settings, including the default VICTORY_WAVE_WIDE_ONLY.

Refused compute pipelines:

  • Without the PR, seven: 02384a60…, 2cc4c197…, 2da4beb3…, 369cbe90…, 5dc3b259…, 6b82bc7d…, 6f225b64….
  • With it, three: 02384a60…, 2da4beb3…, 6b82bc7d…, as described above.

Visible change: the floor of the common room after the corridor shows reflections (a wet look) that it doesn't have without the PR.

Stability: three 10-minute runs with the PR (one alone on the base, two with more PRs on top): no errors and no device loss.

Two notes:

  • The blocky band along the bottom edge of the cell shots is not changed by this PR. It comes from somewhere else: the indirect light's final gather asks for 75,864 to 97,832 groups in x there, and the clamp cuts it at 65,535 (#834, #993).
  • In the first run with the PR, the guard's forearms were bright green with blue streaks in two shots of the corridor. His arms weren't in view in the second run; in the third they were normal. So it's probably not this PR, but I'm noting it in case someone else sees it.

AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.

**@⁠tippythetaidum** on GitHub · 2026-11-25 16:47 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7168530679) Tested on an RTX 5080 16 GB under Windows 11 (driver 621.14, Series X profile): part 1 works here too. **Build:** diagnostics build of `main` `3973179` + #24 + #927, then the same with this PR's three commits on top. Default settings, including the default `VICTORY_WAVE_WIDE_ONLY`. **Refused compute pipelines:** - Without the PR, seven: `02384a60…`, `2cc4c197…`, `2da4beb3…`, `369cbe90…`, `5dc3b259…`, `6b82bc7d…`, `6f225b64…`. - With it, three: `02384a60…`, `2da4beb3…`, `6b82bc7d…`, as described above. **Visible change:** the floor of the common room after the corridor shows reflections (a wet look) that it doesn't have without the PR. **Stability:** three 10-minute runs with the PR (one alone on the base, two with more PRs on top): no errors and no device loss. **Two notes:** - The blocky band along the bottom edge of the cell shots is not changed by this PR. It comes from somewhere else: the indirect light's final gather asks for 75,864 to 97,832 groups in x there, and the clamp cuts it at 65,535 (#834, #993). - In the first run with the PR, the guard's forearms were bright green with blue streaks in two shots of the corridor. His arms weren't in view in the second run; in the third they were normal. So it's probably not this PR, but I'm noting it in case someone else sees it. AI-assisted (Claude Code, Claude Opus 5.5). Counts and descriptions only, nothing from the game attached.
Author
Owner

@⁠tippythetaidum on GitHub · 2026-11-25 19:49 UTC · original

What each of the four wide programs does to the picture and the frame rate, from runs on an RTX 5080 16 GB (driver 621.14, Windows 11, Ryzen 7 9800X3D, Series X profile).

Build: release build of ca8829f with this PR, #927, #834, #1007, #1031, #917 and others, VICTORY_LEVELS_ON_DEMAND=1, VICTORY_AMBIENT=0.6. 600-second runs through the prologue. The shader cache was warmed offline for each VICTORY_WAVE_WIDE_ONLY value, so no run started cold.

VICTORY_WAVE_WIDE_ONLY world fps (median / p75 / max)
default (all four) 5.7 / 6.1 / 8.3
none 7.4 / 8.0 / 10.3
the default minus 2cc4c197ee29e291 (the screen-space reflection tiling) 5.7 / 6.4 / 8.0

So the four cost about a quarter of the frame here, and on these numbers the reflection tiling isn't the expensive one.

Picture, compared shot by shot with console footage of the same scenes:

  • With all four: characters close to the camera are lit as on the console (shading, shadows on clothes). But reflective surfaces show a bright sky indoors: Lucia's irises turn blue-violet, glasses and picture frames show sky and clouds, and floors and walls get an oily, smeared look.
  • With none: eyes, frames and floors are clean, but close characters lose their light and shadows and look flat, and hair sometimes turns grey.
  • Without only the tiling: close characters are flat again. So the tiling is the program they depend on.

My reading is that the tiling program is right and needed, and that what it schedules is the problem. The passes behind it walk ray-tracing structures that the builder never built (it is off), so reflection rays land on whatever is in memory or miss to the sky. That fits the sky in eyes and glass. With VICTORY_BVH_HOLD=1 those walks are held back: the corridor floors lose their oily look, but most of the indirect light goes too (numbers in #1088). That run had no close-up clear enough to check the eyes. The structure builder in #994 looks like the real fix. I'm trying that stack next and will report.

No errors and no device loss in any of these runs.

AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.

**@⁠tippythetaidum** on GitHub · 2026-11-25 19:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7172802781) What each of the four wide programs does to the picture and the frame rate, from runs on an RTX 5080 16 GB (driver 621.14, Windows 11, Ryzen 7 9800X3D, Series X profile). **Build:** release build of `ca8829f` with this PR, #927, #834, #1007, #1031, #917 and others, `VICTORY_LEVELS_ON_DEMAND=1`, `VICTORY_AMBIENT=0.6`. 600-second runs through the prologue. The shader cache was warmed offline for each `VICTORY_WAVE_WIDE_ONLY` value, so no run started cold. | `VICTORY_WAVE_WIDE_ONLY` | world fps (median / p75 / max) | |---|---| | default (all four) | 5.7 / 6.1 / 8.3 | | `none` | 7.4 / 8.0 / 10.3 | | the default minus `2cc4c197ee29e291` (the screen-space reflection tiling) | 5.7 / 6.4 / 8.0 | So the four cost about a quarter of the frame here, and on these numbers the reflection tiling isn't the expensive one. **Picture, compared shot by shot with console footage of the same scenes:** - **With all four:** characters close to the camera are lit as on the console (shading, shadows on clothes). But reflective surfaces show a bright sky indoors: Lucia's irises turn blue-violet, glasses and picture frames show sky and clouds, and floors and walls get an oily, smeared look. - **With `none`:** eyes, frames and floors are clean, but close characters lose their light and shadows and look flat, and hair sometimes turns grey. - **Without only the tiling:** close characters are flat again. So the tiling is the program they depend on. My reading is that the tiling program is right and needed, and that what it schedules is the problem. The passes behind it walk ray-tracing structures that the builder never built (it is off), so reflection rays land on whatever is in memory or miss to the sky. That fits the sky in eyes and glass. With `VICTORY_BVH_HOLD=1` those walks are held back: the corridor floors lose their oily look, but most of the indirect light goes too (numbers in #1088). That run had no close-up clear enough to check the eyes. The structure builder in #994 looks like the real fix. I'm trying that stack next and will report. No errors and no device loss in any of these runs. AI-assisted (Claude Code, Claude Opus 5.5). Descriptions and counts only, nothing from the game attached.
Author
Owner

@⁠Dathinel on GitHub · 2026-11-25 21:01 UTC · original · edited 2026-11-25 21:10 UTC

One reproducible cache-key collision in the selective translation path. I applied the three translator/cache files to our local Windows test tree and ran a fresh process for each environment, calling the actual listed and shader-cache build() for the particle hash:

VICTORY_WAVE_WIDE_ONLY Particle selected Key prefix
absent yes 01171fd79baff9da
present, empty string no 01171fd79baff9da
literal none no 187fe912ee74847c

An unset variable selects the built-in list, while the empty list selects nothing. The cache key hashes zero value bytes in both cases. This can reuse the other configuration's translation in a shared cache. The documented none spelling already gives a distinct key and is suitable for an A/B today.

A local one-byte presence marker inside the Some(value) arm of the cache-key loop separated all four tested keys (including an explicit particle hash) while preserving all four selection results. The same loop covers VICTORY_FIRSTLANE_OWN_ONLY. This checks policy and key generation, not frame rate or game output.

Separate hardware result on the exact PR head (aaf658a, Windows, RTX 3050 Laptop 4 GB). The scalar condition join retry checks only the global switch. With global widening explicitly off, a selected synthetic Wave64 compute shader still failed at offset 0x20 (“a lane mask read as data”). The ordinary widening retry already honors the per-container override. Applying that same override in the scalar join retry created a Wave32 pipeline and produced 14/14 expected hardware readbacks; the unselected control still refused. This fixture checks lane 63 after seven different lane masks and two scalar comparison outcomes.

Minimal change and synthetic regression against aaf658a

With VICTORY_WAVE_WIDE=0 and VICTORY_WAVE_LOCAL=0, run cargo test -p victory-shader --lib wave64_scalar_join_reads -- --ignored --nocapture. The fixture invokes the same per-container override that the cache sets after its hash lookup.

diff --git a/crates/victory-shader/src/emit/mod.rs b/crates/victory-shader/src/emit/mod.rs
index 6bf0a04..f0c3557 100644
--- a/crates/victory-shader/src/emit/mod.rs
+++ b/crates/victory-shader/src/emit/mod.rs
@@ -552,7 +552,7 @@ pub fn emit(
         Err(ShaderError::Unsupported { what, .. })
             if native.stage == HwStage::Cs
                 && what == lower::LANE_MASK
-                && std::env::var_os("VICTORY_WAVE_WIDE").is_none_or(|v| v != "0") =>
+                && (WAVE_WIDE_HERE.get() || std::env::var_os("VICTORY_WAVE_WIDE").is_none_or(|v| v != "0")) =>
         {
             let again = widen(c, native, p, std::env::var_os("VICTORY_WAVE_WHY").is_some());
             match again {
diff --git a/crates/victory-shader/src/emit/wave64_tests.rs b/crates/victory-shader/src/emit/wave64_tests.rs
index 55cc55d..7e5673f 100644
--- a/crates/victory-shader/src/emit/wave64_tests.rs
+++ b/crates/victory-shader/src/emit/wave64_tests.rs
@@ -530,3 +530,40 @@ fn scc_of_a_mask_operation_joined_with_a_scalar_test_needs_the_skip_wave_wide()
     }
     eprintln!("ran on the hardware device: the inner test's SCC for every lane once some lane is inside");
 }
+
+#[test]
+#[ignore = "run alone with VICTORY_WAVE_WIDE=0 and VICTORY_WAVE_LOCAL=0"]
+fn wave64_scalar_join_reads_the_whole_wave_condition() {
+    super::set_host_max_wave(32);
+    let native = native(&[
+        0x7D88_0000, // compare thread index against s0
+        0xBE8C_246A, // save EXEC, keep matching lanes
+        0xBF88_0001, // skip the scalar comparison on empty EXEC
+        0xBF06_8701, // s_cmp_eq_u32 s1, 7
+        0xBEFE_040C, // restore EXEC from s[12:13]
+        0xBF85_0002, // branch to writing 2 on SCC
+        0x7E0A_0281, 0xBF82_0001, 0x7E0A_0282,
+        0x7DA4_00BF, // lane 63 alone stores the result
+        0xE070_0000, 0x8002_0500,
+    ]);
+    let p = crate::spill::build(&native).unwrap();
+    let st = structure::structure(&p).unwrap();
+    let res = resource::track(&p, &native.layout, native.stage, Some(&st)).unwrap();
+    let io = io::raise(&p, &native).unwrap();
+    let c = crate::Container { digest: [0; 16], version: (1, 0), parts: vec![] };
+    for selected in [false, true] {
+        let emitted = super::with_wave_wide(selected, || super::emit(&c, &native, &p, &st, &io, &res));
+        if !selected {
+            assert!(matches!(emitted, Err(ShaderError::Unsupported { what, .. }) if what == lower::LANE_MASK));
+            continue;
+        }
+        let shader = emitted.expect("listed shader should emit");
+        for below in [0, 1, 31, 32, 33, 63, 64] {
+            for scalar in [3, 7] {
+                let expected = if below > 0 && scalar == 7 { 2 } else { 1 };
+                assert_eq!(on_the_card(&shader, [below, scalar]), Some(expected), "below={below} scalar={scalar}");
+            }
+        }
+        eprintln!("selected: 14 hardware readbacks correct");
+    }
+}

AI-assisted (Codex).

**@⁠Dathinel** on GitHub · 2026-11-25 21:01 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7174495112) · edited 2026-11-25 21:10 UTC One reproducible cache-key collision in the selective translation path. I applied the three translator/cache files to our local Windows test tree and ran a fresh process for each environment, calling the actual `listed` and shader-cache `build()` for the particle hash: | VICTORY_WAVE_WIDE_ONLY | Particle selected | Key prefix | | --- | --- | --- | | absent | yes | 01171fd79baff9da | | present, empty string | no | 01171fd79baff9da | | literal `none` | no | 187fe912ee74847c | An unset variable selects the built-in list, while the empty list selects nothing. The cache key hashes zero value bytes in both cases. This can reuse the other configuration's translation in a shared cache. The documented `none` spelling already gives a distinct key and is suitable for an A/B today. A local one-byte presence marker inside the `Some(value)` arm of the cache-key loop separated all four tested keys (including an explicit particle hash) while preserving all four selection results. The same loop covers `VICTORY_FIRSTLANE_OWN_ONLY`. This checks policy and key generation, not frame rate or game output. **Separate hardware result on the exact PR head** (`aaf658a`, Windows, RTX 3050 Laptop 4 GB). The scalar condition join retry checks only the global switch. With global widening explicitly off, a selected synthetic Wave64 compute shader still failed at offset 0x20 (“a lane mask read as data”). The ordinary widening retry already honors the per-container override. Applying that same override in the scalar join retry created a Wave32 pipeline and produced 14/14 expected hardware readbacks; the unselected control still refused. This fixture checks lane 63 after seven different lane masks and two scalar comparison outcomes. <details><summary>Minimal change and synthetic regression against aaf658a</summary> With `VICTORY_WAVE_WIDE=0` and `VICTORY_WAVE_LOCAL=0`, run `cargo test -p victory-shader --lib wave64_scalar_join_reads -- --ignored --nocapture`. The fixture invokes the same per-container override that the cache sets after its hash lookup. ```diff diff --git a/crates/victory-shader/src/emit/mod.rs b/crates/victory-shader/src/emit/mod.rs index 6bf0a04..f0c3557 100644 --- a/crates/victory-shader/src/emit/mod.rs +++ b/crates/victory-shader/src/emit/mod.rs @@ -552,7 +552,7 @@ pub fn emit( Err(ShaderError::Unsupported { what, .. }) if native.stage == HwStage::Cs && what == lower::LANE_MASK - && std::env::var_os("VICTORY_WAVE_WIDE").is_none_or(|v| v != "0") => + && (WAVE_WIDE_HERE.get() || std::env::var_os("VICTORY_WAVE_WIDE").is_none_or(|v| v != "0")) => { let again = widen(c, native, p, std::env::var_os("VICTORY_WAVE_WHY").is_some()); match again { diff --git a/crates/victory-shader/src/emit/wave64_tests.rs b/crates/victory-shader/src/emit/wave64_tests.rs index 55cc55d..7e5673f 100644 --- a/crates/victory-shader/src/emit/wave64_tests.rs +++ b/crates/victory-shader/src/emit/wave64_tests.rs @@ -530,3 +530,40 @@ fn scc_of_a_mask_operation_joined_with_a_scalar_test_needs_the_skip_wave_wide() } eprintln!("ran on the hardware device: the inner test's SCC for every lane once some lane is inside"); } + +#[test] +#[ignore = "run alone with VICTORY_WAVE_WIDE=0 and VICTORY_WAVE_LOCAL=0"] +fn wave64_scalar_join_reads_the_whole_wave_condition() { + super::set_host_max_wave(32); + let native = native(&[ + 0x7D88_0000, // compare thread index against s0 + 0xBE8C_246A, // save EXEC, keep matching lanes + 0xBF88_0001, // skip the scalar comparison on empty EXEC + 0xBF06_8701, // s_cmp_eq_u32 s1, 7 + 0xBEFE_040C, // restore EXEC from s[12:13] + 0xBF85_0002, // branch to writing 2 on SCC + 0x7E0A_0281, 0xBF82_0001, 0x7E0A_0282, + 0x7DA4_00BF, // lane 63 alone stores the result + 0xE070_0000, 0x8002_0500, + ]); + let p = crate::spill::build(&native).unwrap(); + let st = structure::structure(&p).unwrap(); + let res = resource::track(&p, &native.layout, native.stage, Some(&st)).unwrap(); + let io = io::raise(&p, &native).unwrap(); + let c = crate::Container { digest: [0; 16], version: (1, 0), parts: vec![] }; + for selected in [false, true] { + let emitted = super::with_wave_wide(selected, || super::emit(&c, &native, &p, &st, &io, &res)); + if !selected { + assert!(matches!(emitted, Err(ShaderError::Unsupported { what, .. }) if what == lower::LANE_MASK)); + continue; + } + let shader = emitted.expect("listed shader should emit"); + for below in [0, 1, 31, 32, 33, 63, 64] { + for scalar in [3, 7] { + let expected = if below > 0 && scalar == 7 { 2 } else { 1 }; + assert_eq!(on_the_card(&shader, [below, scalar]), Some(expected), "below={below} scalar={scalar}"); + } + } + eprintln!("selected: 14 hardware readbacks correct"); + } +} ``` </details> AI-assisted (Codex).
Author
Owner

@⁠wildheathen on GitHub · 2026-11-25 21:43 UTC · original

A data point for section 3, since fxceless's README (d510ee4) says a similar change gave black or red faces in 3 launches of 3.

Machine: RTX 5080 16 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11, Series X profile.

What I ran: my own version of the same idea on ca8829f, not this PR's head. After unmap, [to, to + len) is joined with MEM_COALESCE_PLACEHOLDERS. Each run of consecutive source pages within one pool view is then mapped as one view, falling back page by page if that is refused. It ran together with a range-based remap lock like #95, #868, and placed host textures like #903.

Counts: 657,352 pages were mapped with 347,266 views over 400,000 map_alias calls in one 480 s run. That is about 1.9 pages a view, close to the README's 1.8–4.2.

Picture: captured frames from four launches with it on (cinematic and first scenes, close-ups of both leads at 1,500–3,000 frames) show no black or red faces and no garbage. Faces and skin look the same as in a launch with everything of mine off, compared shot by shot. The red-lit car interior is red with everything off too: it's the scene's light. This is a check by eye on four launches, so it does not rule out what fxceless saw.

Frame rate: in single runs, not an A/B of this change alone, adding it took the world mean from 878 to 615 ms and the frame-rate lines over 1 s from 17 to 10.

The remap lock and the placed textures may matter here: with the lock per range, a texture read no longer waits behind a remap elsewhere. Whether that changes what fxceless saw, I can't tell.

**@⁠wildheathen** on GitHub · 2026-11-25 21:43 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7175460551) A data point for section 3, since fxceless's README (`d510ee4`) says a similar change gave black or red faces in 3 launches of 3. **Machine:** RTX 5080 16 GB (driver 621.24), Ryzen 7 9800X3D, Windows 11, Series X profile. **What I ran:** my own version of the same idea on `ca8829f`, not this PR's head. After `unmap`, `[to, to + len)` is joined with `MEM_COALESCE_PLACEHOLDERS`. Each run of consecutive source pages within one pool view is then mapped as one view, falling back page by page if that is refused. It ran together with a range-based remap lock like #95, #868, and placed host textures like #903. **Counts:** 657,352 pages were mapped with 347,266 views over 400,000 `map_alias` calls in one 480 s run. That is about 1.9 pages a view, close to the README's 1.8–4.2. **Picture:** captured frames from four launches with it on (cinematic and first scenes, close-ups of both leads at 1,500–3,000 frames) show no black or red faces and no garbage. Faces and skin look the same as in a launch with everything of mine off, compared shot by shot. The red-lit car interior is red with everything off too: it's the scene's light. This is a check by eye on four launches, so it does not rule out what fxceless saw. **Frame rate:** in single runs, not an A/B of this change alone, adding it took the world mean from 878 to 615 ms and the frame-rate lines over 1 s from 17 to 10. The remap lock and the placed textures may matter here: with the lock per range, a texture read no longer waits behind a remap elsewhere. Whether that changes what fxceless saw, I can't tell.
Author
Owner

@⁠LeonardoS11 on GitHub · 2026-11-25 23:44 UTC · original

A report from an RTX 3080 Ti 12 GB (32-lane waves), Windows 11 26200, taken when this was first carried over an integration branch: frame time about doubled in the prologue room and the image broke, so we left it out (in our branch the wide forms are opt-in). I see the pool-page mapping part was since taken back for breaking faces; we have not re-measured after that, and will say so here when we do.

Written with Claude Code.

**@⁠LeonardoS11** on GitHub · 2026-11-25 23:44 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7177976585) A report from an RTX 3080 Ti 12 GB (32-lane waves), Windows 11 26200, taken when this was first carried over an integration branch: frame time about doubled in the prologue room and the image broke, so we left it out (in our branch the wide forms are opt-in). I see the pool-page mapping part was since taken back for breaking faces; we have not re-measured after that, and will say so here when we do. Written with Claude Code.
Author
Owner

@⁠TheGrayOrange on GitHub · 2026-11-26 07:55 UTC · original

I reproduced two integrity regressions in the mapping-only commit 0315f1a on Windows build 26300, using identical CPU-only tests against its parent 9376fd6.

When replacing the middle page of a three-page grouped view:

  • Both untouched neighboring pages become writable.
  • The right page loses its existing watch guard.
  • Texture invalidation is queued for the entire original view and replacement ranges instead of just the changed page.
  • Bytes, physical backing identities and section offsets remain correct.

A separate test also confirmed that grouping can coalesce two independently reserved adjacent placeholders into one native view.

Parent: 3 passed, 0 failed.
Candidate: 1 passed, 2 failed.

The apparent cause is whole-view unmapping followed by reconstruction of retained pages through the normal read-write mapping path.

I suggest retaining per-page mapping where partial replacement is possible or reservation boundaries are uncertain. Generalized grouping would need to preserve retained-page protections, watch state and logical invalidation boundaries.

I have a reproducible test patch available. These findings do not yet establish the cause of the previously reported rendering corruption.

Investigation and testing were performed with Codex assistance.

**@⁠TheGrayOrange** on GitHub · 2026-11-26 07:55 UTC · [original](https://github.com/fxceless/victory-fork/pull/823#issuecomment-7185976296) I reproduced two integrity regressions in the mapping-only commit `0315f1a` on Windows build 26300, using identical CPU-only tests against its parent `9376fd6`. When replacing the middle page of a three-page grouped view: - Both untouched neighboring pages become writable. - The right page loses its existing watch guard. - Texture invalidation is queued for the entire original view and replacement ranges instead of just the changed page. - Bytes, physical backing identities and section offsets remain correct. A separate test also confirmed that grouping can coalesce two independently reserved adjacent placeholders into one native view. Parent: 3 passed, 0 failed. Candidate: 1 passed, 2 failed. The apparent cause is whole-view unmapping followed by reconstruction of retained pages through the normal read-write mapping path. I suggest retaining per-page mapping where partial replacement is possible or reservation boundaries are uncertain. Generalized grouping would need to preserve retained-page protections, watch state and logical invalidation boundaries. I have a reproducible test patch available. These findings do not yet establish the cause of the previously reported rendering corruption. Investigation and testing were performed with Codex assistance.
github-bot closed this pull request 2026-11-26 13:14:19 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.