d3d12_xs: ask the host D3D12CreateDevice for feature level 11_0 (BL-2) #913

Manually merged
github merged 1 commit from gh-pr/913/head into gh-pr/913/base 2026-11-26 09:27:53 +00:00
Owner

@⁠kawaii-shakal on GitHub · 2026-11-24 15:10 UTC · original
kawaii-shakal:bl2-feature-level → main · +135 −8 · 5 files · 1 commits · merged 2026-11-24 20:30 UTC

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 PC D3D12CreateDevice with D3D_FEATURE_LEVEL_12_0 as 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 with E_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 for kHostDeviceFloor = 11_0, the lowest level D3D12 creates a device at. It clears *out on every failure: a null host function gives E_NOTIMPL, and S_OK with no device gives E_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 from D3D12_FEATURE_FEATURE_LEVELS.
  • D3D12XboxCreateDevice uses create_host_device. The rest of that function is unchanged.
  • The Vulkan-backed device (LEONIDA_D3D12=vulkan) takes no feature level. It still answers FEATURE_LEVELS up 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, new check_host_device_floor, with no D3D12 runtime and no GPU:

  • mock hosts that top out at 11_0, 11_1, 12_0, 12_1 and 12_2. Each is created at 11_0, the device keeps its top level, and the Xbox-ABI proxy's slot 13 (CheckFeatureSupport) reports that level;
  • the same hosts asked for the old 12_0 floor: the 11_x ones fail, as on the hosts BL-2 describes;
  • the failure paths: no host function, a failing host, S_OK with no device, and a null output.

Mutation check: with create_host_device asking for 12_0, xs_proxy_mock_test fails at the 11_0 host.

Tested

Windows 11 Pro 26300, MSVC 19.50.35721.0, Vulkan SDK 1.4.363.0. Tested on main 8f05e09e2, then rebased onto a28927849 with 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".
  • Whole ctest -C RelWithDebInfo: 295 run, 294 passed. The one failure is d3d12_execute_indirect_validation, which fails on main too (#337 / #306).
  • python -I scripts/check_no_game_data.py on the changed files: clean. tests/test_docs_*.py: all pass except test_docs_links, which flags docs/boot_leads.md → CONTRIBUTING.md. That file is not touched here; the failure comes from main.

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

  • 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 change)

🤖 Generated with Claude Code

**@⁠kawaii-shakal** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/913) `kawaii-shakal:bl2-feature-level` → `main` · +135 −8 · 5 files · 1 commits · merged 2026-11-24 20:30 UTC Claimed in the coordination issue as: BL-2 ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14)). See [docs/boot_leads.md §BL-2](docs/boot_leads.md). ### What and why The host path of `D3D12XboxCreateDevice` (`runtime/shims/d3d12_xs.cpp`) called the PC `D3D12CreateDevice` with `D3D_FEATURE_LEVEL_12_0` as 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 with `E_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 for `kHostDeviceFloor` = 11_0, the lowest level D3D12 creates a device at. It clears `*out` on every failure: a null host function gives `E_NOTIMPL`, and `S_OK` with no device gives `E_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 from `D3D12_FEATURE_FEATURE_LEVELS`. - `D3D12XboxCreateDevice` uses `create_host_device`. The rest of that function is unchanged. - The Vulkan-backed device (`LEONIDA_D3D12=vulkan`) takes no feature level. It still answers `FEATURE_LEVELS` up 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`, new `check_host_device_floor`, with no D3D12 runtime and no GPU: - mock hosts that top out at 11_0, 11_1, 12_0, 12_1 and 12_2. Each is created at 11_0, the device keeps its top level, and the Xbox-ABI proxy's slot 13 (`CheckFeatureSupport`) reports that level; - the same hosts asked for the old 12_0 floor: the 11_x ones fail, as on the hosts BL-2 describes; - the failure paths: no host function, a failing host, `S_OK` with no device, and a null output. Mutation check: with `create_host_device` asking for 12_0, `xs_proxy_mock_test` fails at the 11_0 host. ### Tested Windows 11 Pro 26300, MSVC 19.50.35721.0, Vulkan SDK 1.4.363.0. Tested on `main` 8f05e09e2, then rebased onto a28927849 with 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". - Whole `ctest -C RelWithDebInfo`: 295 run, 294 passed. The one failure is `d3d12_execute_indirect_validation`, which fails on `main` too (#337 / #306). - `python -I scripts/check_no_game_data.py` on the changed files: clean. `tests/test_docs_*.py`: all pass except `test_docs_links`, which flags `docs/boot_leads.md` → `CONTRIBUTING.md`. That file is not touched here; the failure comes from `main`. 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 - [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. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The host path of D3D12XboxCreateDevice asked the PC D3D12CreateDevice for
minimum feature level 12_0, which a comment called the least restrictive
floor. It is the other way round: the minimum refuses every adapter below
it, so a host that tops out at 11_x failed with E_INVALIDARG
(docs/boot_leads.md BL-2). rt::d3d12_xs::create_host_device asks for
kHostDeviceFloor = 11_0, the lowest level D3D12 creates a device at; the
device keeps its highest level, which FEATURE_LEVELS reports and the log
prints (max_feature_level).

