Skip to content
Snippets Groups Projects
Commit 60fc318d authored by Simon McVittie's avatar Simon McVittie
Browse files

Merge branch 'wip/multi-gpu-stopgap' into 'master'

check-vulkan: Temporarily print JSON details of GPUs to stderr

See merge request !229
parents 2107a0df 0d0b054a
No related branches found
No related tags found
1 merge request!229check-vulkan: Temporarily print JSON details of GPUs to stderr
Pipeline #8046 passed
......@@ -1370,13 +1370,22 @@ int main (int argc,
goto out;
for (i = 0; i < physical_device_count; i++)
print_physical_device_info (physical_devices[i], original_stdout);
print_physical_device_info (physical_devices[i], stderr);
result = draw_test_triangle (vk_instance, physical_devices[0], error);
print_draw_test_result (0, result, local_error, original_stdout);
for (i = 0; i < physical_device_count; i++)
{
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)
ret = EXIT_SUCCESS;
g_clear_error (error);
/* Return exit success if we are able to draw with at least one device */
if (result)
ret = EXIT_SUCCESS;
}
out:
if (local_error != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment