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

Open
opened 2026-11-26 20:20:30 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1188
Author: @klikso
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: carry/old-9771-feature-56-57


📝 Commits (1)

  • ddb3622 d3d12_vulkan_device: answer features 56 and 57 before the CheckFeatureSupport switch (MSVC C4063)

📊 Changes

1 file changed (+6 additions, -4 deletions)

View changed files

📝 runtime/shims/d3d12_vulkan_device.cpp (+6 -4)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1188 **Author:** [@klikso](https://github.com/klikso) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `carry/old-9771-feature-56-57` --- ### 📝 Commits (1) - [`ddb3622`](https://github.com/ubiquitarianism/leonida/commit/ddb36227ebcb654e758150b22a459de7100c8c5e) d3d12_vulkan_device: answer features 56 and 57 before the CheckFeatureSupport switch (MSVC C4063) ### 📊 Changes **1 file changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+6 -4) </details> ### 📄 Description 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#1221
No description provided.