Repository navigation
CheckFeatureSupport(FEATURE_LEVELS): an empty or missing list is E_INVALIDARG, as on the host - #991
Conversation
…VALIDARG NumFeatureLevels 0 returned DXGI_ERROR_UNSUPPORTED, and a null pFeatureLevelsRequested with a count was read. The host D3D12 runtime (NVIDIA and WARP) returns E_INVALIDARG for both. When no requested level is supported the host also writes MaxSupportedFeatureLevel 0 next to DXGI_ERROR_UNSUPPORTED; the layer left the field as it was.
|
Tested 7b11673 (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 (
AI-assisted (Claude Code). No game files. |
|
Tested 7b11673 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 |
|
Tested 7b11673: pass on both GPUs. Windows 11 26200, MSVC 19.44, Vulkan SDK 1.4.363,
No game files. AI-assisted (Claude Code). |
CheckFeatureSupport(D3D12_FEATURE_FEATURE_LEVELS)returnedDXGI_ERROR_UNSUPPORTEDforNumFeatureLevels == 0, and with a count and a nullpFeatureLevelsRequestedit read through the null pointer. The host D3D12 runtime returnsE_INVALIDARGfor both, on the NVIDIA adapter and on WARP (measured on this machine with the reald3d12.dll). When none of the requested levels is supported the host also writesMaxSupportedFeatureLevel = 0next toDXGI_ERROR_UNSUPPORTED; the layer left the field as the caller set it.runtime/shims/d3d12_vulkan_device.cpp: refuse an empty or missing list before reading it; write the level before the unsupported return.d3d12_vulkan_device_test: three cases next to the existing FEATURE_LEVELS check (count 0, null array, only 12_2).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_vulkan_device_testpasses. With the shim frommainit fails at the count-0 case (DXGI_ERROR_UNSUPPORTED). #459 checks this feature's size argument only, so the two don't overlap. No game files.AI-assisted.
🤖 Generated with Claude Code