xs_proxy_mock_test drives it with mock hosts that top out at 11_0, 11_1,
12_0, 12_1 and 12_2. Each one is created at 11_0, the device proxy's slot
13 reports the host's own top level, and the failure paths (no host
function, failing host, S_OK with no device) clear the output. With 12_0
as the floor the 11_x hosts fail. The Vulkan-backed device takes no feature
level and stays at 12_1 (no ray tracing tier, no sampler feedback).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:27:51 +00:00
github manually merged commit 245c959ea0 into gh-pr/913/base 2026-11-26 09:27:53 +00:00
Author
Owner

@⁠SweatierKey on GitHub · 2026-11-24 15:18 UTC · original · approved these changes

Independent verification on Windows 11 against origin/main@a28927849:

  • Built xs_proxy_mock_test.exe (cross-compiled with clang-cl + xwin SDK 10.0.26100) and ran natively on Windows 11:
    • Logged [rt] d3d12_xs: host device created at minimum feature level 11_0; highest level {11_0, 11_1, 12_0, 12_1, 12_2} across all 5 mock host levels.
    • xs_proxy_mock_test: PASS (9 allocations refused on purpose) (rc=0).
  • python3 -I tests/test_docs_links.py: 16/16 PASS.
  • python3 -I scripts/check_no_game_data.py: clean.

Clean implementation of BL-2 with thorough mock coverage across all 5 feature levels and error paths (E_POINTER, E_NOTIMPL, DXGI_ERROR_UNSUPPORTED, E_FAIL).

AI-assisted: yes

**@⁠SweatierKey** on GitHub · 2026-11-24 15:18 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/913#pullrequestreview-6042023204) · **approved these changes** Independent verification on Windows 11 against `origin/main@a28927849`: - Built `xs_proxy_mock_test.exe` (cross-compiled with `clang-cl` + xwin SDK 10.0.26100) and ran natively on Windows 11: - Logged `[rt] d3d12_xs: host device created at minimum feature level 11_0; highest level {11_0, 11_1, 12_0, 12_1, 12_2}` across all 5 mock host levels. - `xs_proxy_mock_test: PASS (9 allocations refused on purpose)` (`rc=0`). - `python3 -I tests/test_docs_links.py`: `16/16` PASS. - `python3 -I scripts/check_no_game_data.py`: clean. Clean implementation of `BL-2` with thorough mock coverage across all 5 feature levels and error paths (`E_POINTER`, `E_NOTIMPL`, `DXGI_ERROR_UNSUPPORTED`, `E_FAIL`). AI-assisted: yes
Author
Owner

@⁠Timon360SB on GitHub · 2026-11-24 15:49 UTC · original

Testing results

Independently tested PR #913 against the baseline
on two NVIDIA-based Windows systems.

Tested revisions

  • BASE: a28927849adb4e40dfdec8c32fb6758dcd205a37
  • HEAD: 245c959ea0a109904b0fb6f1f6f1bafee241f8f4

Test environments

Component System 1 System 2
CPU AMD Ryzen 7 7800X3D AMD Ryzen 5 3600X
GPU NVIDIA GeForce RTX 5070 NVIDIA GeForce RTX 2060 SUPER
VRAM 12227 MiB 8192 MiB
RAM (reported) 31.11 GiB 15.93 GiB
GPU driver 621.14 621.14
OS Windows 11 Pro (26200) Windows 11 Pro (28000)
Windows SDK 10.0.26100.0 10.0.28000.0
Vulkan SDK 1.4.363.0 1.4.363.0
MSVC 19.44.35230 19.44.35230

Test configuration

  • Build configuration: RelWithDebInfo
  • Build generator: Ninja Multi-Config
  • Build scope: selected targets
  • Build reuse: enabled
  • Vulkan validation: enabled
  • GPU-assisted validation: enabled
  • Synchronization validation: enabled
  • Repetitions: 3 per revision on each system

All selected build steps completed successfully
for BASE and HEAD on both systems.

CTest results

Test System 1 BASE System 1 HEAD System 2 BASE System 2 HEAD
xs_proxy_mock 3/3 3/3 3/3 3/3
device_proxy 3/3 3/3 3/3 3/3
queue_proxy 3/3 3/3 3/3 3/3
d3d12_vulkan_device 3/3 3/3 3/3 3/3
vk_sync_validation 3/3 3/3 3/3 3/3
Total PASS 15/15 15/15 15/15 15/15
  • BASE: 30/30 PASS
  • HEAD: 30/30 PASS
  • Combined: 60/60 PASS
  • FAIL: 0
  • SKIP: 0
  • Regressions: 0

All 12 CTest invocations completed with exit code 0.

D3D12 feature-level detection

The HEAD revision successfully created the host
D3D12 device using feature level 11_0 as the
minimum requirement.

The WARP-backed device proxy test reported the
following highest feature levels:

Property System 1 System 2
Minimum feature level 11_0 11_0
Highest reported feature level 12_1 12_2
Device creation PASS PASS
Forwarded PC vtable slots 83 83
Repetitions 3/3 PASS 3/3 PASS

Representative HEAD diagnostics:

System 1:
host device created at minimum feature level 11_0; highest level 12_1

System 2:
host device created at minimum feature level 11_0; highest level 12_2

The reported values remained consistent across
all three repetitions on each system.

These results originate from the WARP-backed
device proxy test and should not be interpreted
as the physical NVIDIA GPUs' maximum supported
D3D12 feature levels.

The different WARP results are reported as
observed; their underlying cause was not
independently investigated.

Mock feature-level coverage

The HEAD xs_proxy_mock test exercised the
following reported highest feature levels:

Mock feature level System 1 System 2
11_0 Observed Observed
11_1 Observed Observed
12_0 Observed Observed
12_1 Observed Observed
12_2 Observed Observed

All five levels were observed in every HEAD
mock-test execution.

The complete mock test passed in all six HEAD
executions.

The nine intentionally refused allocations
reported by the mock test were also present
in BASE and are expected.

Device proxy

The device proxy tests completed with zero failures
on both revisions and both systems.

The executed checks covered:

  • Xbox-ABI device creation.
  • COM interface queries and reference counting.
  • Device vtable forwarding.
  • Descriptor heap creation.
  • Resource allocation information.
  • Committed and reserved resource creation.
  • Compute pipeline creation.
  • Command queue and command list creation.
  • Fence signaling through the queue proxy.
  • Object lifetime management.

No regressions were observed.

Queue proxy

All three tested backends passed in every
queue_proxy invocation.

The test coverage included:

  • Device, queue and fence proxy lifetimes.
  • Both object release orders.
  • All 128 queue slots.
  • All 64 fence slots.
  • Both guard regions.
  • Resource residency operations.
  • Copy operations through the queue proxy.

The Vulkan backend reported no leaks during
the 12-round device, queue and fence lifetime
test.

The out-of-range vtable calls returning
E_NOTIMPL were expected test scenarios,
not execution failures.

D3D12 Vulkan device

The Vulkan device test completed successfully
on both physical GPUs.

The following operations were covered:

  • Resource clears and zero-filled first use.
  • Upload operations.
  • Buffer, texture and BC copies.
  • Resolve operations.
  • Reserved resources.
  • Queries and fence semantics.
  • GetCopyableFootprints.
  • GetResourceTiling.
  • CheckFeatureSupport error paths.
  • Placed resources and castable formats.

The heap description comparison produced
identical results across all executions:

Property BASE HEAD
Compared heap descriptions 20 20
Differing heap descriptions 0 0

The placed-resource clear comparison reported
the following results in every invocation:

Property BASE HEAD
Plain clear bytes differing by one code 16 16
sRGB-cast clear bytes differing by one code 0 0

The test reported these differences as being
within its 0.6 ULP tolerance.

