From b57a4e380db57be1c02ea63eabe7f4211b30317d Mon Sep 17 00:00:00 2001 From: osy <50960678+osy@users.noreply.github.com> Date: Sun, 25 Jan 2026 15:45:34 -0800 Subject: [PATCH] process: enable verbose virgl logging for iOS --- Services/UTMQemuSystem.m | 3 +++ Services/UTMQemuVirtualMachine.swift | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Services/UTMQemuSystem.m b/Services/UTMQemuSystem.m index 9427f700..4fdf4c17 100644 --- a/Services/UTMQemuSystem.m +++ b/Services/UTMQemuSystem.m @@ -15,6 +15,7 @@ // #import +#import #import "UTMLogging.h" #import "UTMQemuSystem.h" @@ -108,7 +109,9 @@ static int startQemu(UTMProcess *process, int argc, const char *argv[], const ch - (void)setHasDebugLog:(BOOL)hasDebugLog { _hasDebugLog = hasDebugLog; if (hasDebugLog) { +#if TARGET_OS_OSX // FIXME: verbose logging is broken on iOS self.mutableEnvironment[@"G_MESSAGES_DEBUG"] = @"all"; +#endif self.mutableEnvironment[@"VK_LOADER_DEBUG"] = @"all"; self.mutableEnvironment[@"VIRGL_LOG_LEVEL"] = @"debug"; self.mutableEnvironment[@"MESA_DEBUG"] = @"1"; diff --git a/Services/UTMQemuVirtualMachine.swift b/Services/UTMQemuVirtualMachine.swift index 8db0a362..e5a62566 100644 --- a/Services/UTMQemuVirtualMachine.swift +++ b/Services/UTMQemuVirtualMachine.swift @@ -347,9 +347,7 @@ extension UTMQemuVirtualMachine { system.rendererBackend = rendererBackend system.vulkanDriver = try vulkanDriver system.shmemDirectoryURL = await config.shmemDirectoryURL - #if os(macOS) // FIXME: verbose logging is broken on iOS system.hasDebugLog = hasDebugLog - #endif try Task.checkCancellation() if isShortcut {