tooling: retry incomplete slot 57 shader bytecode #2513
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2521"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-25T19:40:58Z.
Change
Refs #2413 and #1759. The fixed slot-57 pending scan used a nonempty-file check, so a truncated shader was treated as ready when its manifest and the other stage were present. Check the DXContainer header and declared file length for both stages during compile publication and pending scans. Manifest-only mode still accepts a manifest without bytecode.
Verification
Windows x64 Release at
6d1b89ac, on47490bd6. Five CTests passed without skips, including the WARP and RTX 4070 source-built render checks. The four new assertions for truncated or malformed nonempty artifacts fail with the old scanner. In a separate DXC run, I truncated each real stage in turn and verified that--pendingrecompiled it and marked the pair done.Windows 11 26300.10075, WARP 10.0.26100.10068, RTX 4070 driver 32.0.16.2124, and SDK 10.0.26100 DXC. I used Codex to implement the change and ran the checks on my Windows workstation.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:49:00Z.
Review: COMMENTED
Review of head
6d1b89ac(comment only).Scope: tooling only (
tools/startup/gfx2hlsl.py, its watch test, docs note). No claim to advance game startup; nothing here needs game verification.What I checked:
has_complete_mesh57_bytecodechecks the DXBC magic, declared size == file size, and a sane part count. It is used both after the DXC compile (publication) and inpending_keys, so a truncated stage is recompiled instead of treated as done. Non-mesh keys still usehas_bytecode. Manifest-only mode still accepts a manifest without bytecode.mesh57_resume_controlscovers: manifest only, one stage only, both complete, each stage truncated, each stage with a bad header, and manifest-only mode.has_bytecode; no other mesh57.csoreaders found that need the new check.Commands run locally:
python3 -B tests/startup_gfx2hlsl_watch_check.pypassedpython3 tests/docs_links_check.pypassedpython3 tests/bidi_controls_check.pypassedgit diff --check origin/main...HEADcleanNo blocking findings. Win2025 receipt to follow separately.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:53:30Z.
Win2025 WARP receipt for head
6d1b89ac(up to date with main, no update needed).Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
6d1b89acde4d92a54dd1a32f712a400d650c41bb:--preset dev):ctest --preset dev -R 'startup_gfx2hlsl_watch|startup_mesh57' --parallel 2 --no-tests=error --output-on-failure: 4/4 passed (startup_mesh57_skeleton,startup_mesh57_skeleton_draw_hardware,startup_mesh57_skeleton_draw_warp,startup_gfx2hlsl_watch)/O2(--preset release): same ctest command: 4/4 passed (same four tests)AI-assisted; commands listed were executed locally.