No reviewers
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!487
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-487"
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?
@pepezin-ai on GitHub · 2026-11-25 01:26 UTC · original
pepezin-ai:bundle/rt-shaders→main· +532 −59 · 9 files · 6 commits · openWhat
The three open PRs below, merged onto
main@a803c87and run together on a 32-lane NVIDIA card:VICTORY_HOST_WAVE=32)Each PR keeps its own commits and author; this branch only adds the merges.
Conflict resolved
#156 against current
mainconflicts in one place, thepub use shader::{...}list incrates/victory-shader/src/emit/mod.rs:mainaddedview_heap_limit, #156 addedSLOT_ADDRESSESandSLOT_STRIDES_DWORDS. The merge keeps all of them; nothing else in the file differs frommain.Verified
Windows 11, AMD Ryzen 7 5700X (8C/16T), 32 GB DDR4-3200, NVIDIA RTX 5070 12 GB, Series X profile, release build,
VICTORY_HOST_WAVE=32, AnyXboxX tuned settings (LATE_WAIT=3,WIDE_BACK=1,CARD_BUFFERS_MB=1024, loop limit 256).cargo build --release: ok.cargo test --workspace -- --test-threads=1: 506 passed, 0 failed. (With parallel test threads thevictory-gpulib tests once stopped with STATUS_ACCESS_VIOLATION; run one at a time, all 112 pass on this branch and on plainmain, so it looks like a race between tests rather than these PRs.)main@a803c87already carries a form of it.No game files, logs with paths, or personal data in this PR.
Three translator gaps that dropped world shaders (46 programs of the retail pack; 0 that translated before stop now, by a whole-pack `translate --validate --list` against the previous commit): - A descriptor nothing uses as one, whose dwords the code reads all the same ("a descriptor read only as data", 35, and one "a descriptor's address or format read as data"): an 8-dword image picked from the heap by an index in a constant buffer, its width/height/base level turned into a texel size (PS_PuddleDetect, 34 pixel programs), or a 4-dword buffer tested for being empty by its record count (ShallowWaterSim:CS_MinTimestepReduce). New `unused_descriptor_kind` gives such loads a kind (image: a 2D texture, documented as a shortcut; buffer: a raw view) and `descriptor_data` rebuilds their size dwords from the host view as it does for used descriptors; the buffer's address dwords come from the host as before. Lane-copied descriptors and samplers keep their own handling (checked first). - The first half of an f16 interpolation pair whose register an f16 second half then writes the high half of ("the first half of an interpolation", 8, PS_DeferredTextured and mirror-reflection variants): the second half keeps the low half of the register, which the first half wrote and nothing reads. The first half of a pair now writes 0. - A 16-bit float wave sum where some lanes have left the program ("a wave sum of 16-bit floats where not every lane runs", 2, compute_graph_ops:CS_TransposeVecMatMul*): on a host wave of 64 lanes, `half_sum_present` follows the console's balanced tree, each lane reading its partner run's partial sum from the first lane of that run that is here (every lane of an aligned run holds the run's sum on the console, the ones outside EXEC included), +0 where none is. Two host waves of 32 still refuse it. Tests: a GPU test of the 16-bit sum with 64, 63, 40, 33, 32, 17, 5 and 1 lanes staying, bit for bit against the console's tree (RX 7900 XT). cargo test --workspace and clippy -D warnings pass. Co-Authored-By: Claude Opus 5.5 <[email protected]>@Curry-976 on GitHub · 2026-11-25 05:53 UTC · original
Test report for this bundle's head
f1475073e053413e66ceb44fa90abd7fc8632b50on a 6 GB laptop GPU with 32-lane waves. I ran it three times with the same settings: with the structure builder on, with it on and quarantined, and with it off. The builder starts on this card, and then the title crashes. With quarantine it still crashes. Without the builder, the run holds.Machine
cargo build --release -p victoryon this head; the test suite was not run.VICTORY_HOST_WAVE=32 VICTORY_RELAY=2.Results
VICTORY_BVH_BUILDER=1the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53; the title crashes (0xC0000005) 16 s laterVICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1Run 1: first-chance exceptions in the title's own code just before the crash:
title+0x4684e7(repeated, several threads), reading0xffffffffffffffff,0x7c0601a093e4(nothing mapped) and0x7fd3b0000(reserved, never committed)title+0x4e9d800,title+0x52ecfd9andtitle+0x8f92a, as well asVCRUNTIME140.dll+0x11297and+0x10d7b0x7c00f95afc0050aeThe title then ran its crash reporter; the layer blocked the upload. Four compute pipelines were refused by the driver with
E_INVALIDARGearlier in the run. The title reported memory load at 99 % at the crash.My guess:
0x7c00is the half-float infinity, so this looks like #16. Box bounds written by the builder get read as pointers by the CPU side. I did not check this in the code.Run 2 (quarantine): the exceptions move to
title+0x47de5, again reading0xffffffffffffffff, and the0x7c00pattern does not appear. In the last frame line before the crash,preparingrose to 8994 ms with copies of 1541 MB per frame; that frame took 10726 ms, with 4881 draws. So quarantine delays the crash, but it does not prevent it on this card.Run 3 (control): 0.3 to 2.9 fps. The slow frames (1–3.3 s) come from texture preparation when new areas load. Once a scene settles, frames take 345–475 ms at about 5,200 draws, of which roughly 300 ms is copying back and 120–240 ms is GPU time. Lighting on faces and skin in the cutscenes is clearly better than on
main310c6ebon this machine. Since the builder is off, this comes from #203 and/or #156. Shadowed areas are still dark. Peak private memory was 19 GB, with about 1 GB of physical RAM left.Not tested
VICTORY_BVH_SKIPor other diagnostics.AI use
@loftymocha on GitHub · 2026-11-25 08:18 UTC · original
Heads-up: as of fork
main9376fd6, this PR no longer merges cleanly.git mergestops on a conflict incrates/victory-shader/src/emit/lower.rs(emit/mod.rsauto-merges). Curry-976 also reported in #16 that it conflicts with #36 and #646.I wanted to check it offline on an RTX 5070 (32-lane) against the title's shader pack. The interest is the five
shadowmask:CS_TraceShadowRays_*programs, which still fail on9376fd6witha descriptor read only as datawhen translated as a 32-lane host. If you rebase it, I can post the before/after counts of the failing programs (hashes and reasons only, no game data).AI-assisted (Claude Code, Claude Opus 5.5).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.