The results were unchanged between BASE and HEAD
on both systems.

No new resource comparison failures were observed.

Vulkan synchronization validation

The synchronization validation self-test
produced the expected results in all executions.

Scenario BASE HEAD
Without a barrier 1 validation error 1 validation error
With a barrier 0 validation errors 0 validation errors

The reported WRITE_AFTER_WRITE hazard was
intentionally triggered by the self-test.

Synchronization validation was confirmed to
be active in all 12 self-test executions.

The Vulkan validation logs also contained:

  • VALIDATION-SETTINGS warnings.
  • WARNING-Setting-Limit-Adjusted warnings.
  • GPU-assisted validation configuration notices.
  • Automatic validation feature adjustments.
  • Disabled ray-tracing validation options where
    the required features were unavailable.

The warning categories and their counts remained
unchanged between BASE and HEAD.

No unexpected validation errors were identified
within the executed test scope.

Limitations

  • Synthetic tests only.
  • No real-title execution was performed.
  • Only five selected CTest targets were tested.
  • Physical GPU coverage was limited to NVIDIA hardware.
  • Both systems used the same NVIDIA driver version.
  • Feature-level detection was exercised through
    WARP and mock devices.
  • Physical GPU feature-level detection was not
    independently verified.
  • This was not a performance benchmark.

Conclusion

All selected tests passed consistently on both
systems and both tested revisions.

The HEAD revision successfully created WARP-backed
host devices with a minimum feature level of 11_0
and reported the highest available feature level
for each tested WARP environment.

The mock tests exercised reported feature levels
from 11_0 through 12_2 without test failures.

Device proxy, queue proxy, Vulkan device and
synchronization validation tests completed
successfully.

No functional regressions, unexpected validation
errors or test failures were observed between
BASE and HEAD within the tested scope.

Result: PASS — no regressions detected.

AI-assisted log analysis and report preparation.

