Skip to content
Snippets Groups Projects
Commit 0d0b054a authored by Ludovico de Nittis's avatar Ludovico de Nittis Committed by Simon McVittie
Browse files

check-vulkan: Try to draw with all the available devices

parent 8418c90c
No related branches found
No related tags found
1 merge request!229check-vulkan: Temporarily print JSON details of GPUs to stderr
Pipeline #8043 passed
...@@ -1372,11 +1372,20 @@ int main (int argc, ...@@ -1372,11 +1372,20 @@ int main (int argc,
for (i = 0; i < physical_device_count; i++) for (i = 0; i < physical_device_count; i++)
print_physical_device_info (physical_devices[i], stderr); print_physical_device_info (physical_devices[i], stderr);
result = draw_test_triangle (vk_instance, physical_devices[0], error); for (i = 0; i < physical_device_count; i++)
print_draw_test_result (0, result, local_error, stderr); {
result = draw_test_triangle (vk_instance, physical_devices[i], error);
print_draw_test_result (i, result, local_error, stderr);
if (local_error != NULL)
g_printerr ("%s", local_error->message);
if (result) g_clear_error (error);
ret = EXIT_SUCCESS;
/* Return exit success if we are able to draw with at least one device */
if (result)
ret = EXIT_SUCCESS;
}
out: out:
if (local_error != NULL) if (local_error != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment