Skip to content

d3d12: OPTIONS1 answers 16..16 lanes on Intel integrated GPUs like the host (D3D-121) - #1285

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
EmreO33:d3d121-intel-options1-lanes
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
EmreO33:d3d121-intel-options1-lanes

Conversation

@EmreO33

@EmreO33 EmreO33 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

D3D-121 (claimed in #1218).

CheckFeatureSupport(D3D12_OPTIONS1) answered Vulkan's subgroup size range, which on Intel integrated GPUs is 8..32, while Intel's D3D12 driver reports a fixed 16..16. compare_options1 in d3d12_vulkan_device_test failed on every Intel iGPU because of it.

The layer now answers 16..16 on an Intel (vendorID 0x8086) integrated GPU, when 16 lies inside the Vulkan range. Discrete Arc keeps the Vulkan range: nobody has measured its host answer yet (TEST-57). TotalLaneCount stays one full wave (16 there). The exception is written up in docs/d3d12_vulkan.md next to the OPTIONS1 notes.

Tested

d3d12_vulkan_device_test (RelWithDebInfo, MSVC 19.44, Windows 11 26300), LEONIDA_VK_DEVICE set to each GPU of one laptop:

GPU, driver Before After
Intel Raptor Lake-S Mobile (Xe-LP), 101.7092 WaveLaneCountMin: ours 8, host 16, WaveLaneCountMax: ours 32, host 16 lanes 16..16, matches host
NVIDIA RTX 5060 Laptop, 621.24 lanes 32..32, matches unchanged

The OPTIONS1 check passes on both. The test as a whole still exits 1 on both GPUs at the later GetResourceAllocationInfo comparison (line 2142). That failure already exists on main, and on Intel it was hidden behind this one. I posted the numbers as a finding in #1218: #1218 (comment)

AI-assisted (Claude Code).

…e host (D3D-121)

Intel's D3D12 driver reports a fixed WaveLaneCountMin/Max of 16 on its
integrated GPUs, where Vulkan reports the compiler's 8..32 range, so
compare_options1 failed on every Intel iGPU. Measured on Xe-LP: UHD 770
(32.0.101.6129) and Raptor Lake-S Mobile (101.7092). Discrete Arc keeps
the Vulkan range until TEST-57 measures it.
@kapitche

Copy link
Copy Markdown
Contributor

Tested on Windows 11 with two GPUs on one machine (runtime built from this PR's head, MSVC 14.51): this fixes #962 on an Intel UHD 770 (32.0.101.6129).

  • ctest on the Intel UHD 770: d3d12_vulkan_device passes. It has failed in every Intel run I've done on main (the OPTIONS1 host comparison, D3D12's fixed 16 lanes vs Vulkan's 8..32 range). The 3 remaining Intel failures are unrelated: vk_binary_occlusion (reported in Coordinating who works on what (5) (moved to #1380) #1218), d3d12_descriptor (min-LOD truncation) and d3d12_copy_xfmt.
  • RTX 4080 SUPER: 61/61, unchanged.

@danosovsky

Copy link
Copy Markdown

Tested 05b1dbd on Windows 11 (26300), MSVC BuildTools 2022, RelWithDebInfo via scripts\build_runtime.ps1: pass

d3d12_vulkan_device_test, LEONIDA_VK_DEVICE set to each GPU:

GPU, driver Result
NVIDIA RTX 4070 SUPER (desktop), 621.24 exit 0; CheckFeatureSupport options: 15 queries, 0 mismatches (OPTIONS1 unchanged on NVIDIA)
AMD Radeon(TM) Graphics (Ryzen 7600X iGPU, RDNA2), 32.0.21036.18 exit 0; CheckFeatureSupport options: 15 queries, 0 mismatches

Note: on both GPUs the test ran to the end and exited 0, including the GetResourceAllocationInfo comparison that exits 1 in your runs (line 2142), so that failure may be specific to your laptop's GPUs or drivers.

AI-assisted run.

@ItsNotRexed
ItsNotRexed merged commit 10b5c2b into ItsNotRexed:main Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants