From 70847857f75a355411df344c00a548a621f238f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 17 Nov 2022 22:34:58 +0800 Subject: [PATCH] GPU: remove special handling for WSL WSL2 is VM, which can only provide virtual GPUs, like other VMs do. We should honor it. As of WSL 1.0, it prints `Microsoft Corporation Basic Render Driver` --- src/modules/gpu.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/gpu.c b/src/modules/gpu.c index 11507191a..905fd9774 100644 --- a/src/modules/gpu.c +++ b/src/modules/gpu.c @@ -44,12 +44,6 @@ void ffPrintGPU(FFinstance* instance) if(ffPrintFromCache(instance, FF_GPU_MODULE_NAME, &instance->config.gpu, FF_GPU_NUM_FORMAT_ARGS)) return; - if(ffStrbufCompS(&ffDetectHost()->productName, FF_HOST_PRODUCT_NAME_WSL) == 0) - { - ffPrintError(instance, FF_GPU_MODULE_NAME, 0, &instance->config.gpu, "WSL doesn't expose senseful GPU names"); - return; - } - const FFlist* gpus = ffDetectGPU(instance); if(gpus->length == 0)