=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vulkan-1/tests: Add test for unsupported device extensions.
Alexandre Julliard
julliard at winehq.org
Mon Sep 10 16:01:10 CDT 2018
Module: wine
Branch: master
Commit: 3d3c92ed5fef283dd4fd3f5dd4e241ebc4d7685d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3d3c92ed5fef283dd4fd3f5dd4e241ebc4d7685d
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Mon Sep 10 13:07:01 2018 +0200
vulkan-1/tests: Add test for unsupported device extensions.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/vulkan-1/tests/vulkan.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/dlls/vulkan-1/tests/vulkan.c b/dlls/vulkan-1/tests/vulkan.c
index 55efa23..4143af7 100644
--- a/dlls/vulkan-1/tests/vulkan.c
+++ b/dlls/vulkan-1/tests/vulkan.c
@@ -300,6 +300,27 @@ static void test_unsupported_instance_extensions(void)
}
}
+static void test_unsupported_device_extensions(VkPhysicalDevice vk_physical_device)
+{
+ VkDevice vk_device;
+ unsigned int i;
+ VkResult vr;
+
+ static const char *extensions[] =
+ {
+ "VK_KHR_external_fence_fd",
+ "VK_KHR_external_memory_fd",
+ "VK_KHR_external_semaphore_fd",
+ };
+
+ for (i = 0; i < ARRAY_SIZE(extensions); ++i)
+ {
+ vr = create_device(vk_physical_device, 1, &extensions[i], NULL, &vk_device);
+ ok(vr == VK_ERROR_EXTENSION_NOT_PRESENT,
+ "Got VkResult %d for extension %s.\n", vr, extensions[i]);
+ }
+}
+
static void for_each_device(void (*test_func)(VkPhysicalDevice))
{
VkPhysicalDevice *vk_physical_devices;
@@ -342,4 +363,5 @@ START_TEST(vulkan)
test_physical_device_groups();
for_each_device(test_destroy_command_pool);
test_unsupported_instance_extensions();
+ for_each_device(test_unsupported_device_extensions);
}
More information about the wine-cvs
mailing list