Skip to content

ID3D12CommandQueue::GetDesc: node mask 0 reads back as 1, as on the host - #992

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
quackottu:queue-desc-nodemask
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
quackottu:queue-desc-nodemask

Conversation

@quackottu

Copy link
Copy Markdown
Contributor

ID3D12CommandQueue::GetDesc returned the desc exactly as it was created, so a queue created with NodeMask = 0 read back 0. The host D3D12 runtime reports 1 (the one node) for direct, compute and copy queues alike, the same rule #838 applied to ID3D12DescriptorHeap::GetDesc and GetHeapProperties; queues weren't covered.

  • runtime/shims/d3d12_com.cpp: GetDesc reports node mask 0 as 1.
  • d3d12_node_mask_test: compares GetDesc of the six queue cases (three types × node mask 0/1) with the default adapter and WARP, like its heap and descriptor-heap comparisons.

Tested (Windows 11, RTX 5070 (driver 621.24), MSVC 14.44, Vulkan SDK 1.4.363.0, LEONIDA_VK_VALIDATION=1, overlay layers off): d3d12_node_mask_test 6 of 6 queue cases match on both the default adapter and WARP (and the existing 18 + 8 still match). With d3d12_com.cpp from main: 3 of 6 differ on each. No game files.

AI-assisted.

🤖 Generated with Claude Code

The host D3D12 runtime reports NodeMask 1 for a direct, compute or copy
queue created with 0 on a single adapter, as ItsNotRexed#838 made descriptor heaps and
resources do. d3d12_node_mask_test now compares the six queue cases with
the default adapter and WARP.
@UlteriorMotive00

Copy link
Copy Markdown
Contributor

Tested 4f9e5a6 (on main) on AMD RDNA2 iGPU and RTX 5070: pass.

Windows 11 Home 10.0.26300, MSVC 14.44.35207, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0, Ninja RelWithDebInfo (scripts\build_runtime.ps1), LEONIDA_VK_VALIDATION=1, VK_LOADER_LAYERS_DISABLE=~implicit~. One PC, two GPUs, picked with VK_LOADER_DRIVERS_SELECT: AMD Radeon iGPU of a Ryzen 7 9800X3D (RDNA2, 1002:13C0, AMD 2026.04.17) and NVIDIA GeForce RTX 5070 (Blackwell, 617.42).

AI-assisted (Claude Code). No game files.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 4f9e5a6 on Windows 11, MSVC 14.51, with the full shader toolchain: ctest 33/33 on an RTX 4080 SUPER (32.0.16.1714), including this PR's tests. On an Intel UHD 770 (32.0.101.6129) the one failure is d3d12_vulkan_device comparing OPTIONS1 with the other GPU's host device. That fails on main too, #962 fixes it, and it isn't from this PR.

@BACONMANXDGOD

Copy link
Copy Markdown
Contributor

Tested 4f9e5a6: pass on both GPUs. Windows 11 26200, MSVC 19.44, Vulkan SDK 1.4.363, LEONIDA_VK_VALIDATION=1, applied to main 43d4703 (merges cleanly). GPUs: Intel Arrow Lake Xe-LPG iGPU (Windows 32.0.101.8132) and RTX 5070 Ti Laptop (617.42), selected with VK_LOADER_DRIVERS_SELECT.

  • d3d12_node_mask_test exits 0 with the layer on the Intel iGPU and on the RTX. Heap properties 18 of 18, descriptor heap GetDesc 8 of 8 and command queue GetDesc 6 of 6 match both the default adapter and WARP. On this laptop the default D3D12 adapter (DXGI adapter 0) is the RTX, so the host side is NVIDIA's D3D12 driver and WARP in both runs.
  • Control: with 43d4703's d3d12_com.cpp the three node-mask-0 queue cases differ (ours node mask 0, host 1) from the default adapter and from WARP, on both GPUs.

No game files. AI-assisted (Claude Code).

@ItsNotRexed
ItsNotRexed merged commit e857798 into ItsNotRexed:main Nov 22, 2026
11 checks passed
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.

5 participants