RTX 5070 Ti, Windows 11: 44 shaders do not translate (1456/5173 draws dropped) - VICTORY_SHADER_DIAG report; VICTORY_WAVE_WIDE=1 removes the device #394

Open
opened 2026-11-26 03:42:26 +00:00 by github-bot · 3 comments
Owner

@⁠BTekV4 on GitHub · 2026-11-25 00:19 UTC · original

Structured diagnostics from a full prologue run (RTX 5070 Ti, Windows 11)

Collected with the build from PR #376 (VICTORY_SHADER_DIAG), on 2119b0e + these PRs merged cleanly:
#340 #341 #343 #344 #345 #346 #347 #348 #349 #353 #354 #357 #358 #359 (+ #376, #377).

  • Windows 11 x64, RTX 5070 Ti, driver 6xx, 32 GB+ RAM
  • Env: VICTORY_SHADER_DIAG=<dir> VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1
  • Run: victory.exe run <dump>\game_scarlett_master.exe --execute, through the prologue (~2.5 min)
  • Records: 34,192 — shader-diag.jsonl (11.8 MB) available on request

Classification totals

classification count
device-method-unimplemented 28,139 (slot 0x1c8: 25,450 / slot 0x218: 2,689)
ok 5,774
depth-bounds-unsupported 224
missing-shader 44
pipeline-refused 10
mesh-pipeline-refused 1

missing-shader: 44 shaders, seven translation gaps

count error shader hashes
15 a lane mask exchanged where not every lane runs 14264103296aa43a, 17af15c4015cb4b6, 227a043578e42fd8, 2809db6c31de483d, 2b17036bf3a1d615, 73ac67482f6b6a5d, 8dd8d739047fe557, 92c12c7a7d607a9a, 9d1d228b02e56a96, c5cb8ef6e18af21a, e07a678d3f79d4cd, e75ab410050ae3e0, f133e35efed2a48a, f8a6133bfedc5759, fdd56d97a806bcca
15 a whole-wave section step the simulation does not follow 119ee96f602f1668, 25328ea424d08c00, 321cc098721d9ca3, 3a3c2b3f2364d207, 55679a0547649d0b, 5a51983c7d66607b, 5ff1c28eb25904c0, 68c2568ad0d4f2eb, 715da27a0501263f, 89d08e561897d4e5, a1bf269d5b19f025, aab1b3c7248ee5de, b1317a69b11072be, b2efa9e53e9aa087, ba8d7e9186d13c60
7 a descriptor read only as data (pixel) 2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, 8660e9822ebe4b62, abc6a80d46edc294, c8df7216c69cecbd, e5b2121a02f4f741
3 v_cvt_f32_f64 5dc3b25986622949, 6f225b641c5b0708, 926c46bab3b86bd6
2 the first half of an interpolation (pixel) 38bf0814e721a1b3, 78f3f2fc53a69531
1 a descriptor's address or format read as data ceb5eb68cd99cb07
1 a first-lane read where not every lane runs bad01f53f53248e5

pipeline-refused: 10 compute pipelines, all E_INVALIDARG

2da4beb386509b77, 369cbe906ea72764, 0452fc2d2e2fc4c3, 9f017d9011377efa, 87bf9e3f2bf2f052, 2cc4c197ee29e291, e3730d3d043e0d90, eeed82b877b44b5f, 02384a60fda6f2d0, 6b82bc7d22016cb5

Mapping to the raw log (same run, selection=default)

5173 draws/frame, dropped 1456 without a host pipeline and 49 indirect
card's clock per frame: nothing of ours queued 192.8 ms (card ~41% busy),
   187.2 ms of that while the submitting thread was working (card idle behind us),
   the submitting thread stood waiting for the card 137.7 ms
our passes over copies in the card's memory per frame: 561 hash passes over 1442 pieces

With VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1:

default joined
fps 2.6 4–5
card busy 41% 60%
submitting thread waiting for the card 137.7 ms 69.6 ms
hash passes per frame 561 154–165

