Changeset 50913 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Mar 27, 2014 5:56:50 PM (11 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r50827 r50913 1524 1524 case VBOXCRCMDCTL_TYPE_DISABLE: 1525 1525 { 1526 if (paParms->u.pointer.size != sizeof (VBOXCRCMDCTL ))1526 if (paParms->u.pointer.size != sizeof (VBOXCRCMDCTL_DISABLE)) 1527 1527 WARN(("invalid param size")); 1528 int rc = crVBoxServerHgcmDisable(); 1528 VBOXCRCMDCTL_DISABLE *pDisable = (VBOXCRCMDCTL_DISABLE*)pCtl; 1529 int rc = crVBoxServerHgcmDisable(&pDisable->Data); 1529 1530 if (RT_SUCCESS(rc)) 1530 1531 g_u32fCrHgcmDisabled = 1; … … 1538 1539 WARN(("invalid param size")); 1539 1540 VBOXCRCMDCTL_ENABLE *pEnable = (VBOXCRCMDCTL_ENABLE*)pCtl; 1540 int rc = crVBoxServerHgcmEnable( pEnable->hRHCmd, pEnable->pfnRHCmd);1541 int rc = crVBoxServerHgcmEnable(&pEnable->Data); 1541 1542 if (RT_SUCCESS(rc)) 1542 1543 g_u32fCrHgcmDisabled = 0; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server.h
r50831 r50913 51 51 52 52 #define VBOXCRHGSMI_CMD_CHECK_COMPLETE(_pData, _rc) do { \ 53 if (CRVBOXHGSMI_CMDDATA_IS_ SET(_pData)) { \53 if (CRVBOXHGSMI_CMDDATA_IS_HGSMICMD(_pData)) { \ 54 54 VBOXCRHGSMI_CMD_COMPLETE(_pData, _rc); \ 55 55 } \ -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r50831 r50913 84 84 { 85 85 CRClient *pClient = NULL; 86 int32_t i;87 86 88 87 pClient = crVBoxServerClientById(u32ClientID); … … 158 157 159 158 tearingdown = 1; 159 160 if (cr_server.DisableData.hNotifyTerm) 161 { 162 VBOXCRCMDCTL_HGCMENABLE_DATA EnableData; 163 int rc = cr_server.DisableData.pfnNotifyTerm(cr_server.DisableData.hNotifyTerm, &EnableData); 164 if (!RT_SUCCESS(rc)) 165 { 166 WARN(("pfnNotifyTerm failed %d", rc)); 167 return; 168 } 169 170 rc = crVBoxServerHgcmEnable(&EnableData); 171 if (!RT_SUCCESS(rc)) 172 { 173 WARN(("crVBoxServerHgcmEnable failed %d", rc)); 174 return; 175 } 176 177 cr_server.DisableData.pfnNotifyTermDone(cr_server.DisableData.hNotifyTerm); 178 } 160 179 161 180 crStateSetCurrent( NULL ); … … 2975 2994 { 2976 2995 spuCtx = cr_server.MainContextInfo.SpuContext; 2977 spuWindow = pMural-> CreateInfo.realVisualBits;2996 spuWindow = pMural->spuWindow; 2978 2997 } 2979 2998 } … … 3014 3033 cParams = cBuffers-1; 3015 3034 3016 if (cbCmd !=RT_OFFSETOF(VBOXCMDVBVA_CRCMD_CMD, aBuffers[cBuffers]))3035 if (cbCmd < RT_OFFSETOF(VBOXCMDVBVA_CRCMD_CMD, aBuffers[cBuffers])) 3017 3036 { 3018 3037 WARN(("invalid buffer size")); … … 3363 3382 rc = CrHTablePutToSlot(&cr_server.clientTable, u32ClientId, pClient); 3364 3383 if (RT_SUCCESS(rc)) 3384 { 3385 pConnect->Hdr.u32CmdClientId = u32ClientId; 3365 3386 return VINF_SUCCESS; 3387 } 3366 3388 else 3367 3389 WARN(("CrHTablePutToSlot failed %d", rc)); … … 3454 3476 static DECLCALLBACK(int8_t) crVBoxCrCmdCmd(HVBOXCRCMDSVR hSvr, const VBOXCMDVBVA_HDR *pCmd, uint32_t cbCmd) 3455 3477 { 3456 AssertFailed();3457 3478 switch (pCmd->u8OpCode) 3458 3479 { … … 3884 3905 } 3885 3906 3886 int32_t crVBoxServerHgcmEnable( HVBOXCRCMDCTL_REMAINING_HOST_COMMAND hRHCmd, PFNVBOXCRCMDCTL_REMAINING_HOST_COMMAND pfnRHCmd)3907 int32_t crVBoxServerHgcmEnable(VBOXCRCMDCTL_HGCMENABLE_DATA *pData) 3887 3908 { 3888 3909 int rc = VINF_SUCCESS; 3889 3910 uint8_t* pCtl; 3890 3911 uint32_t cbCtl; 3912 HVBOXCRCMDCTL_REMAINING_HOST_COMMAND hRHCmd = pData->hRHCmd; 3913 PFNVBOXCRCMDCTL_REMAINING_HOST_COMMAND pfnRHCmd = pData->pfnRHCmd; 3891 3914 3892 3915 Assert(!cr_server.fCrCmdEnabled); … … 3908 3931 } 3909 3932 3910 int32_t crVBoxServerHgcmDisable( )3933 int32_t crVBoxServerHgcmDisable(VBOXCRCMDCTL_HGCMDISABLE_DATA *pData) 3911 3934 { 3912 3935 Assert(!cr_server.fCrCmdEnabled); … … 3920 3943 cr_server.head_spu->dispatch_table.MakeCurrent(0, 0, 0); 3921 3944 3945 cr_server.DisableData = *pData; 3946 3922 3947 return VINF_SUCCESS; 3923 3948 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r50831 r50913 372 372 pCopyRect->yBottom - pCopyRect->yTop, 373 373 pu8Src, 374 fSrcInvert ? - pSrc->pitch: pSrc->pitch,374 fSrcInvert ? -((GLint)pSrc->pitch) : pSrc->pitch, 375 375 UnscaledSrcWidth, 376 376 UnscaledSrcHeight
Note:
See TracChangeset
for help on using the changeset viewer.