CLI: add opt-in host D3D12 preflight #1502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1503"
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 Marvisak/VIctory. Originally posted by degradka on 2026-11-24T18:33:50Z.
What changes
victory run --execute --require-host now verifies the host D3D12 device before mapping and starting the title. If it cannot create a usable host, it reports the underlying device error and stops before title code runs.
Crash evidence and scope
The original access violation was observed on the reporting Windows 11 build 22000 machine at title RVA +0xb5a5f8 (read 0x68). I did not establish that missing Shader Model 6.6 caused it, and this PR no longer claims to fix that crash. It provides an explicit preflight for users who prefer a clear configuration error over launching without a usable host device.
Validation
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:28:59Z.
Automated triage for the maintainers.
Needs work. This requires shader model 6.6 in
create(crates/victory-gpu/src/host.rs) and stopsrun --executeearly through a newensure_host.--features agilityand runcargo xtask agility. Neither exists inmain(they come from the unmerged #175), so it points users to commands that do not exist.maindocumentshost()returningNoneas deliberate ("a run then behaves as before: nothing executes"). Making the host device a hard requirement for every run is a policy change for the maintainer to decide.Please reword the message to something that is true on
main, and say on which hosts this stopped the access violation you describe. CI has not run.Generated by Claude Code
[PR #1503] GPU: fail fast when the host D3D12 runtime is unusableto [PR #1503] CLI: add opt-in host D3D12 preflightImported from Marvisak/VIctory. Originally posted by degradka on 2026-11-25T08:22:21Z.
Thanks — revised to keep the host requirement opt-in via run --execute --require-host; the default path still follows the documented main-branch host() -> None fallback. I also removed the unmerged Agility commands and now propagate CheckFeatureSupport errors instead of printing an invented shader-model level.
I cannot honestly name a host where this patch stopped the access violation: the only evidence is the Windows 11 build 22000 crash recorded in the updated description, without proof that SM 6.6 was the cause. The PR now describes this as a preflight tool, not as a crash fix.
Imported from Marvisak/VIctory. Originally posted by degradka on 2026-11-25T08:38:59Z.
Closing this. I hit an access violation on an older Windows 11 build (22000) and assumed missing shader model 6.6 was the cause, but I never confirmed that, and the title runs on my current machine. The patch also made create return no device below SM 6.6, which is a policy change for you to decide, not something to slip in. Sorry for the noise. I'll open a new PR if I can reproduce a crash and trace it to a cause.
Pull request closed