GPU: clean up GPU index detection code

This commit is contained in:
李通洲
2024-09-19 15:38:43 +08:00
parent 503a8d51ab
commit 0bcbae90e9
7 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ const char *ffDetectMthreadsGpuInfo(const FFGpuDriverCondition *cond, FFGpuDrive
{
unsigned int value;
if (mtmlData.ffmtmlDeviceGetIndex(device, &value) == MTML_SUCCESS)
*result.index = (uint8_t)value;
*result.index = value;
}
if (result.temp)