mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #913] [MERGED] d3d12_xs: ask the host D3D12CreateDevice for feature level 11_0 (BL-2) #950
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#950
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/913
Author: @kawaii-shakal
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142
Base:
main← Head:bl2-feature-level📝 Commits (1)
245c959d3d12_xs: ask the host D3D12CreateDevice for feature level 11_0 (BL-2)📊 Changes
5 files changed (+135 additions, -8 deletions)
View changed files
📝
docs/d3d12_xs_surface.md(+14 -0)📝
runtime/shims/d3d12_xs.cpp(+6 -7)📝
runtime/shims/d3d12_xs_device.cpp(+27 -0)📝
runtime/shims/d3d12_xs_device.h(+12 -0)📝
runtime/test/xs_proxy_mock_test.cpp(+76 -1)📄 Description
Claimed in the coordination issue as: BL-2 (claim). See docs/boot_leads.md §BL-2.
What and why
The host path of
D3D12XboxCreateDevice(runtime/shims/d3d12_xs.cpp) called the PCD3D12CreateDevicewithD3D_FEATURE_LEVEL_12_0as the minimum. The comment called that "the least restrictive floor", but it is the other way round: the minimum refuses every adapter below it, so a host that tops out at 11_x failed withE_INVALIDARG(BL-2's finding, and @abnalstlll-byte's in #14). Asking for 11_0 refuses nothing the title could run on, and the device keeps its highest level.rt::d3d12_xs::create_host_device(create, adapter, out)asks forkHostDeviceFloor= 11_0, the lowest level D3D12 creates a device at. It clears*outon every failure: a null host function givesE_NOTIMPL, andS_OKwith no device givesE_FAIL. It also logs the device's top level, for example "host device created at minimum feature level 11_0; highest level 12_1".max_feature_level(device)returns the top of 11_0…12_2 fromD3D12_FEATURE_FEATURE_LEVELS.D3D12XboxCreateDeviceusescreate_host_device. The rest of that function is unchanged.LEONIDA_D3D12=vulkan) takes no feature level. It still answersFEATURE_LEVELSup to 12_1, because it reports no ray tracing tier and no sampler feedback, and 12_2 needs both. That is what the lead asks for: "12_2 only where mesh shaders and ray tracing are present".Tests
xs_proxy_mock_test, newcheck_host_device_floor, with no D3D12 runtime and no GPU:CheckFeatureSupport) reports that level;S_OKwith no device, and a null output.Mutation check: with
create_host_deviceasking for 12_0,xs_proxy_mock_testfails at the 11_0 host.Tested
Windows 11 Pro 26300, MSVC 19.50.35721.0, Vulkan SDK 1.4.363.0. Tested on
main8f05e09e2, then rebased ontoa28927849with no conflicts.ctest -R "xs_proxy|d3d12_xs|device_proxy|queue_proxy": 9/9 passed. The WARP and RTX 5070 Ti host devices log "highest level 12_1".ctest -C RelWithDebInfo: 295 run, 294 passed. The one failure isd3d12_execute_indirect_validation, which fails onmaintoo (#337 / #306).python -I scripts/check_no_game_data.pyon the changed files: clean.tests/test_docs_*.py: all pass excepttest_docs_links, which flagsdocs/boot_leads.md→CONTRIBUTING.md. That file is not touched here; the failure comes frommain.Not reproduced: the original 11_x failure on a Wine/Proton host (none available here). The mock host stands in for it.
GPUs tested: NVIDIA GeForce RTX 5070 Ti (Blackwell, PCI 10de:2c05), driver 617.42, Vulkan 1.4.351, Windows 11 Pro 26300; WARP for the host-device path.
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.