···4646 if (s->use_compute) {
4747 s->color_format = VK_FORMAT_B8G8R8A8_UNORM;
4848 } else {
4949+#if defined(XRT_OS_ANDROID)
5050+ /*
5151+ * On Android the most ubiquitous sRGB format is R8G8B8A8_SRGB.
5252+ * https://vulkan.gpuinfo.org/listsurfaceformats.php?platform=android
5353+ */
5454+ s->color_format = VK_FORMAT_R8G8B8A8_SRGB;
5555+#elif defined(XRT_OS_LINUX) || defined(XRT_OS_WINDOWS)
5656+ /*
5757+ * On Linux the most ubiquitous sRGB format is B8G8R8A8_SRGB.
5858+ * https://vulkan.gpuinfo.org/listsurfaceformats.php?platform=linux
5959+ *
6060+ * On Windows the most ubiquitous sRGB format is B8G8R8A8_SRGB.
6161+ * https://vulkan.gpuinfo.org/listsurfaceformats.php?platform=windows
6262+ */
4963 s->color_format = VK_FORMAT_B8G8R8A8_SRGB;
6464+#else
6565+#error "Need to pick default swapchain format for this platform!"
6666+#endif
5067 }
51685269 s->display = debug_get_num_option_xcb_display();