From 11cb53d2a54cfd105e30242aa364b23c77998984 Mon Sep 17 00:00:00 2001 From: Vanfanel Date: Sun, 21 Feb 2021 23:28:49 +0100 Subject: [PATCH] [KMSDRM] Add missing break and modify comments. --- src/video/kmsdrm/SDL_kmsdrmvulkan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/kmsdrm/SDL_kmsdrmvulkan.c b/src/video/kmsdrm/SDL_kmsdrmvulkan.c index 34922980a..76a293b5a 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvulkan.c +++ b/src/video/kmsdrm/SDL_kmsdrmvulkan.c @@ -282,7 +282,9 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS, /* A GPU (or physical_device, in vkcube terms) is a physical GPU. A machine with more than one video output doesn't need to have more than one GPU, like the Pi4 which has 1 GPU and 2 video outputs. - Just in case, we test that the GPU we choose is Vulkan-capable. + Just in case, we test that the GPU we choose is Vulkan-capable. + If there are new reports about VK init failures, hardcode + gpu = physical_devices[0], instead of probing, and go with that. */ /* Get the physical device count. */ @@ -313,6 +315,7 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS, { gpu = physical_devices[i]; valid_gpu = SDL_TRUE; + break; } }