[PATCH vkd3d] tests/vkd3d_api: Ignore llvmpipe device for testing.
Giovanni Mascellani
gmascellani at codeweavers.com
Thu Aug 19 10:15:25 CDT 2021
Creating a D3D12 device backed by a llvmpipe physical device fails
because llvmpipe doesn't implement some required extensions. This is
not a failure in vkd3d.
---
tests/vkd3d_api.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/vkd3d_api.c b/tests/vkd3d_api.c
index 8195c067..c32fc465 100644
--- a/tests/vkd3d_api.c
+++ b/tests/vkd3d_api.c
@@ -553,6 +553,14 @@ static void test_physical_device(void)
{
for (i = 0; i < count; ++i)
{
+ VkPhysicalDeviceProperties vk_physical_device_properties;
+ vkGetPhysicalDeviceProperties(vk_physical_devices[i], &vk_physical_device_properties);
+ if (strncmp(vk_physical_device_properties.deviceName, "llvmpipe", 8) == 0)
+ {
+ trace("Ignoring llvmpipe device.\n");
+ continue;
+ }
+
trace("Creating device for Vulkan physical device %p.\n", vk_physical_devices[i]);
create_info.vk_physical_device = vk_physical_devices[i];
--
2.33.0
More information about the wine-devel
mailing list