VirtualBox

Changeset 20042 in vbox


Ignore:
Timestamp:
May 26, 2009 2:49:55 PM (16 years ago)
Author:
vboxsync
Message:

Main: sketched 3D hardware support test in IHost

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r19968 r20042  
    111111#endif
    112112
     113//#ifdef VBOX_WITH_CROGL
     114//# include "cr_spu.h"
     115//#endif /* VBOX_WITH_CROGL */
    113116
    114117#include <iprt/asm.h>
     
    249252        }
    250253    }
     254
     255    f3DAccelerationSupported = true;
     256    /* Test for 3D hardware acceleration support */
     257//    f3DAccelerationSupported = false;
     258//#ifdef VBOX_WITH_CROGL
     259//    SPU *spu;
     260//    spu = crSPULoad(NULL, 0, "render", NULL, NULL);
     261//    if (spu)
     262//    {
     263//        crSPUUnloadChain(spu);
     264//        f3DAccelerationSupported = true;
     265//    }
     266//
     267//#endif /* VBOX_WITH_CROGL */
    251268
    252269    setReady(true);
     
    12231240    RTTIMESPEC now;
    12241241    *aUTCTime = RTTimeSpecGetMilli(RTTimeNow(&now));
     1242    return S_OK;
     1243}
     1244
     1245STDMETHODIMP Host::COMGETTER(Acceleration3DAvailable)(BOOL *aSupported)
     1246{
     1247    CheckComArgOutPointerValid(aSupported);
     1248
     1249    AutoWriteLock alock(this);
     1250    CHECK_READY();
     1251
     1252    *aSupported = f3DAccelerationSupported;
     1253
    12251254    return S_OK;
    12261255}
  • trunk/src/VBox/Main/Makefile.kmk

    r19968 r20042  
    400400endif
    401401
     402ifdef VBOX_WITH_CROGL
     403 VBoxSVC_INCS += $(PATH_ROOT)/src/VBox/GuestHost/OpenGL/include
     404endif
    402405
    403406win/VBoxSVC.rc_INCS  = $(PATH_VBoxSVC)
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r20031 r20042  
    69686968  <interface
    69696969     name="IHost" extends="$unknown"
    6970      uuid="539d7194-2281-403e-9fb2-0f79a784966d"
     6970     uuid="a13b5556-5c0b-4f80-9df6-6f804f3336a1"
    69716971     wsmap="managed"
    69726972     >
     
    71077107    <attribute name="UTCTime" type="long long" readonly="yes">
    71087108      <desc>Returns the current host time in milliseconds since 1970-01-01 UTC.</desc>
     7109    </attribute>
     7110
     7111    <attribute name="Acceleration3DAvailable" type="boolean" readonly="yes">
     7112      <desc>Returns true when the host supports 3D hardware acceleration.</desc>
    71097113    </attribute>
    71107114
  • trunk/src/VBox/Main/include/HostImpl.h

    r19968 r20042  
    9393    STDMETHOD(COMGETTER(OSVersion))(BSTR *version);
    9494    STDMETHOD(COMGETTER(UTCTime))(LONG64 *aUTCTime);
     95    STDMETHOD(COMGETTER(Acceleration3DAvailable))(BOOL *aSupported);
    9596
    9697    // IHost methods
     
    174175    /* Features that can be queried with GetProcessorFeature */
    175176    BOOL fVTxAMDVSupported, fLongModeSupported, fPAESupported;
     177    /* 3D hardware acceleration supported? */
     178    BOOL f3DAccelerationSupported;
    176179
    177180    HostPowerService *mHostPowerService;
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