Commit e3c0f6b3 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

vulkan-1/tests: Fix test failures on llvmpipe.

This happens because the llvmpipe virtual GPU is not in the RandR provider list when there is a hardware GPU driving the screen. So LUID for the llvmpipe is not generated in such cases. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52931Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com>
parent 3f0166fa
......@@ -212,11 +212,16 @@ static void test_enumerate_physical_device2(void)
trace("Device '%s', device UUID: %s, driver UUID: %s, device LUID: %08lx:%08lx.\n",
properties2.properties.deviceName, wine_dbgstr_guid((const GUID *)id.deviceUUID),
wine_dbgstr_guid((const GUID *)id.driverUUID), luid->HighPart, luid->LowPart);
todo_wine_if(!id.deviceLUIDValid && strstr(properties2.properties.deviceName, "llvmpipe"))
ok(id.deviceLUIDValid == VK_TRUE, "Expected valid device LUID.\n");
/* If deviceLUIDValid is VK_TRUE, deviceNodeMask must contain exactly one bit according
* to the Vulkan specification */
if (id.deviceLUIDValid == VK_TRUE)
{
/* If deviceLUIDValid is VK_TRUE, deviceNodeMask must contain exactly one bit
* according to the Vulkan specification */
ok(id.deviceNodeMask && !(id.deviceNodeMask & (id.deviceNodeMask - 1)),
"Expect deviceNodeMask to have only one bit set, got %#x.\n", id.deviceNodeMask);
"Expect deviceNodeMask to have only one bit set, got %#x.\n",
id.deviceNodeMask);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment