VirtualBox

Ignore:
Timestamp:
May 6, 2019 9:31:01 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130405
Message:

Additions,GuestHost/OpenGL,HostServices/SharedOpenGL: Get rid of the individual SPU shared libraries and merge them into the VBoxSharedCrOpenGL shared libraries on the host and VBoxOGL{,-x86} shared libraries for the guest additions, bugref:9435

Location:
trunk/src/VBox/Additions/common/crOpenGL/pack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c

    r78375 r78408  
    5757    (void) self;
    5858
    59 #if !defined(WINDOWS)
    6059    crInitMutex(&_PackMutex);
    61 #endif
    6260
    6361    crInitTSD(&_PackerTSD);
     
    122120    crFreeTSD(&_PackTSD);
    123121    crUnlockMutex(&_PackMutex);
    124 #ifndef WINDOWS
    125122    crFreeMutex(&_PackMutex);
    126 #endif
     123    crNetTearDown(); /** @todo Why here? */
    127124    return 1;
    128125}
    129126
    130 int SPULoad( char **name, char **super, SPUInitFuncPtr *init,
    131          SPUSelfDispatchFuncPtr *self, SPUCleanupFuncPtr *cleanup,
    132          int *flags )
    133 {
    134     *name = "pack";
    135     *super = NULL;
    136     *init = packSPUInit;
    137     *self = packSPUSelfDispatch;
    138     *cleanup = packSPUCleanup;
    139     *flags = (SPU_HAS_PACKER|SPU_IS_TERMINAL|SPU_MAX_SERVERS_ONE);
    140 
    141     return 1;
    142 }
     127DECLHIDDEN(const SPUREG) g_PackSpuReg =
     128 {
     129    /** pszName. */
     130    "pack",
     131    /** pszSuperName. */
     132    NULL,
     133    /** fFlags. */
     134    SPU_HAS_PACKER | SPU_IS_TERMINAL | SPU_MAX_SERVERS_ONE,
     135    /** pfnInit. */
     136    packSPUInit,
     137    /** pfnDispatch. */
     138    packSPUSelfDispatch,
     139    /** pfnCleanup. */
     140    packSPUCleanup
     141};
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

    r78375 r78408  
    704704}
    705705
    706 #ifdef WINDOWS
    707 #define WIN32_LEAN_AND_MEAN
    708 #include <windows.h>
    709 BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)
    710 {
    711     (void) lpvReserved;
    712 
    713     switch (fdwReason)
    714     {
    715         case DLL_PROCESS_ATTACH:
    716         {
    717             crInitMutex(&_PackMutex);
    718             break;
    719         }
    720 
    721         case DLL_PROCESS_DETACH:
    722         {
    723             crFreeMutex(&_PackMutex);
    724             crNetTearDown();
    725             break;
    726         }
    727 
    728         case DLL_THREAD_ATTACH:
    729         case DLL_THREAD_DETACH:
    730         default:
    731             break;
    732     }
    733 
    734     return TRUE;
    735 }
    736 #endif
    737 
    738706void PACKSPU_APIENTRY packspu_VBoxPresentComposition(GLint win, const struct VBOXVR_SCR_COMPOSITOR * pCompositor,
    739707                                                     const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette