Since e4245f3, f133e35e (CS_ShadowRenderTiledCascadesAlphaCBPPPC) translates: stair-steps gone, but the main character's head vanishes (A/B with VICTORY_DENY_PIPELINES) #1356

Open
opened 2026-11-26 18:09:39 +00:00 by github-bot · 5 comments
Owner

@⁠regiumlepidi on GitHub · 2026-11-26 18:04 UTC · original

Setup: RTX 5070 Ti 16 GB (32-lane), Windows 11, Series X profile, opening cutscene to the first window shot (the hero seen from behind), 20-minute runs. Tree: main e4245f3 + #1189 + the pipeline pre-build (#1226), library pre-built for the run's environment. Switches in every row: ASYNC_SUBMIT QUEUE2 INDIRECT_WINDOW MERGE_GAP=64 MERGE_RUNS=4096 STAGING_POOL=0 COPY_PLAIN JOIN_PARTS BACK_OWN_VIEW INDIRECT_GATHER CARD_REHASH_RUNS CARD_BUFFERS_MIN_KB=64 CARD_BUFFERS_MB=1280 CARD_WINDOWS_MB=1024 TEXTURE_BACK CARD_HASH_LEN LEVELS_ON_DEMAND TILES_SMALL_WHEN_FULL_MB=1024 HEAP_WORKER LOOKUP_CACHE CARD_HASH_WIDE.

run f133e35efed2a48a stair-steps on shadow edges hero's head world fps (median)
QU16 translated (new with e4245f3; refused on 58de9bf and before) gone missing: hair only, wall seen through 10.3
QU17 VICTORY_DENY_PIPELINES=f133e35efed2a48a back present 10.2

The same A/B on 06702fe + DexNom's 76749ce (which made the same program translate there) gave the same split. Head missing with it running in 2 of 2 runs (with and without #927), present with it denied (VIcky#31 has that table).

On VIcky (heap-map tree), Xeltax found the cause: the program's read-modify-write at 0x2957c sets bit 14 of a per-tile word in a typed buffer (u17, a 230,400-byte buffer at 2560x1440). Without bit-exact views that wiped the tile's other flags. Their fix was bit-exact typed buffer views, which main already has (bit_exact_format in buffer_srv and buffer_uav), yet heads still vanish here. Xeltax also reports that a test merge of main 58de9bf into their tree brought texture regressions back in the same scene. Their guess is a view path that differs on main: the first element moved by the host copy's offset, or views "off their copy's elements" made on own-byte copies. Their VICTORY_CAPTURE_ON / VICTORY_STORE_DROP diagnostics (VIcky cfa752e) would show which.

Until then, VICTORY_DENY_PIPELINES=f133e35efed2a48a is a workaround that keeps the heads (at the cost of the stair-steps) with no fps change.

AI-assisted (Claude Code, Claude Opus 5.5): runs, log reading and this text. Counts and log lines only, nothing from the game attached.

**@⁠regiumlepidi** on GitHub · 2026-11-26 18:04 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356) **Setup:** RTX 5070 Ti 16 GB (32-lane), Windows 11, Series X profile, opening cutscene to the first window shot (the hero seen from behind), 20-minute runs. Tree: main e4245f3 + #1189 + the pipeline pre-build (#1226), library pre-built for the run's environment. Switches in every row: `ASYNC_SUBMIT QUEUE2 INDIRECT_WINDOW MERGE_GAP=64 MERGE_RUNS=4096 STAGING_POOL=0 COPY_PLAIN JOIN_PARTS BACK_OWN_VIEW INDIRECT_GATHER CARD_REHASH_RUNS CARD_BUFFERS_MIN_KB=64 CARD_BUFFERS_MB=1280 CARD_WINDOWS_MB=1024 TEXTURE_BACK CARD_HASH_LEN LEVELS_ON_DEMAND TILES_SMALL_WHEN_FULL_MB=1024 HEAP_WORKER LOOKUP_CACHE CARD_HASH_WIDE`. | run | `f133e35efed2a48a` | stair-steps on shadow edges | hero's head | world fps (median) | |---|---|---|---|---:| | QU16 | translated (new with e4245f3; refused on 58de9bf and before) | **gone** | **missing**: hair only, wall seen through | 10.3 | | QU17 | `VICTORY_DENY_PIPELINES=f133e35efed2a48a` | back | **present** | 10.2 | The same A/B on 06702fe + DexNom's 76749ce (which made the same program translate there) gave the same split. Head missing with it running in 2 of 2 runs (with and without #927), present with it denied (VIcky#31 has that table). On VIcky (heap-map tree), Xeltax found the cause: the program's read-modify-write at `0x2957c` sets bit 14 of a per-tile word in a typed buffer (u17, a 230,400-byte buffer at 2560x1440). Without bit-exact views that wiped the tile's other flags. Their fix was bit-exact typed buffer views, which main already has (`bit_exact_format` in `buffer_srv` and `buffer_uav`), yet heads still vanish here. Xeltax also reports that a test merge of main 58de9bf into their tree brought texture regressions back in the same scene. Their guess is a view path that differs on main: the first element moved by the host copy's offset, or views "off their copy's elements" made on own-byte copies. Their `VICTORY_CAPTURE_ON` / `VICTORY_STORE_DROP` diagnostics (VIcky cfa752e) would show which. Until then, `VICTORY_DENY_PIPELINES=f133e35efed2a48a` is a workaround that keeps the heads (at the cost of the stair-steps) with no fps change. AI-assisted (Claude Code, Claude Opus 5.5): runs, log reading and this text. Counts and log lines only, nothing from the game attached.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:09:39 +00:00
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-26 19:23 UTC · original

