translate --warm misses embedded DXBC before the end of a file #736

Open
opened 2026-11-26 03:49:56 +00:00 by github-bot · 0 comments
Owner

@⁠yualk on GitHub · 2026-11-25 06:02 UTC · original

Reproduced on 8dd30ab472697c47b141c273c2a00f8ce1c00520 with two distinct, authored, valid DXBC containers and no title data.

  1. Put the two containers in a single input file, one immediately after the other. Put the first standalone container’s 16-digit BLAKE3 prefix into the wanted-hash file. Use a fresh shader cache and matching host wave/view-limit settings.
  2. Run victory translate <input-directory> --warm <wanted-file> --jobs 2. It exits successfully but reports 1 asked, 0 found. A separate --warm all into an empty cache reports 2 translated, but the runtime cache lookup for the exact first container still misses; the second (at EOF) hits. Warming the first as a standalone file hits normally.
  3. Keep the bytecode, cache format, and translator unchanged; bound the raw source slice in apps/victory/src/shader.rs to its DXBC header’s declared byte length before validating it. The same targeted run now finds exactly 1, and the runtime cache hits for the first but still misses an unrequested decoy. With --warm all, both exact runtime slices hit. An intentionally different host wave still misses. A focused Rust regression also passes with two containers and unrelated prefix/suffix bytes.

No retail title was launched, no driver PSOs were populated by warmth, and no wall-clock boot or FPS gain is inferred. The issue is raw discovery handing the warm path &file[offset..] rather than the container itself.

**@⁠yualk** on GitHub · 2026-11-25 06:02 UTC · [original](https://github.com/fxceless/victory-fork/issues/736) Reproduced on `8dd30ab472697c47b141c273c2a00f8ce1c00520` with two distinct, authored, valid DXBC containers and no title data. 1. Put the two containers in a single input file, one immediately after the other. Put the first standalone container’s 16-digit BLAKE3 prefix into the wanted-hash file. Use a fresh shader cache and matching host wave/view-limit settings. 2. Run `victory translate <input-directory> --warm <wanted-file> --jobs 2`. It exits successfully but reports **1 asked, 0 found**. A separate `--warm all` into an empty cache reports **2 translated**, but the runtime cache lookup for the exact first container still misses; the second (at EOF) hits. Warming the first as a standalone file hits normally. 3. Keep the bytecode, cache format, and translator unchanged; bound the raw source slice in `apps/victory/src/shader.rs` to its DXBC header’s declared byte length before validating it. The same targeted run now finds exactly 1, and the runtime cache hits for the first but still misses an unrequested decoy. With `--warm all`, both exact runtime slices hit. An intentionally different host wave still misses. A focused Rust regression also passes with two containers and unrelated prefix/suffix bytes. No retail title was launched, no driver PSOs were populated by warmth, and no wall-clock boot or FPS gain is inferred. The issue is raw discovery handing the warm path `&file[offset..]` rather than the container itself.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:56 +00:00
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#736
No description provided.