Repository navigation
Conversation
…n a host with a video encoder (TEST-1019) The "command allocator: type video encode" case (ItsNotRexed#2297) had no comparable check. WARP has no video encoder and refuses the allocator with E_INVALIDARG, while the layer creates it, so the LEONIDA_HOST_ADAPTER=warp run that docs/d3d12_vulkan.md suggests always failed at argument_mismatches <= 0 (@emirduran707's finding). host_has_video_encode asks the host for a VIDEO_ENCODE command queue, and the case is compared only when it gets one; otherwise it is reported as not comparable, as the ray-tracing and unaligned-block cases already are. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kam471
left a comment
There was a problem hiding this comment.
Checked the diff at b5e081460 (Windows 11 host; this machine has a video device, so the gated row still compares and the test is unaffected). The change adds host_has_video_encode (create a VIDEO_ENCODE queue) and a comparable predicate on the "command allocator: type video encode" case, so a WARP host that refuses it with E_INVALIDARG no longer counts as a mismatch. git diff --check clean. No blocking issue.
Duplicate: #4700 (opened 53 s later) gates the same row, using QueryInterface(ID3D12VideoDevice) instead of creating the queue. Both target TEST-1019 and the two branches conflict in runtime/test/d3d12_vulkan_device_test.cpp (git merge-tree refs/remotes/pr/4698 refs/remotes/pr/4700 -> exit 1). This one is earlier and tests the actual ability the case needs (a host can expose the video device and still refuse the queue); one of the two should close.
|
AI-assisted. Tested b5e0814 on Windows 11 with MSVC 14.51. The WARP comparison passes with both Vulkan adapters. The parent test fails on both. I built d3d12_vulkan_device_test in RelWithDebInfo. I set LEONIDA_HOST_ADAPTER=warp and ran the executable with LEONIDA_VK_DEVICE=4090 and then Radeon. WARP returns 0x80070057 for the VIDEO_ENCODE allocator. The layer returns S_OK. The head reports this row as not comparable and exits 0. The same executable built with the parent test source from 98fa503 exits 1 at argument_mismatches <= 0. I repeated each run with the matching hardware host. Both pass. I also ran these four combinations on #4700 at fa3a880. All four pass there. These measurements cover WARP, the RTX 4090 (driver 32.0.16.2101), and AMD Radeon Graphics (driver 32.0.21043.5001). |
|
More evidence at this head, on |
|
Reviewed without a build: the predicate matches the test file's existing comparable-idiom pattern exactly (same shape as the ray-tracing cases at d3d12_vulkan_device_test.cpp:4347) and the not-comparable report path is the one the harness already prints, so the WARP run should read "not comparable on this host" instead of failing. I cannot build the D3D12 test here, so the WARP behaviour stands on your Windows run. Also please rebase: as submitted this sits on a 900+ commit stack that rewrites this same test file and reverts several merged PRs — only the one-test hunk should go in. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). Correction (2026-11-23): the rebase/integration-stack note above was wrong — our verifier tracked a stale main ref. Those base commits are current main; this head contains main and merge-trees cleanly against de67135. No rebase needed; the tests-pass verdict stands unchanged. See the correction note on #4421. |
|
@memorypressure Thanks for the read. This PR is a single commit, |
TEST-1019 (@emirduran707's finding). Claim: #4683 (comment)
d3d12_vulkan_device_test's "command allocator: type video encode" case came in with #2297 without acomparablecheck. WARP has no video encoder, so it refuses the allocator withE_INVALIDARG, while the layer creates it. TheLEONIDA_HOST_ADAPTER=warprun thatdocs/d3d12_vulkan.mdsuggests therefore always failed atargument_mismatches <= 0.Change
host_has_video_encodeasks the host for aVIDEO_ENCODEcommand queue. The case is compared only when the host creates one; otherwise it prints "not comparable on this host", as the ray-tracing and unaligned-block-texture cases already do. A GPU host with an encoder compares it exactly as before.Tested (Windows 11, RTX 3060 / NVIDIA 610.88, MSVC 19.51, RelWithDebInfo)
main98fa503fLEONIDA_HOST_ADAPTER=warp)video encode: ours 0x00000000, host 0x80070057,line 5324: argument_mismatches <= 0video encode: not comparable on this host (ours 0x00000000, host 0x80070057)LEONIDA_D3D49_VERBOSE=1:ours 0x00000000 host 0x00000000), also withLEONIDA_VK_VALIDATION=1Test-only change, no game files. AI-assisted (Claude Code).
🤖 Generated with Claude Code