VICTORY_WAVE_WIDE=1

dropped 0 without a host pipeline (1784 being made) — the 64-lane forms do cover those shaders — but the
device is removed ~75 s in, reproducibly:

ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs
   (0x887A0004); device removed: The GPU will not respond to more commands (0x887A0006)
WARN victory_gpu::pipeline::host: host mesh pipeline refused error=0x887A0005
   shaders=[mesh 70878454f1720c4d, pixel ba2d23247539e1f2]

Note on the two unimplemented device methods

Slot 0x1c8 is called 25,450 times in one prologue run and 0x218 2,689 times. If either is on a
per-draw or per-copy path, it may be worth checking what they are (ID3D12Device12+ methods?).

Linux (for #365, separate failure)

Same build under Wine + vkd3d-proton (GE-Proton10-4, CachyOS) dies deterministically 33–100 s after start at
victory-image-<hash>.dll+0x2215c35 (0xc0000005, write 0x0), no Xid/MMU in the kernel window, no
Required WaveSize line even with cold shader cache + no_shader_cache at VKD3D_DEBUG=warn.
On Windows the same binary does not crash there.

**@⁠BTekV4** on GitHub · 2026-11-25 00:19 UTC · [original](https://github.com/fxceless/victory-fork/issues/394) # Structured diagnostics from a full prologue run (RTX 5070 Ti, Windows 11) Collected with the build from PR #376 (`VICTORY_SHADER_DIAG`), on `2119b0e` + these PRs merged cleanly: `#340 #341 #343 #344 #345 #346 #347 #348 #349 #353 #354 #357 #358 #359` (+ #376, #377). - Windows 11 x64, RTX 5070 Ti, driver 6xx, 32 GB+ RAM - Env: `VICTORY_SHADER_DIAG=<dir> VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1` - Run: `victory.exe run <dump>\game_scarlett_master.exe --execute`, through the prologue (~2.5 min) - Records: **34,192** — `shader-diag.jsonl` (11.8 MB) available on request ## Classification totals | classification | count | |---|---| | `device-method-unimplemented` | **28,139** (slot `0x1c8`: 25,450 / slot `0x218`: 2,689) | | `ok` | 5,774 | | `depth-bounds-unsupported` | 224 | | `missing-shader` | **44** | | `pipeline-refused` | 10 | | `mesh-pipeline-refused` | 1 | ## missing-shader: 44 shaders, seven translation gaps | count | error | shader hashes | |---|---|---| | 15 | `a lane mask exchanged where not every lane runs` | 14264103296aa43a, 17af15c4015cb4b6, 227a043578e42fd8, 2809db6c31de483d, 2b17036bf3a1d615, 73ac67482f6b6a5d, 8dd8d739047fe557, 92c12c7a7d607a9a, 9d1d228b02e56a96, c5cb8ef6e18af21a, e07a678d3f79d4cd, e75ab410050ae3e0, f133e35efed2a48a, f8a6133bfedc5759, fdd56d97a806bcca | | 15 | `a whole-wave section step the simulation does not follow` | 119ee96f602f1668, 25328ea424d08c00, 321cc098721d9ca3, 3a3c2b3f2364d207, 55679a0547649d0b, 5a51983c7d66607b, 5ff1c28eb25904c0, 68c2568ad0d4f2eb, 715da27a0501263f, 89d08e561897d4e5, a1bf269d5b19f025, aab1b3c7248ee5de, b1317a69b11072be, b2efa9e53e9aa087, ba8d7e9186d13c60 | | 7 | `a descriptor read only as data` (pixel) | 2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, 8660e9822ebe4b62, abc6a80d46edc294, c8df7216c69cecbd, e5b2121a02f4f741 | | 3 | `v_cvt_f32_f64` | 5dc3b25986622949, 6f225b641c5b0708, 926c46bab3b86bd6 | | 2 | `the first half of an interpolation` (pixel) | 38bf0814e721a1b3, 78f3f2fc53a69531 | | 1 | `a descriptor's address or format read as data` | ceb5eb68cd99cb07 | | 1 | `a first-lane read where not every lane runs` | bad01f53f53248e5 | ## pipeline-refused: 10 compute pipelines, all E_INVALIDARG `2da4beb386509b77, 369cbe906ea72764, 0452fc2d2e2fc4c3, 9f017d9011377efa, 87bf9e3f2bf2f052, 2cc4c197ee29e291, e3730d3d043e0d90, eeed82b877b44b5f, 02384a60fda6f2d0, 6b82bc7d22016cb5` ## Mapping to the raw log (same run, `selection=default`) ``` 5173 draws/frame, dropped 1456 without a host pipeline and 49 indirect card's clock per frame: nothing of ours queued 192.8 ms (card ~41% busy), 187.2 ms of that while the submitting thread was working (card idle behind us), the submitting thread stood waiting for the card 137.7 ms our passes over copies in the card's memory per frame: 561 hash passes over 1442 pieces ``` With `VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1 VICTORY_RELAY=2 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1`: | | default | joined | |---|---|---| | fps | 2.6 | **4–5** | | card busy | 41% | **60%** | | submitting thread waiting for the card | 137.7 ms | **69.6 ms** | | hash passes per frame | 561 | **154–165** | ## `VICTORY_WAVE_WIDE=1` `dropped 0 without a host pipeline (1784 being made)` — the 64-lane forms do cover those shaders — but the device is removed ~75 s in, reproducibly: ``` ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (0x887A0004); device removed: The GPU will not respond to more commands (0x887A0006) WARN victory_gpu::pipeline::host: host mesh pipeline refused error=0x887A0005 shaders=[mesh 70878454f1720c4d, pixel ba2d23247539e1f2] ``` ## Note on the two unimplemented device methods Slot `0x1c8` is called **25,450** times in one prologue run and `0x218` **2,689** times. If either is on a per-draw or per-copy path, it may be worth checking what they are (`ID3D12Device12`+ methods?). ## Linux (for #365, separate failure) Same build under Wine + vkd3d-proton (GE-Proton10-4, CachyOS) dies deterministically 33–100 s after start at `victory-image-<hash>.dll+0x2215c35` (`0xc0000005`, write 0x0), no Xid/MMU in the kernel window, no `Required WaveSize` line even with cold shader cache + `no_shader_cache` at `VKD3D_DEBUG=warn`. On Windows the same binary does not crash there.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:42:26 +00:00
Author
Owner

@⁠BTekV4 on GitHub · 2026-11-25 00:29 UTC · original

Update from the same machine (RTX 5070 Ti, Windows 11), now on 31714de (i.e. with yesterday's two commits: 3bff182 "test/fx-prs" and 31714de "fix/amd-view-heap-clamp") plus #376 for the diagnostics. Same run, same switches (VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1), same ~2.5 min of prologue.

The two commits are a large win here. Against my earlier numbers on 2119b0e + the open PRs:

2119b0e + PRs 31714de
missing-shader 44 10
dropped draws per frame 1456 of 5173 502 of 5175
pipeline-refused 10 7
ok 5774 5870
device-method-unimplemented 28,139 28,139 (unchanged)
depth-bounds-unsupported 224 224

The whole whole-wave section step class (15) and almost all of a lane mask exchanged where not every lane runs (15) are gone. What is left, by class and hash:

7× a descriptor read only as data (all pixel)
2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, 8660e9822ebe4b62, abc6a80d46edc294, c8df7216c69cecbd, e5b2121a02f4f741

1× a descriptor's address or format read as data — ceb5eb68cd99cb07
1× a lane mask exchanged where not every lane runs — f133e35efed2a48a
1× a lane mask holding lanes elsewhere read as data — 926c46bab3b86bd6

7× pipeline-refused, all E_INVALIDARG (0x80070057) on compute pipelines (down from 10).

Two observations that may be worth more than the counts:

  1. The descriptor ... read as data family is now the single biggest correctness gap (8 of the 10 remaining shaders, 7 of them pixel). If that class is tractable, this alone would clear most of what is still missing on screen.
  2. device-method-unimplemented did not move at all: still 28,139 records, slot 0x1c8 25,450 calls and 0x218 2,689, i.e. ~82% of the diagnostic file. Whatever those two are, they are on a hot path and invisible in the plain log.
  3. Note on performance, same build: 0.2 fps, 4017 ms/frame (3390 preparing: copies 70 ms, textures 3226 ms; 229 on the GPU), 361 texture slots waiting, 14.6 GB uploaded. The frame is now dominated by texture refresh, not by the GPU (229 ms). If the new commits made more textures live, this is where the time went — it may be worth checking against VICTORY_TEXTURE_NO_WAIT / VICTORY_TEXTURE_GUARD and the refresh path in #343.

Full JSONL (11.8 MB, 34,251 records) on request.

**@⁠BTekV4** on GitHub · 2026-11-25 00:29 UTC · [original](https://github.com/fxceless/victory-fork/issues/394#issuecomment-7148564834) Update from the same machine (RTX 5070 Ti, Windows 11), now on **`31714de`** (i.e. with yesterday's two commits: `3bff182` "test/fx-prs" and `31714de` "fix/amd-view-heap-clamp") plus #376 for the diagnostics. Same run, same switches (`VICTORY_CARD_REHASH_RUNS=1 VICTORY_JOIN_COPIES=1`), same ~2.5 min of prologue. **The two commits are a large win here.** Against my earlier numbers on `2119b0e` + the open PRs: | | `2119b0e` + PRs | **`31714de`** | |---|---|---| | `missing-shader` | 44 | **10** | | `dropped` draws per frame | 1456 of 5173 | **502 of 5175** | | `pipeline-refused` | 10 | **7** | | `ok` | 5774 | 5870 | | `device-method-unimplemented` | 28,139 | 28,139 (unchanged) | | `depth-bounds-unsupported` | 224 | 224 | The whole `whole-wave section step` class (15) and almost all of `a lane mask exchanged where not every lane runs` (15) are gone. What is left, by class and hash: **7× `a descriptor read only as data`** (all pixel) `2fd01fca16993001`, `6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `8660e9822ebe4b62`, `abc6a80d46edc294`, `c8df7216c69cecbd`, `e5b2121a02f4f741` **1× `a descriptor's address or format read as data`** — `ceb5eb68cd99cb07` **1× `a lane mask exchanged where not every lane runs`** — `f133e35efed2a48a` **1× `a lane mask holding lanes elsewhere read as data`** — `926c46bab3b86bd6` **7× `pipeline-refused`, all `E_INVALIDARG (0x80070057)`** on compute pipelines (down from 10). Two observations that may be worth more than the counts: 1. **The `descriptor ... read as data` family is now the single biggest correctness gap** (8 of the 10 remaining shaders, 7 of them pixel). If that class is tractable, this alone would clear most of what is still missing on screen. 2. **`device-method-unimplemented` did not move at all**: still 28,139 records, slot `0x1c8` 25,450 calls and `0x218` 2,689, i.e. ~82% of the diagnostic file. Whatever those two are, they are on a hot path and invisible in the plain log. 3. Note on performance, same build: `0.2 fps, 4017 ms/frame (3390 preparing: copies 70 ms, textures 3226 ms; 229 on the GPU)`, `361` texture slots waiting, 14.6 GB uploaded. The frame is now dominated by **texture refresh**, not by the GPU (229 ms). If the new commits made more textures live, this is where the time went — it may be worth checking against `VICTORY_TEXTURE_NO_WAIT` / `VICTORY_TEXTURE_GUARD` and the refresh path in #343. Full JSONL (11.8 MB, 34,251 records) on request.
Author
Owner

@⁠BTekV4 on GitHub · 2026-11-25 00:49 UTC · original

PR triage on this hardware (RTX 5070 Ti, Windows 11, 31714de + #376, same automated prologue run for every build — world loaded, ~5000 draws/frame, 150 s):

build missing-shader pipeline-refused
baseline a8826150 (main + #376) 10 7
+ #351 764d42be 10 7
+ #352 a9b7877c 10 7
+ #350 378fb4f5 10 7
+ #355 86b3ffd8 10 7

All four give no measurable change on this title/scene, which is consistent with yesterday's merges having already removed the classes they targeted (whole-wave section step and lane mask exchanged are gone from the run; 30 of the 44 shaders I reported earlier). I left a note on each PR saying so, plus the detail that each conflicts with 31714de only in crates/victory-shader/src/emit/valu_tests.rs — the functional code applies cleanly, so rebasing is trivial if they are kept for forms the prologue does not exercise.

What is left, in one place: 10 shaders — 7× a descriptor read only as data (pixel: 2fd01fca16993001, 6b6db9f1a526daeb, 7d0f14ce44746d7e, 8660e9822ebe4b62, abc6a80d46edc294, c8df7216c69cecbd, e5b2121a02f4f741), 1× a descriptor's address or format read as data (ceb5eb68cd99cb07), 1× a lane mask exchanged where not every lane runs (f133e35efed2a48a), 1× a lane mask holding lanes elsewhere read as data (926c46bab3b86bd6) — and 7 compute pipelines refused with E_INVALIDARG.

The descriptor ... read as data family is now the biggest single gap: 8 of the 10 remaining shaders, 7 of them pixel-stage.

One more number from these runs, in case it is useful: with the world loaded, dropped draws sit at 502–1013 of ~3800–5500 per frame depending on where in the prologue the frame lands, and the frame is dominated by textures (2.2–4.8 s per frame) rather than by the GPU (0.2–0.3 s of it on the card).

**@⁠BTekV4** on GitHub · 2026-11-25 00:49 UTC · [original](https://github.com/fxceless/victory-fork/issues/394#issuecomment-7148908004) **PR triage on this hardware** (RTX 5070 Ti, Windows 11, `31714de` + #376, same automated prologue run for every build — world loaded, ~5000 draws/frame, 150 s): | build | `missing-shader` | `pipeline-refused` | |---|---|---| | baseline `a8826150` (main + #376) | 10 | 7 | | + #351 `764d42be` | 10 | 7 | | + #352 `a9b7877c` | 10 | 7 | | + #350 `378fb4f5` | 10 | 7 | | + #355 `86b3ffd8` | 10 | 7 | All four give **no measurable change** on this title/scene, which is consistent with yesterday's merges having already removed the classes they targeted (`whole-wave section step` and `lane mask exchanged` are gone from the run; 30 of the 44 shaders I reported earlier). I left a note on each PR saying so, plus the detail that each conflicts with `31714de` only in `crates/victory-shader/src/emit/valu_tests.rs` — the functional code applies cleanly, so rebasing is trivial if they are kept for forms the prologue does not exercise. What is left, in one place: 10 shaders — 7× `a descriptor read only as data` (pixel: `2fd01fca16993001`, `6b6db9f1a526daeb`, `7d0f14ce44746d7e`, `8660e9822ebe4b62`, `abc6a80d46edc294`, `c8df7216c69cecbd`, `e5b2121a02f4f741`), 1× `a descriptor's address or format read as data` (`ceb5eb68cd99cb07`), 1× `a lane mask exchanged where not every lane runs` (`f133e35efed2a48a`), 1× `a lane mask holding lanes elsewhere read as data` (`926c46bab3b86bd6`) — and 7 compute pipelines refused with `E_INVALIDARG`. The `descriptor ... read as data` family is now the biggest single gap: 8 of the 10 remaining shaders, 7 of them pixel-stage. One more number from these runs, in case it is useful: with the world loaded, `dropped` draws sit at **502–1013 of ~3800–5500 per frame** depending on where in the prologue the frame lands, and the frame is dominated by `textures` (2.2–4.8 s per frame) rather than by the GPU (0.2–0.3 s of it on the card).
Author
Owner

@⁠Fimpos on GitHub · 2026-11-25 01:07 UTC · original

Cross-check from another 32-lane NVIDIA box on a803c87 (Windows 11 Pro 25H2, Ryzen 7 7800X3D, RTX 5070 12 GB, driver 621.24, 32 GiB RAM, title 1.0.2.1):

1. Remaining E_INVALIDARG (0x80070057) & untranslated compute shaders

All four of the previously refused Prologue compute shaders (02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764) plus f133e35efed2a48a, ceb5eb68cd99cb07, and the two v_add_f64 compute shaders from 3bff182 (5dc3b25986622949, 6f225b641c5b0708) all translate, validate with dxil.dll, and create D3D12 pipelines on RTX 5070 once these gaps in crates/victory-shader/src/emit/lower.rs are closed:

  1. New regression in 3bff182 (active_f64_sum, lower.rs:2052): active_f64_sum checks if self.exchange.is_some() instead of if !self.local && self.exchange.as_ref().is_some_and(|e| !e.1) (unlike wave_reduction right above it). That causes 5dc3b25986622949 and 6f225b641c5b0708 to fail with_local_waves_any with a wave reduction where not every lane runs, fall back to WaveSize(64), and get refused with 0x80070057. Changing that one guard makes both validate and build pipelines at WaveSize(32).
  2. LOCAL_ANY + lds_ok == false (and #156 / #170 / #190 / #277): allowing wave = 32 in Lower::new when LOCAL_ANY.get() is set (plus running emit_forms retries after ir::thread_edges as in #170 and permitting literal masks in v_cndmask_b32 under local_any as in #277) cleared:
    • 02384a60fda6f2d0, 2cc4c197ee29e291, 2da4beb386509b77, 369cbe906ea72764 -> 0 refused compute pipelines in the Prologue;
    • f133e35efed2a48a -> validated & pipeline created (0 non-RT compute drops in Prologue);
    • XboxBvhBuilder.dll: 52/52 translated, 52/52 validated, 52/52 pipelines created under VICTORY_HOST_MAX_WAVE=32. In a live run with VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1, it logged the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53 with no GPU hang / device removal (the title later hit an uncommitted read at 0x60000ffac as expected under quarantine).
  3. ceb5eb68cd99cb07 (a descriptor's address or format read as data): view_address in descriptor_data returns early for count <= 4 and marks s2 (num_records) as Val::Missing(OTHER); measuring it via getDimensions when dword 2 is read (also covered in #203) makes it validate and create a pipeline cleanly.

2. RTX 5070 frame time on a803c87

  • Default (diag, no tuning flags): ~2.4 fps (~407 ms/frame); ~380–425 MB/frame compared on CPU, 507–559 hash passes/frame, card 39–59% busy.
  • With VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_CARD_REHASH_RUNS=1 VICTORY_WIDE_REFRESH=1 VICTORY_WIDE_BACK=1 VICTORY_RELAY=2: 4.8 fps (209.6 ms/frame; 90.2 ms GPU, 84.0 ms preparing), CPU buffer comparisons dropped from ~400 MB to 29–35 MB/frame, 0 untranslated shaders in the entire run (and a803c87 fixed Lucia's skin/hair/interior textures cleanly; switched back to VICTORY_RELAY=1 for gameplay per #89 / #418).

(AI-assisted investigation & report; all builds, dxil.dll validations, cargo test -p victory-shader --lib (216 passed, 0 failed), and live runs executed on real RTX 5070 hardware.)

**@⁠Fimpos** on GitHub · 2026-11-25 01:07 UTC · [original](https://github.com/fxceless/victory-fork/issues/394#issuecomment-7149235606) Cross-check from another 32-lane NVIDIA box on `a803c87` (**Windows 11 Pro 25H2, Ryzen 7 7800X3D, RTX 5070 12 GB, driver 621.24, 32 GiB RAM**, title `1.0.2.1`): ### 1. Remaining `E_INVALIDARG (0x80070057)` & untranslated compute shaders All four of the previously refused Prologue compute shaders (`02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764`) plus `f133e35efed2a48a`, `ceb5eb68cd99cb07`, and the two `v_add_f64` compute shaders from `3bff182` (`5dc3b25986622949`, `6f225b641c5b0708`) **all translate, validate with `dxil.dll`, and create D3D12 pipelines on RTX 5070** once these gaps in `crates/victory-shader/src/emit/lower.rs` are closed: 1. **New regression in `3bff182` (`active_f64_sum`, `lower.rs:2052`):** `active_f64_sum` checks `if self.exchange.is_some()` instead of `if !self.local && self.exchange.as_ref().is_some_and(|e| !e.1)` (unlike `wave_reduction` right above it). That causes `5dc3b25986622949` and `6f225b641c5b0708` to fail `with_local_waves_any` with `a wave reduction where not every lane runs`, fall back to `WaveSize(64)`, and get refused with `0x80070057`. Changing that one guard makes both validate and build pipelines at `WaveSize(32)`. 2. **`LOCAL_ANY` + `lds_ok == false` (and #156 / #170 / #190 / #277):** allowing `wave = 32` in `Lower::new` when `LOCAL_ANY.get()` is set (plus running `emit_forms` retries after `ir::thread_edges` as in #170 and permitting literal masks in `v_cndmask_b32` under `local_any` as in #277) cleared: - `02384a60fda6f2d0`, `2cc4c197ee29e291`, `2da4beb386509b77`, `369cbe906ea72764` -> `0` refused compute pipelines in the Prologue; - `f133e35efed2a48a` -> validated & pipeline created (`0` non-RT compute drops in Prologue); - **`XboxBvhBuilder.dll`: 52/52 translated, 52/52 validated, 52/52 pipelines created** under `VICTORY_HOST_MAX_WAVE=32`. In a live run with `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1`, it logged `the ray-tracing structure builder runs: all of its programs have host pipelines pipelines=53` with no GPU hang / device removal (the title later hit an uncommitted read at `0x60000ffac` as expected under quarantine). 3. **`ceb5eb68cd99cb07` (`a descriptor's address or format read as data`):** `view_address` in `descriptor_data` returns early for `count <= 4` and marks `s2` (`num_records`) as `Val::Missing(OTHER)`; measuring it via `getDimensions` when dword 2 is read (also covered in #203) makes it validate and create a pipeline cleanly. ### 2. RTX 5070 frame time on `a803c87` - Default (`diag`, no tuning flags): **~2.4 fps (~407 ms/frame)**; `~380–425 MB/frame` compared on CPU, `507–559` hash passes/frame, card `39–59%` busy. - With `VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_CARD_REHASH_RUNS=1 VICTORY_WIDE_REFRESH=1 VICTORY_WIDE_BACK=1 VICTORY_RELAY=2`: **4.8 fps (209.6 ms/frame; 90.2 ms GPU, 84.0 ms preparing)**, CPU buffer comparisons dropped from `~400 MB` to `29–35 MB/frame`, **0 untranslated shaders** in the entire run (and `a803c87` fixed Lucia's skin/hair/interior textures cleanly; switched back to `VICTORY_RELAY=1` for gameplay per #89 / #418). *(AI-assisted investigation & report; all builds, `dxil.dll` validations, `cargo test -p victory-shader --lib` (216 passed, 0 failed), and live runs executed on real RTX 5070 hardware.)*
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#394
No description provided.