- Timestamp:
- May 21, 2015 3:07:13 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk
r55825 r56008 581 581 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \ 582 582 $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB) 583 VBoxOGLpackspu_LIBS.win += \ 584 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger$(VBOX_SUFF_LIB) \ 585 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB) 586 583 587 ifdef VBOX_WITH_CRHGSMI 584 588 VBoxOGLpackspu_DEFS.win += VBOX_WITH_CRHGSMI … … 604 608 $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB) \ 605 609 $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker-x86$(VBOX_SUFF_LIB) 610 VBoxOGLpackspu-x86_LIBS.win += \ 611 $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \ 612 $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB) 606 613 VBoxOGLpackspu-x86_DEFS = $(VBoxOGLpackspu_DEFS) VBOX_WDDM_WOW64 607 614 endif -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu.h
r52262 r56008 95 95 96 96 #if defined(WINDOWS) && defined(VBOX_WITH_WDDM) 97 bool b RunningUnderWDDM;97 bool bIsWDDMCrHgsmi; 98 98 #endif 99 99 … … 147 147 148 148 #if defined(WINDOWS) && defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 149 # define CRPACKSPU_IS_WDDM_CRHGSMI() (pack_spu.b RunningUnderWDDM)149 # define CRPACKSPU_IS_WDDM_CRHGSMI() (pack_spu.bIsWDDMCrHgsmi) 150 150 #else 151 151 # define CRPACKSPU_IS_WDDM_CRHGSMI() (GL_FALSE) -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c
r55627 r56008 27 27 #endif 28 28 29 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 30 # include <VBox/VBoxCrHgsmi.h> 31 # include <VBox/VBoxUhgsmi.h> 32 #endif 33 34 #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_WDDM) 35 static bool isVBoxWDDMCrHgsmi(void) 36 { 37 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 38 PVBOXUHGSMI pHgsmi = VBoxCrHgsmiCreate(); 39 if (pHgsmi) 40 { 41 VBoxCrHgsmiDestroy(pHgsmi); 42 return true; 43 } 44 #endif 45 return false; 46 } 47 #endif /* RT_OS_WINDOWS && VBOX_WITH_WDDM */ 48 29 49 static SPUFunctions * 30 50 packSPUInit( int id, SPU *child, SPU *self, … … 53 73 54 74 #if defined(WINDOWS) && defined(VBOX_WITH_WDDM) 55 pack_spu.b RunningUnderWDDM = !!GetModuleHandle(VBOX_MODNAME_DISPD3D);75 pack_spu.bIsWDDMCrHgsmi = isVBoxWDDMCrHgsmi(); 56 76 #endif 57 77
Note:
See TracChangeset
for help on using the changeset viewer.