Report when the build cannot enable the D3D12 debug layer #4919

Open
github-bot wants to merge 1 commit from github-bot/gh-4918 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 14:04 UTC · original
andrewpozdnakov7-jpg:codex2/fix/report-debug-layer-build → main · +5 −1 · 1 files · 1 commits · open

Refs #4619.

What it changes

The release launcher can record VICTORY_D3D12_DEBUG=1 in its settings even when the executable was built without diagnostics. Host creation now reports that requirement when the flag is requested. This makes it clear in the play log whether this build can enable the debug layer.

How it was tested

  • Compiled the exact decision block from main 5fabb46e and 19f474e4b19147e9f2cf38379e948a133a98f199 on Windows with the diagnostics feature both present and absent. The fixture captured the warning through a stub logger.
  • Only the patched non-diagnostics build with the flag set emitted a warning. The debug enable decision matched main in all four combinations. Release e1251c31 has the same baseline decision.
  • cargo xtask policy --staged accepted the changed file. Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • Searched open and closed PRs and issues for VICTORY_D3D12_DEBUG and checked open PRs touching host.rs. #4574 improves the recorded failure details once the debug layer is enabled. It combines cleanly with this patch in git merge-tree.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 14:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4918) `andrewpozdnakov7-jpg:codex2/fix/report-debug-layer-build` → `main` · +5 −1 · 1 files · 1 commits · open Refs #4619. ## What it changes The release launcher can record `VICTORY_D3D12_DEBUG=1` in its settings even when the executable was built without `diagnostics`. Host creation now reports that requirement when the flag is requested. This makes it clear in the play log whether this build can enable the debug layer. ## How it was tested - Compiled the exact decision block from main `5fabb46e` and `19f474e4b19147e9f2cf38379e948a133a98f199` on Windows with the diagnostics feature both present and absent. The fixture captured the warning through a stub logger. - Only the patched non-diagnostics build with the flag set emitted a warning. The debug enable decision matched main in all four combinations. Release `e1251c31` has the same baseline decision. - `cargo xtask policy --staged` accepted the changed file. Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] Searched open and closed PRs and issues for `VICTORY_D3D12_DEBUG` and checked open PRs touching `host.rs`. #4574 improves the recorded failure details once the debug layer is enabled. It combines cleanly with this patch in `git merge-tree`. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:06:09 +00:00
Author
Owner

@⁠Dukestar69 on GitHub · 2026-12-01 16:23 UTC · original · approved these changes

Reviewed crates/victory-gpu/src/host.rs: logging a clear warning when VICTORY_D3D12_DEBUG is requested on a build compiled without the diagnostics feature avoids silent no-ops when diagnosing GPU failures. Verified on Windows: both cargo check -p victory-gpu --tests and cargo check -p victory-gpu --features diagnostics --tests passed cleanly.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

**@⁠Dukestar69** on GitHub · 2026-12-01 16:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4918#pullrequestreview-6135369421) · **approved these changes** Reviewed crates/victory-gpu/src/host.rs: logging a clear warning when VICTORY_D3D12_DEBUG is requested on a build compiled without the diagnostics feature avoids silent no-ops when diagnosing GPU failures. Verified on Windows: both cargo check -p victory-gpu --tests and cargo check -p victory-gpu --features diagnostics --tests passed cleanly. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4919/head:github-bot/gh-4918'
git switch 'github-bot/gh-4918'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4918'
git switch 'github-bot/gh-4918'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4918'
git switch 'github-bot/gh-4918'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4918'
git switch 'main'
git merge --squash 'github-bot/gh-4918'
git switch 'main'
git merge --ff-only 'github-bot/gh-4918'
git switch 'main'
git merge 'github-bot/gh-4918'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!4919
No description provided.