From e9044930490d36a42b93bb413b999d78483d0530 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 3 May 2023 16:58:18 -0500 Subject: [PATCH] refactor(wezterm): clean up gpu detection --- dots/.config/wezterm/config/gpu.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dots/.config/wezterm/config/gpu.lua b/dots/.config/wezterm/config/gpu.lua index 6d2c73db..c4aec322 100644 --- a/dots/.config/wezterm/config/gpu.lua +++ b/dots/.config/wezterm/config/gpu.lua @@ -5,12 +5,11 @@ local wezterm = require("wezterm") local found_valid_gpu = false for _, gpu in ipairs(wezterm.gui.enumerate_gpus()) do - if gpu.backend == "Vulkan" then - wezterm.log_info("Found Usable Vulkan GPU\n Device Name -> " .. gpu.name .."\n Device Type -> " .. gpu.device_type) + if gpu.backend == "Vulkan" and not found_valid_gpu then + wezterm.log_info("Found Usable Vulkan GPU -- Device Name -> " .. gpu.name .."; Device Type -> " .. gpu.device_type) config.webgpu_preferred_adapter = gpu config.front_end = "WebGpu" found_valid_gpu = true - break end end