Perf: re-enable VOSF on Xcode-made, OSX-host builds

This commit is contained in:
David Ludwig 2017-09-12 18:35:24 -04:00
parent ef26204e6d
commit 4e5e3377f1
3 changed files with 5 additions and 10 deletions

View File

@ -1316,6 +1316,7 @@
"$(inherited)",
"$(LOCAL_LIBRARY_DIR)/Frameworks",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.basiliskii.BasiliskII;
@ -1332,6 +1333,7 @@
"$(inherited)",
"$(LOCAL_LIBRARY_DIR)/Frameworks",
);
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
INFOPLIST_FILE = "$(SRCROOT)/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.basiliskii.BasiliskII;

View File

@ -43,6 +43,7 @@
/* Define if using video enabled on SEGV signals. */
/* #undef ENABLE_VOSF */
#define ENABLE_VOSF 1
/* Define if using XFree86 DGA extension. */
/* #undef ENABLE_XF86_DGA */

View File

@ -210,9 +210,6 @@ extern void SysMountFirstFloppy(void);
static void *vm_acquire_framebuffer(uint32 size)
{
#if __MACOSX__
return calloc(1, size);
#else
// always try to reallocate framebuffer at the same address
static void *fb = VM_MAP_FAILED;
if (fb != VM_MAP_FAILED) {
@ -226,16 +223,11 @@ static void *vm_acquire_framebuffer(uint32 size)
if (fb == VM_MAP_FAILED)
fb = vm_acquire(size, VM_MAP_DEFAULT | VM_MAP_32BIT);
return fb;
#endif
}
static inline void vm_release_framebuffer(void *fb, uint32 size)
{
#if __MACOSX__
free(fb);
#else
vm_release(fb, size);
#endif
}
static inline int get_customized_color_depth(int default_depth)