mirror of
https://github.com/utmapp/UTM.git
synced 2026-10-12 02:24:01 +00:00
process: enable verbose virgl logging for iOS
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user