mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1188] OLD-9771: d3d12_vulkan_device: answer features 56 and 57 before the CheckFeatureSupport switch (MSVC C4063) #1221
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1221
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 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)
ddb3622d3d12_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) byThomasSAMP, rebased onto currentmainwith its author kept: one commit, one file, no change of mine.With Windows SDK 10.0.26100.0 the
D3D12_FEATUREenum ends beforeAPPLICATION_SPECIFIC_DRIVER_STATE(56) andBYTECODE_BYPASS_HASH_SUPPORTED(57), whichd3d12_feature_compat.hdeclares by value. Theircaselabels in theCheckFeatureSupportswitch are outside the enum, so every MSVC build ofgta6rt_d3d12_comwarns twice (C4063). The commit answers the two before the switch, with the same one-BOOL "not supported" payload throughwrite_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, onmain71f99e224.warning C4063in a build ofd3d12_vulkan_device.cppcase '56'andcase '57'"is not a valid value for switch of enum 'D3D12_FEATURE'")ctest -j 6d3d12_execute_indirect_validation, the five rows of #504, which fails onmaintood3d12_vulkan_device(compares 56 and 57 with the host incompare_host)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
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).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.