Repository navigation
D3D-86: answer D3D12_OPTIONS1 in CheckFeatureSupport - #745
Conversation
|
Tested
AI-assisted (Claude Code). |
|
Tested
PR head as-is, no game files. AI-assisted. |
|
Tested b196d4b on NVIDIA GeForce RTX 3060, driver 596.36, Windows 10 Pro 19045: pass, once the Windows 10 footprint skip from #717 is present.
Two notes for the rebase:
Validation: the stock harness on this base counted a loader error from a stale implicit-layer manifest on this machine (TEST-98), so the validation result above is with that count filter applied locally (#741, now on Not run: the |
quackottu
left a comment
There was a problem hiding this comment.
Tested b196d4b on NVIDIA GeForce RTX 5070, driver 621.24, Windows 11 Pro (26300), VS 2022 Build Tools, Vulkan SDK 1.4.363.0, with LEONIDA_VK_VALIDATION=1 and LEONIDA_D3D12=vulkan: pass
ctest -C RelWithDebInfo: 100% tests passed, 0 tests failed out of 29d3d12_vulkan_device_test(changed here): exit=0 validation=0 | [rt] d3d12: Vulkan device: NVIDIA GeForce RTX 5070 (maxPushConstantsSize: 256 bytes)- 30 test programs in the build pass with 0 validation errors
d3d12_clear_testfails (format 28 case 0 byte 2: Vulkan 7f, WARP 80) exactly as onmain67204bf, so not from this PR: NVIDIA rounds a 0.5 UNORM clear to 0x7f, which #521 addresses
Implicit Vulkan layers (overlays) were off through an empty VK_IMPLICIT_LAYER_PATH.
b196d4b to
783a491
Compare
The query fell through to E_INVALIDARG. It now reports the Vulkan physical device's subgroup operations and wave-size range, with TotalLaneCount held to one full wave because Vulkan has no device-wide lane count.
783a491 to
5d1c033
Compare
|
Tested 5d1c033 on RTX 4090 (driver 621.14), Windows 11 26200, MSVC 19.44: pass (no regression against main).
The |
# Conflicts: # runtime/shims/d3d12_vulkan_device.cpp
item: D3D-86, the
D3D12_OPTIONS1slice (FORMAT_INFO and OPTIONS8 are separate claims; the other OPTIONS groups stay open)D3D12_FEATURE_D3D12_OPTIONS1used to fall through todefault: return E_INVALIDARG. The device now answers it from the Vulkan physical device's own subgroups:WaveOpsis true only when every operation group the wave intrinsics map to is present (BASIC,VOTE,BALLOT,SHUFFLE,ARITHMETIC), because D3D12 promises them all behind that single bool.WaveLaneCountMin/Maxcome fromVkPhysicalDeviceSubgroupSizeControlProperties, falling back tosubgroupSizewhen the device has no 1.3 subgroup-size control.TotalLaneCountis one full wave: D3D12 counts every lane of the device here, and Vulkan has no such number. Reporting a wave under-reports, so a game that sizes work from it plans for less parallelism than the GPU has, never more; section 4.1 ofdocs/d3d12_vulkan.mdrecords the choice.ExpandedComputeResourceStatesis true (Vulkan has no resource states to expand).DataSizeone field short or long, and a null buffer, areE_INVALIDARG; the host answers the wrong sizes the same way.Measured
Host PC runtime (616.86) on the RTX 5070 for this query:
S_OK,WaveOps1, lanes 32..32, total 6144, expanded states 1. The layer reports lanes 32..32 and total 32.The test compares wave ops, the lane range and expanded states field by field with the host device, prints both totals, and pins the one-wave total. That comparison is skipped on a software Vulkan device, where CI's llvmpipe and the host's WARP device would be answering about different machines.
Tested
cmake --build runtime/build --target d3d12_vulkan_device_test, thenruntime/build/d3d12_vulkan_device_test.exe, on Windows 11 with an RTX 5070 (driver 616.86, Vulkan 1.4.351): exit 0,D3D12_OPTIONS1: lanes 32..32, total 32 (host total 6144), no mismatches, and the earlier shader-model and root-signature checks still pass. No game files involved.Depends on: none