TEST-WARP-VIDEO-ENCODE: compare allocator creation only on video-capable hosts #473

Merged
leonida/mandy
Dezmonius merged 1 commit from test-warp-video-encode-allocator into main 2026-11-24 06:33:36 +00:00

Pull request successfully merged and closed

Dezmonius commented 2026-11-24 05:58:32 +00:00

Claimed in the coordination issue as TEST-WARP-VIDEO-ENCODE. https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123435191

What and why

The native RTX 5070 D3D12 runtime accepts CreateCommandAllocator(VIDEO_ENCODE) on the tested Windows 10 system. The same OS's WARP adapter returns E_INVALIDARG for that allocator and E_NOINTERFACE for ID3D12VideoDevice. The end-to-end parity test counted that host capability difference as a regression.

Use the existing per-case comparability callback for this one allocator test. The test still compares the HRESULT when the host exposes the base video interface. The runtime is unchanged.

Tested

  • Native Windows 10 22H2, RTX 5070 / NVIDIA 610.88, MSVC 19.51.36256, Ninja Release.
  • ctest -V -R '^d3d12_vulkan_device$' with default native D3D12 and with LEONIDA_HOST_ADAPTER=warp.
  • Synthetic tests only. AI-assisted.

Baseline 8f481cf16: native D3D12 passed, WARP failed at the allocator argument comparison. With this patch on the same revision, both CTest runs passed. scripts/check_no_game_data.py passed for the changed test file.

Claimed in the coordination issue as TEST-WARP-VIDEO-ENCODE. https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123435191 ## What and why The native RTX 5070 D3D12 runtime accepts `CreateCommandAllocator(VIDEO_ENCODE)` on the tested Windows 10 system. The same OS's WARP adapter returns `E_INVALIDARG` for that allocator and `E_NOINTERFACE` for `ID3D12VideoDevice`. The end-to-end parity test counted that host capability difference as a regression. Use the existing per-case comparability callback for this one allocator test. The test still compares the HRESULT when the host exposes the base video interface. The runtime is unchanged. ## Tested - Native Windows 10 22H2, RTX 5070 / NVIDIA 610.88, MSVC 19.51.36256, Ninja Release. - `ctest -V -R '^d3d12_vulkan_device$'` with default native D3D12 and with `LEONIDA_HOST_ADAPTER=warp`. - Synthetic tests only. AI-assisted. Baseline `8f481cf16`: native D3D12 passed, WARP failed at the allocator argument comparison. With this patch on the same revision, both CTest runs passed. `scripts/check_no_game_data.py` passed for the changed test file.
QemmHD commented 2026-11-24 06:33:34 +00:00

Merging. Why merged: a minimal gate in the D3D12/Vulkan device test for hosts without D3D12 video support.
Why it's good: security-reviewed (7-line test change). Built and ran d3d12_vulkan_device_test with VS 2022 on an RTX 4070 SUPER (driver 621.24): passes before and after with identical output, as expected on a host that has video (the gate is a no-op there); the change is correct for hosts without it.

AI-assisted (Claude Code, Claude Opus 5.5).

Merging. Why merged: a minimal gate in the D3D12/Vulkan device test for hosts without D3D12 video support. Why it's good: security-reviewed (7-line test change). Built and ran d3d12_vulkan_device_test with VS 2022 on an RTX 4070 SUPER (driver 621.24): passes before and after with identical output, as expected on a host that has video (the gate is a no-op there); the change is correct for hosts without it. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No description provided.