Linux/Proton counter-data point (GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile, diag build on 52ac4ec + #1352/#1350/#1359 + DXC/copy-plain):

  • Without VICTORY_DENY_PIPELINES: shadow stair-steps gone, head skin mesh missing (only hair/eyes/mouth visible).
  • With VICTORY_DENY_PIPELINES=f133e35efed2a48a (confirmed active in log: pipeline not built: its shader is in VICTORY_DENY_PIPELINES, dropped 1.0–1.3/frame without a host pipeline):
    • Shadow stair-steps on the shoulder/collar came back as expected.
    • However, the head skin mesh remained missing in captured world frames under Proton/vkd3d-proton (whereas on a20809d before 58de9bf/e4245f3 it rendered normally).

Next testing VICTORY_PAGE_WRITES=guards on this same stack to separate the e4245f3 page-writes default change from the 58de9bf translator changes.

(AI-assisted testing and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-26 19:23 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356#issuecomment-7201534247) Linux/Proton counter-data point (GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile, `diag` build on `52ac4ec` + #1352/#1350/#1359 + DXC/copy-plain): - **Without `VICTORY_DENY_PIPELINES`:** shadow stair-steps gone, head skin mesh missing (only hair/eyes/mouth visible). - **With `VICTORY_DENY_PIPELINES=f133e35efed2a48a`** (confirmed active in log: `pipeline not built: its shader is in VICTORY_DENY_PIPELINES`, `dropped 1.0–1.3/frame without a host pipeline`): - Shadow stair-steps on the shoulder/collar **came back** as expected. - However, the head skin mesh **remained missing** in captured world frames under Proton/vkd3d-proton (whereas on `a20809d` before `58de9bf`/`e4245f3` it rendered normally). Next testing `VICTORY_PAGE_WRITES=guards` on this same stack to separate the `e4245f3` page-writes default change from the `58de9bf` translator changes. *(AI-assisted testing and summary.)*
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-26 19:33 UTC · original

Follow-up on the same Linux/Proton stack with VICTORY_PAGE_WRITES=guards (matching pre-e4245f3): character heads (main character and NPCs) still remain missing, so this rules out the e4245f3 page-writes default change and narrows the Proton regression down to the 58de9bf/e4245f3 shader translator changes under vkd3d-proton.

(AI-assisted testing and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-26 19:33 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356#issuecomment-7201715138) Follow-up on the same Linux/Proton stack with `VICTORY_PAGE_WRITES=guards` (matching pre-`e4245f3`): character heads (main character and NPCs) still remain missing, so this rules out the `e4245f3` page-writes default change and narrows the Proton regression down to the `58de9bf`/`e4245f3` shader translator changes under `vkd3d-proton`. *(AI-assisted testing and summary.)*
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-26 19:45 UTC · original

One more A/B on the same Linux/Proton stack: gating off #927 (HostShader::half_views) with a fresh shader/pipeline cache also left character heads missing. So on Proton/vkd3d-proton, all three of VICTORY_DENY_PIPELINES=f133e35efed2a48a, VICTORY_PAGE_WRITES=guards, and disabling #927 half_views have been ruled out individually — pointing to another translator change between a20809d and e4245f3 (e.g. #3124 SDWA sign extension or another newly-translated shader in e4245f3).

(AI-assisted testing and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-26 19:45 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356#issuecomment-7201924210) One more A/B on the same Linux/Proton stack: gating off `#927` (`HostShader::half_views`) with a fresh shader/pipeline cache also left character heads missing. So on Proton/vkd3d-proton, all three of `VICTORY_DENY_PIPELINES=f133e35efed2a48a`, `VICTORY_PAGE_WRITES=guards`, and disabling `#927` `half_views` have been ruled out individually — pointing to another translator change between `a20809d` and `e4245f3` (e.g. `#3124` SDWA sign extension or another newly-translated shader in `e4245f3`). *(AI-assisted testing and summary.)*
Author
Owner

@⁠regiumlepidi on GitHub · 2026-11-26 20:24 UTC · original

More on this from the RTX 5070 Ti (Windows 11, NVIDIA 617.42, Series X profile, diag build). Base: fork main 52ac4ec (#1324/#1336/#1353/#1321/#1320 merged on top of e4245f3), no VICTORY_DENY_PIPELINES. Same scene each time (the window shot at the end of the opening cutscene, about frame 4,300).

run change f133e35e shoulder/wall stair-steps head skin
HF2 DXIL entry functions get "fp32-denorm-mode"="preserve" (in case the R32_FLOAT typed views from bit_exact_format flush the per-tile word as a denormal) runs gone missing
HF3 VICTORY_STORE_DROP=f133e35e:2957c (the typed-buffer bit-14 read-modify-write only) runs gone missing
HF4 VICTORY_STORE_DROP=f133e35e:294b8+29598+294c4+295a4 (the four image stores, u30/u31) runs gone missing
HF5 all five stores dropped runs, writes nothing back missing
QU17 VICTORY_DENY_PIPELINES=f133e35efed2a48a not built back present

So on this card the head is lost even when the translated program writes nothing at all, while it comes back when the pipeline isn't built. The damage looks host-side, from what happens around the dispatch rather than from the program's output: the views made for its tables, or the buffers its UAVs are bound to being treated as written (copied back or relayed to title memory, or re-snapshotted).

To check the view path I logged every buffer view of 230,400 bytes (u17's size, four 32-bit words per 16x16 tile at 2560x1440). All of them are made at offset 0 of their own host copy (own=false, offset=0), format 41 (R32_FLOAT after bit_exact_format), count=57600, on 262,144-byte buffers. Nothing is misplaced there.

VICTORY_STORE_DROP here is a small port of Xeltax/VIcky cfa752e's switch (translator only: those store offsets left out of that program's translation). I can push it as a PR if it's useful. Next I'll try turning off the copy-back/relay for that program's UAV buffers.

This matches BitWuehler's RTX 5080 result above, while Xeltax's RTX 4080 keeps the heads with the program running. So far it's only seen on Blackwell cards.

(AI-assisted: Claude Code ran the builds and tests, read the logs and wrote this. No game data attached.)

**@⁠regiumlepidi** on GitHub · 2026-11-26 20:24 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356#issuecomment-7202633197) More on this from the RTX 5070 Ti (Windows 11, NVIDIA 617.42, Series X profile, `diag` build). Base: fork main `52ac4ec` (#1324/#1336/#1353/#1321/#1320 merged on top of `e4245f3`), no `VICTORY_DENY_PIPELINES`. Same scene each time (the window shot at the end of the opening cutscene, about frame 4,300). | run | change | `f133e35e` | shoulder/wall stair-steps | head skin | |---|---|---|---|---| | HF2 | DXIL entry functions get `"fp32-denorm-mode"="preserve"` (in case the R32_FLOAT typed views from `bit_exact_format` flush the per-tile word as a denormal) | runs | gone | **missing** | | HF3 | `VICTORY_STORE_DROP=f133e35e:2957c` (the typed-buffer bit-14 read-modify-write only) | runs | gone | **missing** | | HF4 | `VICTORY_STORE_DROP=f133e35e:294b8+29598+294c4+295a4` (the four image stores, u30/u31) | runs | gone | **missing** | | HF5 | all five stores dropped | runs, writes nothing | **back** | **missing** | | QU17 | `VICTORY_DENY_PIPELINES=f133e35efed2a48a` | not built | back | present | So on this card the head is lost even when the translated program **writes nothing at all**, while it comes back when the pipeline isn't built. The damage looks host-side, from what happens around the dispatch rather than from the program's output: the views made for its tables, or the buffers its UAVs are bound to being treated as written (copied back or relayed to title memory, or re-snapshotted). To check the view path I logged every buffer view of 230,400 bytes (`u17`'s size, four 32-bit words per 16x16 tile at 2560x1440). All of them are made at offset 0 of their own host copy (`own=false`, `offset=0`), format 41 (`R32_FLOAT` after `bit_exact_format`), `count=57600`, on 262,144-byte buffers. Nothing is misplaced there. `VICTORY_STORE_DROP` here is a small port of Xeltax/VIcky `cfa752e`'s switch (translator only: those store offsets left out of that program's translation). I can push it as a PR if it's useful. Next I'll try turning off the copy-back/relay for that program's UAV buffers. This matches BitWuehler's RTX 5080 result above, while Xeltax's RTX 4080 keeps the heads with the program running. So far it's only seen on Blackwell cards. *(AI-assisted: Claude Code ran the builds and tests, read the logs and wrote this. No game data attached.)*
Author
Owner

@⁠BitWuehler on GitHub · 2026-11-26 22:58 UTC · original

Correction and full bisect update on the Linux/Proton side (CachyOS, GE-Proton11-14 + vkd3d-proton, RTX 5080 16 GB, Series X profile, fresh DXIL + vkd3d-proton caches with hits=0 on each commit switch):

Earlier I stated that a20809d rendered character heads normally on this setup. Direct re-testing disproved that: the missing head skin mesh (affecting both the main character and background NPCs, while hair, eyes, and mouth still render) reproduces across every tested commit back to b8994e1:

commit / branch build & switches head skin
52ac4ec + local PRs diag, VICTORY_DENY_PIPELINES=f133e35efed2a48a (confirmed dropped 1.0/frame) + VICTORY_TEST_OLD_LOWER=1 (reverting #3124 SDWA sext and #1112 9-bit primitive-index mask) missing
52ac4ec + local PRs diag, minimal QU17-aligned env + VICTORY_DENY_PIPELINES=f133e35efed2a48a missing
58de9bf (+ #454 & #20 only) diag, both with #927 (half_views) enabled and with self.halves_only fully cleared (fixing a gap in my earlier VICTORY_NO_HALF_VIEWS=1 test that missed the handle-declaration site) missing
a20809d (+ #454 & #20 only) diag with turbo switches on, with all turbo switches off, with VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains both on and off; also release without capture missing
46bf535 (before f6a09d3) & b8994e1 diag and release (+ #454 & #20) missing

Takeaway: On Linux/Proton (vkd3d-proton + RTX 5080), the missing head skin mesh is a separate, pre-existing issue unrelated to 58de9bf, e4245f3, or f133e35efed2a48a. Please treat my earlier Proton counter-data points above as separate from the Windows #1356 regression.

(AI-assisted bisect, log analysis, and summary.)

**@⁠BitWuehler** on GitHub · 2026-11-26 22:58 UTC · [original](https://github.com/fxceless/victory-fork/issues/1356#issuecomment-7205148585) Correction and full bisect update on the Linux/Proton side (CachyOS, GE-Proton11-14 + `vkd3d-proton`, RTX 5080 16 GB, Series X profile, fresh DXIL + `vkd3d-proton` caches with `hits=0` on each commit switch): Earlier I stated that `a20809d` rendered character heads normally on this setup. Direct re-testing disproved that: the missing head skin mesh (affecting both the main character and background NPCs, while hair, eyes, and mouth still render) reproduces across every tested commit back to `b8994e1`: | commit / branch | build & switches | head skin | |---|---|---| | `52ac4ec` + local PRs | `diag`, `VICTORY_DENY_PIPELINES=f133e35efed2a48a` (confirmed `dropped 1.0/frame`) + `VICTORY_TEST_OLD_LOWER=1` (reverting `#3124` SDWA sext and `#1112` 9-bit primitive-index mask) | missing | | `52ac4ec` + local PRs | `diag`, minimal `QU17`-aligned env + `VICTORY_DENY_PIPELINES=f133e35efed2a48a` | missing | | `58de9bf` (+ `#454` & `#20` only) | `diag`, both with `#927` (`half_views`) enabled and with `self.halves_only` fully cleared (fixing a gap in my earlier `VICTORY_NO_HALF_VIEWS=1` test that missed the handle-declaration site) | missing | | `a20809d` (+ `#454` & `#20` only) | `diag` with turbo switches on, with all turbo switches off, with `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` both on and off; also `release` without capture | missing | | `46bf535` (before `f6a09d3`) & `b8994e1` | `diag` and `release` (+ `#454` & `#20`) | missing | **Takeaway:** On Linux/Proton (`vkd3d-proton` + RTX 5080), the missing head skin mesh is a separate, pre-existing issue unrelated to `58de9bf`, `e4245f3`, or `f133e35efed2a48a`. Please treat my earlier Proton counter-data points above as separate from the Windows `#1356` regression. *(AI-assisted bisect, log analysis, and summary.)*
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#1356
No description provided.