process: enable verbose virgl logging for iOS

This commit is contained in:
osy
2026-01-25 15:45:34 -08:00
parent 038ff43959
commit b57a4e380d
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -15,6 +15,7 @@
//
#import <dlfcn.h>
#import <TargetConditionals.h>
#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";
-2
View File
@@ -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 {