From e21127c09c0a9c73ad19a3385520b13b59ce699d Mon Sep 17 00:00:00 2001 From: Xiaodong Ye Date: Fri, 2 Aug 2024 15:40:18 +0800 Subject: [PATCH] Add name field Signed-off-by: Xiaodong Ye --- src/detection/gpu/gpu_mthreads.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/detection/gpu/gpu_mthreads.c b/src/detection/gpu/gpu_mthreads.c index 8503013c5..edddd220b 100644 --- a/src/detection/gpu/gpu_mthreads.c +++ b/src/detection/gpu/gpu_mthreads.c @@ -173,6 +173,13 @@ const char *ffDetectMthreadsGpuInfo(const FFGpuDriverCondition *cond, FFGpuDrive } } + if (result.name) + { + char name[MTML_DEVICE_NAME_BUFFER_SIZE]; + if (mtmlData.ffmtmlDeviceGetName(device, name, sizeof(name)) == MTML_SUCCESS) + ffStrbufSetS(result.name, name); + } + return NULL; #else