VirtualBox

Changeset 56008 in vbox for trunk/src


Ignore:
Timestamp:
May 21, 2015 3:07:13 PM (10 years ago)
Author:
vboxsync
Message:

Additions/common/crOpenGL: fixed detection of CrHgsmi transport in packspu for Windows guest.

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk

    r55825 r56008  
    581581        $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate$(VBOX_SUFF_LIB) \
    582582        $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker$(VBOX_SUFF_LIB)
     583VBoxOGLpackspu_LIBS.win += \
     584        $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger$(VBOX_SUFF_LIB) \
     585        $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB)
     586
    583587ifdef VBOX_WITH_CRHGSMI
    584588VBoxOGLpackspu_DEFS.win   += VBOX_WITH_CRHGSMI
     
    604608        $(PATH_STAGE_LIB)/additions/VBoxOGLcrstate-x86$(VBOX_SUFF_LIB) \
    605609        $(PATH_STAGE_LIB)/additions/VBoxOGLcrpacker-x86$(VBOX_SUFF_LIB)
     610VBoxOGLpackspu-x86_LIBS.win += \
     611        $(PATH_STAGE_LIB)/additions/VBoxDispMpLogger-x86$(VBOX_SUFF_LIB) \
     612        $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi-x86$(VBOX_SUFF_LIB)
    606613VBoxOGLpackspu-x86_DEFS = $(VBoxOGLpackspu_DEFS) VBOX_WDDM_WOW64
    607614endif
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu.h

    r52262 r56008  
    9595
    9696#if defined(WINDOWS) && defined(VBOX_WITH_WDDM)
    97     bool bRunningUnderWDDM;
     97    bool bIsWDDMCrHgsmi;
    9898#endif
    9999
     
    147147
    148148#if defined(WINDOWS) && defined(VBOX_WITH_WDDM) && defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    149 # define CRPACKSPU_IS_WDDM_CRHGSMI() (pack_spu.bRunningUnderWDDM)
     149# define CRPACKSPU_IS_WDDM_CRHGSMI() (pack_spu.bIsWDDMCrHgsmi)
    150150#else
    151151# define CRPACKSPU_IS_WDDM_CRHGSMI() (GL_FALSE)
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c

    r55627 r56008  
    2727#endif
    2828
     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)
     35static 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
    2949static SPUFunctions *
    3050packSPUInit( int id, SPU *child, SPU *self,
     
    5373
    5474#if defined(WINDOWS) && defined(VBOX_WITH_WDDM)
    55     pack_spu.bRunningUnderWDDM = !!GetModuleHandle(VBOX_MODNAME_DISPD3D);
     75    pack_spu.bIsWDDMCrHgsmi = isVBoxWDDMCrHgsmi();
    5676#endif
    5777
Note: See TracChangeset for help on using the changeset viewer.

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