**@⁠Timon360SB** on GitHub · 2026-11-24 15:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/913#issuecomment-7136664098) ## Testing results Independently tested PR #913 against the baseline on two NVIDIA-based Windows systems. ### Tested revisions - BASE: `a28927849adb4e40dfdec8c32fb6758dcd205a37` - HEAD: `245c959ea0a109904b0fb6f1f6f1bafee241f8f4` ### Test environments | Component | System 1 | System 2 | |---|---|---| | CPU | AMD Ryzen 7 7800X3D | AMD Ryzen 5 3600X | | GPU | NVIDIA GeForce RTX 5070 | NVIDIA GeForce RTX 2060 SUPER | | VRAM | 12227 MiB | 8192 MiB | | RAM (reported) | 31.11 GiB | 15.93 GiB | | GPU driver | 621.14 | 621.14 | | OS | Windows 11 Pro (26200) | Windows 11 Pro (28000) | | Windows SDK | 10.0.26100.0 | 10.0.28000.0 | | Vulkan SDK | 1.4.363.0 | 1.4.363.0 | | MSVC | 19.44.35230 | 19.44.35230 | ### Test configuration - Build configuration: RelWithDebInfo - Build generator: Ninja Multi-Config - Build scope: selected targets - Build reuse: enabled - Vulkan validation: enabled - GPU-assisted validation: enabled - Synchronization validation: enabled - Repetitions: 3 per revision on each system All selected build steps completed successfully for BASE and HEAD on both systems. ### CTest results | Test | System 1 BASE | System 1 HEAD | System 2 BASE | System 2 HEAD | |---|---:|---:|---:|---:| | `xs_proxy_mock` | 3/3 | 3/3 | 3/3 | 3/3 | | `device_proxy` | 3/3 | 3/3 | 3/3 | 3/3 | | `queue_proxy` | 3/3 | 3/3 | 3/3 | 3/3 | | `d3d12_vulkan_device` | 3/3 | 3/3 | 3/3 | 3/3 | | `vk_sync_validation` | 3/3 | 3/3 | 3/3 | 3/3 | | **Total PASS** | **15/15** | **15/15** | **15/15** | **15/15** | - BASE: 30/30 PASS - HEAD: 30/30 PASS - Combined: **60/60 PASS** - FAIL: 0 - SKIP: 0 - Regressions: 0 All 12 CTest invocations completed with exit code 0. ### D3D12 feature-level detection The HEAD revision successfully created the host D3D12 device using feature level 11_0 as the minimum requirement. The WARP-backed device proxy test reported the following highest feature levels: | Property | System 1 | System 2 | |---|---|---| | Minimum feature level | 11_0 | 11_0 | | Highest reported feature level | 12_1 | 12_2 | | Device creation | PASS | PASS | | Forwarded PC vtable slots | 83 | 83 | | Repetitions | 3/3 PASS | 3/3 PASS | Representative HEAD diagnostics: System 1: `host device created at minimum feature level 11_0; highest level 12_1` System 2: `host device created at minimum feature level 11_0; highest level 12_2` The reported values remained consistent across all three repetitions on each system. These results originate from the WARP-backed device proxy test and should not be interpreted as the physical NVIDIA GPUs' maximum supported D3D12 feature levels. The different WARP results are reported as observed; their underlying cause was not independently investigated. ### Mock feature-level coverage The HEAD `xs_proxy_mock` test exercised the following reported highest feature levels: | Mock feature level | System 1 | System 2 | |---|---|---| | 11_0 | Observed | Observed | | 11_1 | Observed | Observed | | 12_0 | Observed | Observed | | 12_1 | Observed | Observed | | 12_2 | Observed | Observed | All five levels were observed in every HEAD mock-test execution. The complete mock test passed in all six HEAD executions. The nine intentionally refused allocations reported by the mock test were also present in BASE and are expected. ### Device proxy The device proxy tests completed with zero failures on both revisions and both systems. The executed checks covered: - Xbox-ABI device creation. - COM interface queries and reference counting. - Device vtable forwarding. - Descriptor heap creation. - Resource allocation information. - Committed and reserved resource creation. - Compute pipeline creation. - Command queue and command list creation. - Fence signaling through the queue proxy. - Object lifetime management. No regressions were observed. ### Queue proxy All three tested backends passed in every `queue_proxy` invocation. The test coverage included: - Device, queue and fence proxy lifetimes. - Both object release orders. - All 128 queue slots. - All 64 fence slots. - Both guard regions. - Resource residency operations. - Copy operations through the queue proxy. The Vulkan backend reported no leaks during the 12-round device, queue and fence lifetime test. The out-of-range vtable calls returning `E_NOTIMPL` were expected test scenarios, not execution failures. ### D3D12 Vulkan device The Vulkan device test completed successfully on both physical GPUs. The following operations were covered: - Resource clears and zero-filled first use. - Upload operations. - Buffer, texture and BC copies. - Resolve operations. - Reserved resources. - Queries and fence semantics. - GetCopyableFootprints. - GetResourceTiling. - CheckFeatureSupport error paths. - Placed resources and castable formats. The heap description comparison produced identical results across all executions: | Property | BASE | HEAD | |---|---:|---:| | Compared heap descriptions | 20 | 20 | | Differing heap descriptions | 0 | 0 | The placed-resource clear comparison reported the following results in every invocation: | Property | BASE | HEAD | |---|---:|---:| | Plain clear bytes differing by one code | 16 | 16 | | sRGB-cast clear bytes differing by one code | 0 | 0 | The test reported these differences as being within its 0.6 ULP tolerance. The results were unchanged between BASE and HEAD on both systems. No new resource comparison failures were observed. ### Vulkan synchronization validation The synchronization validation self-test produced the expected results in all executions. | Scenario | BASE | HEAD | |---|---:|---:| | Without a barrier | 1 validation error | 1 validation error | | With a barrier | 0 validation errors | 0 validation errors | The reported `WRITE_AFTER_WRITE` hazard was intentionally triggered by the self-test. Synchronization validation was confirmed to be active in all 12 self-test executions. The Vulkan validation logs also contained: - `VALIDATION-SETTINGS` warnings. - `WARNING-Setting-Limit-Adjusted` warnings. - GPU-assisted validation configuration notices. - Automatic validation feature adjustments. - Disabled ray-tracing validation options where the required features were unavailable. The warning categories and their counts remained unchanged between BASE and HEAD. No unexpected validation errors were identified within the executed test scope. ### Limitations - Synthetic tests only. - No real-title execution was performed. - Only five selected CTest targets were tested. - Physical GPU coverage was limited to NVIDIA hardware. - Both systems used the same NVIDIA driver version. - Feature-level detection was exercised through WARP and mock devices. - Physical GPU feature-level detection was not independently verified. - This was not a performance benchmark. ### Conclusion All selected tests passed consistently on both systems and both tested revisions. The HEAD revision successfully created WARP-backed host devices with a minimum feature level of 11_0 and reported the highest available feature level for each tested WARP environment. The mock tests exercised reported feature levels from 11_0 through 12_2 without test failures. Device proxy, queue proxy, Vulkan device and synchronization validation tests completed successfully. No functional regressions, unexpected validation errors or test failures were observed between BASE and HEAD within the tested scope. **Result: PASS — no regressions detected.** AI-assisted log analysis and report preparation.
Author
Owner

