Since e4245f3, f133e35e (CS_ShadowRenderTiledCascadesAlphaCBPPPC) translates: stair-steps gone, but the main character's head vanishes (A/B with VICTORY_DENY_PIPELINES) #1356
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1356
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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.f133e35efed2a48ae4245f3; refused on58de9bfand before)VICTORY_DENY_PIPELINES=f133e35efed2a48aThe 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
0x2957csets 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_formatinbuffer_srvandbuffer_uav), yet heads still vanish here. Xeltax also reports that a test merge of main58de9bfinto 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. TheirVICTORY_CAPTURE_ON/VICTORY_STORE_DROPdiagnostics (VIcky cfa752e) would show which.Until then,
VICTORY_DENY_PIPELINES=f133e35efed2a48ais 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.
@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,
diagbuild on52ac4ec+ #1352/#1350/#1359 + DXC/copy-plain):VICTORY_DENY_PIPELINES: shadow stair-steps gone, head skin mesh missing (only hair/eyes/mouth visible).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):a20809dbefore58de9bf/e4245f3it rendered normally).Next testing
VICTORY_PAGE_WRITES=guardson this same stack to separate thee4245f3page-writes default change from the58de9bftranslator changes.(AI-assisted testing and summary.)
@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 thee4245f3page-writes default change and narrows the Proton regression down to the58de9bf/e4245f3shader translator changes undervkd3d-proton.(AI-assisted testing and summary.)
@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 ofVICTORY_DENY_PIPELINES=f133e35efed2a48a,VICTORY_PAGE_WRITES=guards, and disabling#927half_viewshave been ruled out individually — pointing to another translator change betweena20809dande4245f3(e.g.#3124SDWA sign extension or another newly-translated shader ine4245f3).(AI-assisted testing and summary.)
@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,
diagbuild). Base: fork main52ac4ec(#1324/#1336/#1353/#1321/#1320 merged on top ofe4245f3), noVICTORY_DENY_PIPELINES. Same scene each time (the window shot at the end of the opening cutscene, about frame 4,300).f133e35e"fp32-denorm-mode"="preserve"(in case the R32_FLOAT typed views frombit_exact_formatflush the per-tile word as a denormal)VICTORY_STORE_DROP=f133e35e:2957c(the typed-buffer bit-14 read-modify-write only)VICTORY_STORE_DROP=f133e35e:294b8+29598+294c4+295a4(the four image stores, u30/u31)VICTORY_DENY_PIPELINES=f133e35efed2a48aSo 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_FLOATafterbit_exact_format),count=57600, on 262,144-byte buffers. Nothing is misplaced there.VICTORY_STORE_DROPhere is a small port of Xeltax/VIckycfa752e'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.)
@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-protoncaches withhits=0on each commit switch):Earlier I stated that
a20809drendered 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 tob8994e1:52ac4ec+ local PRsdiag,VICTORY_DENY_PIPELINES=f133e35efed2a48a(confirmeddropped 1.0/frame) +VICTORY_TEST_OLD_LOWER=1(reverting#3124SDWA sext and#11129-bit primitive-index mask)52ac4ec+ local PRsdiag, minimalQU17-aligned env +VICTORY_DENY_PIPELINES=f133e35efed2a48a58de9bf(+#454only)diag, both with#927(half_views) enabled and withself.halves_onlyfully cleared (fixing a gap in my earlierVICTORY_NO_HALF_VIEWS=1test that missed the handle-declaration site)a20809d(+#454only)diagwith turbo switches on, with all turbo switches off, withVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chainsboth on and off; alsoreleasewithout capture46bf535(beforef6a09d3) &b8994e1diagandrelease(+#454)Takeaway: On Linux/Proton (
vkd3d-proton+ RTX 5080), the missing head skin mesh is a separate, pre-existing issue unrelated to58de9bf,e4245f3, orf133e35efed2a48a. Please treat my earlier Proton counter-data points above as separate from the Windows#1356regression.(AI-assisted bisect, log analysis, and summary.)