OLD-9771: d3d12_vulkan_device: answer features 56 and 57 before the CheckFeatureSupport switch (MSVC C4063) #1188

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

@⁠klikso on GitHub · 2026-11-24 19:52 UTC · original
klikso:carry/old-9771-feature-56-57 → main · +6 −4 · 1 files · 1 commits · open

Claimed in the coordination issue as: OLD-9771

What and why

Carries forward old-pr/9771 (draft #49) by ThomasSAMP, rebased onto current main with its author kept: one commit, one file, no change of mine.

With Windows SDK 10.0.26100.0 the D3D12_FEATURE enum ends before APPLICATION_SPECIFIC_DRIVER_STATE (56) and BYTECODE_BYPASS_HASH_SUPPORTED (57), which d3d12_feature_compat.h declares by value. Their case labels in the CheckFeatureSupport switch are outside the enum, so every MSVC build of gta6rt_d3d12_com warns twice (C4063). The commit answers the two before the switch, with the same one-BOOL "not supported" payload through write_supported_feature; the answers do not change.

Tested

Windows 11 26200.9974, MSVC 19.44.35211 (toolset 14.44.35207) + Ninja, RelWithDebInfo, Windows SDK 10.0.26100.0, on main 71f99e224.

fix removed this branch
warning C4063 in a build of d3d12_vulkan_device.cpp 2 (case '56' and case '57' "is not a valid value for switch of enum 'D3D12_FEATURE'") 0
ctest -j 6 not rerun 308 registered, 1 failed: d3d12_execute_indirect_validation, the five rows of #504, which fails on main too
d3d12_vulkan_device (compares 56 and 57 with the host in compare_host) not rerun passed

The left column is the same build folder with this commit's hunk reverted and the one file recompiled; restoring it brings the count back to 0.

  • python -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp: no hits. git diff --check: clean.

GPUs tested: NVIDIA GeForce RTX 3060 Ti (Ampere), driver 621.14, Vulkan 1.4.357, Windows 11 26200 (the runtime tests ran on it; the change itself is compile-time)

AI-assisted: yes (Claude Code; built and measured on the machine above)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed: n/a (no translator rule).

🤖 Generated with Claude Code

**@⁠klikso** on GitHub · 2026-11-24 19:52 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1188) `klikso:carry/old-9771-feature-56-57` → `main` · +6 −4 · 1 files · 1 commits · open Claimed in the coordination issue as: OLD-9771 ### What and why Carries forward `old-pr/9771` (draft #49) by `ThomasSAMP`, rebased onto current `main` with its author kept: one commit, one file, no change of mine. With Windows SDK 10.0.26100.0 the `D3D12_FEATURE` enum ends before `APPLICATION_SPECIFIC_DRIVER_STATE` (56) and `BYTECODE_BYPASS_HASH_SUPPORTED` (57), which `d3d12_feature_compat.h` declares by value. Their `case` labels in the `CheckFeatureSupport` switch are outside the enum, so every MSVC build of `gta6rt_d3d12_com` warns twice (C4063). The commit answers the two before the switch, with the same one-BOOL "not supported" payload through `write_supported_feature`; the answers do not change. ### Tested Windows 11 26200.9974, MSVC 19.44.35211 (toolset 14.44.35207) + Ninja, `RelWithDebInfo`, Windows SDK 10.0.26100.0, on `main` `71f99e224`. | | fix removed | this branch | |---|---|---| | `warning C4063` in a build of `d3d12_vulkan_device.cpp` | 2 (`case '56'` and `case '57'` "is not a valid value for switch of enum 'D3D12_FEATURE'") | 0 | | `ctest -j 6` | not rerun | 308 registered, 1 failed: `d3d12_execute_indirect_validation`, the five rows of #504, which fails on `main` too | | `d3d12_vulkan_device` (compares 56 and 57 with the host in `compare_host`) | not rerun | passed | The left column is the same build folder with this commit's hunk reverted and the one file recompiled; restoring it brings the count back to 0. - `python -I scripts/check_no_game_data.py runtime/shims/d3d12_vulkan_device.cpp`: no hits. `git diff --check`: clean. GPUs tested: NVIDIA GeForce RTX 3060 Ti (Ampere), driver 621.14, Vulkan 1.4.357, Windows 11 26200 (the runtime tests ran on it; the change itself is compile-time) AI-assisted: yes (Claude Code; built and measured on the machine above) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed: n/a (no translator rule). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Some Windows SDK 10.0.26100 headers end the D3D12_FEATURE enum before
APPLICATION_SPECIFIC_DRIVER_STATE (56) and BYTECODE_BYPASS_HASH_SUPPORTED
(57), which d3d12_feature_compat.h declares by value. Their case labels in
the CheckFeatureSupport switch were outside the enum, so every build of
gta6rt_d3d12_com warned twice (C4063). Answer the two before the switch,
with the same one-BOOL "not supported" payload through
write_supported_feature; nothing else changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:42:04 +00:00
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:08 UTC · original

Recommendation: [MERGE]

Reasoning: Carries #49: answers D3D12 features 56/57 before the CheckFeatureSupport switch, so MSVC with SDK 10.0.26100 stops warning C4063 about case labels outside the enum. Same payload as before. Tiny, warning-only fix. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 1/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1188#issuecomment-7143107809) **Recommendation:** [MERGE] **Reasoning:** Carries #49: answers D3D12 features 56/57 before the `CheckFeatureSupport` switch, so MSVC with SDK 10.0.26100 stops warning C4063 about case labels outside the enum. Same payload as before. Tiny, warning-only fix. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 1/10
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/1188/head:github-bot/gh-1188'
git switch 'github-bot/gh-1188'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1188'
git switch 'github-bot/gh-1188'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1188'
git switch 'github-bot/gh-1188'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1188'
git switch 'main'
git merge --squash 'github-bot/gh-1188'
git switch 'main'
git merge --ff-only 'github-bot/gh-1188'
git switch 'main'
git merge 'github-bot/gh-1188'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.