@⁠kawaii-shakal on GitHub · 2026-11-24 16:10 UTC · original

Thanks @⁠Timon360SB and @⁠SweatierKey for the runs.

The 12_1 vs 12_2 WARP difference is what this change is meant to let through. The floor is only the minimum, so each host device reports its own top level. My guess is that the Windows 28000 system ships a newer WARP/D3D12 runtime that exposes 12_2, while 26200 and my 26300 report 12_1, but I have not checked that. Either way the proxy forwards the device's own answer. The Vulkan-backed device stays at 12_1 regardless, since it reports no ray tracing tier and no sampler feedback.

**@⁠kawaii-shakal** on GitHub · 2026-11-24 16:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/913#issuecomment-7137249637) Thanks @⁠Timon360SB and @⁠SweatierKey for the runs. The 12_1 vs 12_2 WARP difference is what this change is meant to let through. The floor is only the minimum, so each host device reports its own top level. My guess is that the Windows 28000 system ships a newer WARP/D3D12 runtime that exposes 12_2, while 26200 and my 26300 report 12_1, but I have not checked that. Either way the proxy forwards the device's own answer. The Vulkan-backed device stays at 12_1 regardless, since it reports no ray tracing tier and no sampler feedback.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-24 20:30 UTC · original

Merged. Nothing blocks this, the claim is valid and first, and two other contributors' Windows runs pass. Locally, a Wine build of xs_proxy_mock_test on main + this PR passes the new case for every host level (11_0 to 12_2); with create_host_device changed back to 12_0, the run fails at the 11_0 host.

The fix is right: the level D3D12CreateDevice takes is a minimum, so 11_0 turns no adapter away, and the title still sees the host's own top level through slot 13. Three small, optional points for a follow-up:

  • d3d12_xs_device.cpp (create_host_device): the log line has "11_0" written in; it could format kHostDeviceFloor. When the FEATURE_LEVELS query fails, it prints "highest level 0_0"; "highest level unknown" would read better.
  • xs_proxy_mock_test.cpp, the fake_create_device(…, D3D_FEATURE_LEVEL_12_0, …) check calls the mock directly, so it tests no shim code. A comment saying it only documents the old behaviour would help.
  • d3d12_xs_device.h and docs/d3d12_xs_surface.md: "the lowest level D3D12 creates a device at" is a little too broad, because D3D_FEATURE_LEVEL_1_0_CORE and 1_0_GENERIC are lower. "The lowest graphics feature level" would be exact.

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-24 20:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/913#issuecomment-7143661378) Merged. Nothing blocks this, the claim is valid and first, and two other contributors' Windows runs pass. Locally, a Wine build of `xs_proxy_mock_test` on `main` + this PR passes the new case for every host level (11_0 to 12_2); with `create_host_device` changed back to 12_0, the run fails at the 11_0 host. The fix is right: the level `D3D12CreateDevice` takes is a minimum, so 11_0 turns no adapter away, and the title still sees the host's own top level through slot 13. Three small, optional points for a follow-up: - `d3d12_xs_device.cpp` (`create_host_device`): the log line has "11_0" written in; it could format `kHostDeviceFloor`. When the `FEATURE_LEVELS` query fails, it prints "highest level 0_0"; "highest level unknown" would read better. - `xs_proxy_mock_test.cpp`, the `fake_create_device(…, D3D_FEATURE_LEVEL_12_0, …)` check calls the mock directly, so it tests no shim code. A comment saying it only documents the old behaviour would help. - `d3d12_xs_device.h` and `docs/d3d12_xs_surface.md`: "the lowest level D3D12 creates a device at" is a little too broad, because `D3D_FEATURE_LEVEL_1_0_CORE` and `1_0_GENERIC` are lower. "The lowest graphics feature level" would be exact. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.