VirtualBox

Changeset 51330 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
May 21, 2014 7:46:25 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93813
Message:

crOpenGL: more extended flexible caps info, backwards compatibility fixes

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_protocol.h

    r51200 r51330  
    1717extern "C" {
    1818#endif
     19
     20#define CR_CMDVBVA_VERSION              1
     21
     22#pragma pack(1)
     23typedef struct CR_CAPS_INFO
     24{
     25    uint32_t u32Caps;
     26    uint32_t u32CmdVbvaVersion;
     27} CR_CAPS_INFO;
     28#pragma pack()
     29
    1930
    2031/*For now guest is allowed to connect host opengl service if protocol version matches exactly*/
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_server.h

    r50913 r51330  
    520520extern DECLEXPORT(int32_t) crVBoxServerClientRead(uint32_t u32ClientID, uint8_t *pBuffer, uint32_t *pcbBuffer);
    521521extern DECLEXPORT(int32_t) crVBoxServerClientSetVersion(uint32_t u32ClientID, uint32_t vMajor, uint32_t vMinor);
    522 extern DECLEXPORT(int32_t) crVBoxServerClientGetCaps(uint32_t u32ClientID, uint32_t *pu32Caps);
     522extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsLegacy(uint32_t u32ClientID, uint32_t *pu32Caps);
     523extern DECLEXPORT(int32_t) crVBoxServerClientGetCapsNew(uint32_t u32ClientID, CR_CAPS_INFO *pInfo);
    523524extern DECLEXPORT(int32_t) crVBoxServerClientSetPID(uint32_t u32ClientID, uint64_t pid);
    524525
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r51160 r51330  
    12871287}
    12881288
    1289 static int crVBoxHGCMGetHostCaps(CRConnection *conn, uint32_t *pu32HostCaps)
     1289static int crVBoxHGCMGetHostCapsLegacy(CRConnection *conn, uint32_t *pu32HostCaps)
    12901290{
    12911291    CRVBOXHGCMGETCAPS caps;
     
    12941294    caps.hdr.result      = VERR_WRONG_ORDER;
    12951295    caps.hdr.u32ClientID = conn->u32ClientID;
    1296     caps.hdr.u32Function = SHCRGL_GUEST_FN_GET_CAPS;
    1297     caps.hdr.cParms      = SHCRGL_CPARMS_GET_CAPS;
     1296    caps.hdr.u32Function = SHCRGL_GUEST_FN_GET_CAPS_LEGACY;
     1297    caps.hdr.cParms      = SHCRGL_CPARMS_GET_CAPS_LEGACY;
    12981298
    12991299    caps.Caps.type       = VMMDevHGCMParmType_32bit;
     
    13211321    return rc;
    13221322}
    1323 
    13241323
    13251324static int crVBoxHGCMSetPID(CRConnection *conn, unsigned long long pid)
     
    14451444            if (!g_crvboxhgcm.fHostCapsInitialized)
    14461445            {
    1447                 rc = crVBoxHGCMGetHostCaps(conn, &g_crvboxhgcm.u32HostCaps);
     1446                rc = crVBoxHGCMGetHostCapsLegacy(conn, &g_crvboxhgcm.u32HostCaps);
    14481447                if (RT_FAILURE(rc))
    14491448                {
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