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

Merged
Dezmonius merged 1 commit from upstream-pr/473 into main 2026-11-24 06:33:36 +00:00
Dezmonius commented 2026-11-24 05:58:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Dezmonius on 2026-11-24T05:58:32Z.


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.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5466958377 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/473). Originally posted by [Dezmonius](https://github.com/Dezmonius) on 2026-11-24T05:58:32Z. --- 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 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T06:33:34Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7124057364 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/473#issuecomment-7124057364). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T06:33:34Z. --- 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 reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!473
No description provided.