mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 08:58:36 +00:00
Merge pull request #473 from Dezmonius/test-warp-video-encode-allocator
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 commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include "d3d12_depth24_compare.h" // D24 clears compared with the host runtime
|
||||
#include "../src/vulkan_memory.h" // D3D-96: resizable_bar
|
||||
|
||||
#include <d3d12video.h>
|
||||
#include <dxgi1_4.h>
|
||||
|
||||
#include <dxgi1_4.h>
|
||||
@ -4055,7 +4056,11 @@ int compare_invalid_arguments(ID3D12Device* ours) {
|
||||
return command_allocator(d, D3D12_COMMAND_LIST_TYPE(3));
|
||||
}},
|
||||
{"command allocator: type video encode", [](ID3D12Device* d) {
|
||||
return command_allocator(d, D3D12_COMMAND_LIST_TYPE(6));
|
||||
return command_allocator(d, D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE);
|
||||
}, [](ID3D12Device* d) {
|
||||
// A host without the D3D12 video interface, such as WARP on Windows 10, rejects video allocators.
|
||||
Ref<ID3D12VideoDevice> video;
|
||||
return d->QueryInterface(IID_PPV_ARGS(&video.p)) != E_NOINTERFACE;
|
||||
}},
|
||||
{"command allocator: type 7", [](ID3D12Device* d) { return command_allocator(d, D3D12_COMMAND_LIST_TYPE(7)); }},
|
||||
{"command allocator: type 99", [](ID3D12Device* d) {
|
||||
|
||||
Reference in New Issue
Block a user