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

Manually merged
github merged 1 commit from gh-pr/473/head into gh-pr/473/base 2026-11-26 09:02:38 +00:00
Owner

@⁠Dezmonius on GitHub · 2026-11-24 05:58 UTC · original
Dezmonius:test-warp-video-encode-allocator → main · +6 −1 · 1 files · 1 commits · merged 2026-11-24 06:33 UTC

Claimed in the coordination issue as TEST-WARP-VIDEO-ENCODE. #14

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.

**@⁠Dezmonius** on GitHub · 2026-11-24 05:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/473) `Dezmonius:test-warp-video-encode-allocator` → `main` · +6 −1 · 1 files · 1 commits · merged 2026-11-24 06:33 UTC Claimed in the coordination issue as TEST-WARP-VIDEO-ENCODE. https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:02:36 +00:00
github manually merged commit 86ba7556ba into gh-pr/473/base 2026-11-26 09:02:38 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 06:33 UTC · original

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

**@⁠QemmHD** on GitHub · 2026-11-24 06:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/473#issuecomment-7124057364) 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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.