Skip to content

Validate VICTORY_PAIRS before translating shaders - #667

Open
DoubleD17 wants to merge 1 commit into
fxceless:mainfrom
DoubleD17:fix/validate-translate-pairs
Open

DoubleD17 wants to merge 1 commit into
fxceless:mainfrom
DoubleD17:fix/validate-translate-pairs

Conversation

@DoubleD17

Copy link
Copy Markdown

Validate VICTORY_PAIRS before resolving paths or initializing DXIL validation and D3D12. Reject malformed values with a diagnostic and a nonzero exit code. Adapted from DoubleD17's proposal in Marvisak VIctory. Marvisak #1244

Synthetic Windows x64 CLI tests changed the exit code from 0 to 1 for four malformed values. Three controls kept identical output and both unit tests passed. The valid WARP control used empty synthetic input and did not emit shaders.

AI-assisted.

RecompLive added a commit to RecompLive/victory-fork that referenced this pull request Nov 25, 2026
From fxceless/victory-fork fxceless#667 (adapted from Marvisak/VIctory #1244).
The pair list was parsed with filter_map, so a typo such as "vertex+pixel,"
or "vertex" silently produced no pair. parse_pairs now needs two non-empty
selectors per entry and is called before path work and DXIL/D3D12 setup, so
the run stops with a diagnostic and a nonzero exit code.

Co-authored-by: fxceless/victory-fork fxceless#667
Adapt DoubleD17's parser and diagnostic from Marvisak/VIctory#1244 (fd9659de) to the fork.
@DoubleD17
DoubleD17 force-pushed the fix/validate-translate-pairs branch from e401e9c to 19e7016 Compare November 25, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant