upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test
diff options
context:
space:
mode:
authorDezmonius <26298586+Dezmonius@users.noreply.github.com>2026-11-24 08:58:15 +0300
committerDezmonius <26298586+Dezmonius@users.noreply.github.com>2026-11-24 08:58:15 +0300
commit86ba7556ba0c3e686fbca752ff55efdae95d5cab (patch)
treee6bdd5a88c798199844c1e515d5e1786f982b5d6 /runtime/test
parent8f481cf16f261c7f37458aeb45e8f4e19994146d (diff)
test: gate VIDEO_ENCODE allocator parity on host video support
Diffstat (limited to 'runtime/test')
-rw-r--r--runtime/test/d3d12_vulkan_device_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/test/d3d12_vulkan_device_test.cpp b/runtime/test/d3d12_vulkan_device_test.cpp
index 41418c538..056e82561 100644
--- a/runtime/test/d3d12_vulkan_device_test.cpp
+++ b/runtime/test/d3d12_vulkan_device_test.cpp
@@ -17,6 +17,7 @@
17#include "d3d12_depth24_compare.h" // D24 clears compared with the host runtime 17#include "d3d12_depth24_compare.h" // D24 clears compared with the host runtime
18#include "../src/vulkan_memory.h" // D3D-96: resizable_bar 18#include "../src/vulkan_memory.h" // D3D-96: resizable_bar
19 19
20#include <d3d12video.h>
20#include <dxgi1_4.h> 21#include <dxgi1_4.h>
21 22
22#include <dxgi1_4.h> 23#include <dxgi1_4.h>
@@ -4055,7 +4056,11 @@ int compare_invalid_arguments(ID3D12Device* ours) {
4055 return command_allocator(d, D3D12_COMMAND_LIST_TYPE(3)); 4056 return command_allocator(d, D3D12_COMMAND_LIST_TYPE(3));
4056 }}, 4057 }},
4057 {"command allocator: type video encode", [](ID3D12Device* d) { 4058 {"command allocator: type video encode", [](ID3D12Device* d) {
4058 return command_allocator(d, D3D12_COMMAND_LIST_TYPE(6)); 4059 return command_allocator(d, D3D12_COMMAND_LIST_TYPE_VIDEO_ENCODE);
4060 }, [](ID3D12Device* d) {
4061 // A host without the D3D12 video interface, such as WARP on Windows 10, rejects video allocators.
4062 Ref<ID3D12VideoDevice> video;
4063 return d->QueryInterface(IID_PPV_ARGS(&video.p)) != E_NOINTERFACE;
4059 }}, 4064 }},
4060 {"command allocator: type 7", [](ID3D12Device* d) { return command_allocator(d, D3D12_COMMAND_LIST_TYPE(7)); }}, 4065 {"command allocator: type 7", [](ID3D12Device* d) { return command_allocator(d, D3D12_COMMAND_LIST_TYPE(7)); }},
4061 {"command allocator: type 99", [](ID3D12Device* d) { 4066 {"command allocator: type 99", [](ID3D12Device* d) {