Changeset 50773 in vbox
- Timestamp:
- Mar 13, 2014 3:45:46 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92791
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxVideo.h
r50772 r50773 1624 1624 int8_t i8Result; 1625 1625 uint8_t u8PrimaryID; 1626 } ;1626 } u; 1627 1627 /* DXGK DDI fence ID */ 1628 1628 volatile uint32_t u32FenceID; … … 1656 1656 VBOXCMDVBVAOFFSET offVRAM; 1657 1657 uint32_t id; 1658 } ;1658 } u; 1659 1659 } VBOXCMDVBVA_ALLOCINFO; 1660 1660 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r50754 r50773 3434 3434 offVRAM += pBuildPagingBuffer->Transfer.TransferOffset + pBuildPagingBuffer->MultipassOffset; 3435 3435 3436 pPaging->Alloc. offVRAM = offVRAM;3436 pPaging->Alloc.u.offVRAM = offVRAM; 3437 3437 if (fIn) 3438 3438 pPaging->Hdr.u8Flags |= VBOXCMDVBVA_OPF_PAGING_TRANSFER_IN; … … 6020 6020 { 6021 6021 pHdr->u8Flags |= (fDst ? VBOXCMDVBVA_OPF_ALLOC_DSTID : VBOXCMDVBVA_OPF_ALLOC_SRCID); 6022 pInfo-> id = pAlloc->AllocData.hostID;6022 pInfo->u.id = pAlloc->AllocData.hostID; 6023 6023 return false; 6024 6024 } 6025 6025 6026 6026 Assert(!pList->PhysicalAddress.HighPart); 6027 pInfo-> offVRAM = pList->PhysicalAddress.LowPart;6027 pInfo->u.offVRAM = pList->PhysicalAddress.LowPart; 6028 6028 return true; 6029 6029 } … … 6121 6121 { 6122 6122 pBlt->Hdr.u8Flags |= VBOXCMDVBVA_OPF_ALLOC_SRCPRIMARY; 6123 pBlt->Hdr.u 8PrimaryID = pSrcAlloc->AllocData.SurfDesc.VidPnSourceId;6123 pBlt->Hdr.u.u8PrimaryID = pSrcAlloc->AllocData.SurfDesc.VidPnSourceId; 6124 6124 6125 6125 if (fDstPrimary) 6126 6126 { 6127 6127 pBlt->Hdr.u8Flags |= VBOXCMDVBVA_OPF_ALLOC_DSTPRIMARY; 6128 pBlt->alloc. id = pDstAlloc->AllocData.SurfDesc.VidPnSourceId;6128 pBlt->alloc.u.id = pDstAlloc->AllocData.SurfDesc.VidPnSourceId; 6129 6129 } 6130 6130 else if (VBoxCVDdiFillAllocInfo(pHdr, &pBlt->alloc, pDstAlloc, pDst, true)) 6131 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_PRIMARY, alloc. offVRAM);6131 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_PRIMARY, alloc.u.offVRAM); 6132 6132 } 6133 6133 else … … 6135 6135 Assert(fDstPrimary); 6136 6136 pBlt->Hdr.u8Flags |= VBOXCMDVBVA_OPF_ALLOC_DSTPRIMARY; 6137 pBlt->Hdr.u 8PrimaryID = pDstAlloc->AllocData.SurfDesc.VidPnSourceId;6137 pBlt->Hdr.u.u8PrimaryID = pDstAlloc->AllocData.SurfDesc.VidPnSourceId; 6138 6138 6139 6139 if (VBoxCVDdiFillAllocInfo(pHdr, &pBlt->alloc, pSrcAlloc, pSrc, false)) 6140 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_PRIMARY, alloc. offVRAM);6140 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_PRIMARY, alloc.u.offVRAM); 6141 6141 } 6142 6142 … … 6159 6159 6160 6160 if (VBoxCVDdiFillAllocInfo(pHdr, &pBlt->src, pSrcAlloc, pSrc, false)) 6161 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_OFFPRIMSZFMT_OR_ID, src. offVRAM);6161 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_OFFPRIMSZFMT_OR_ID, src.u.offVRAM); 6162 6162 6163 6163 if (VBoxCVDdiFillAllocInfo(pHdr, &pBlt->dst, pDstAlloc, pDst, true)) 6164 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_OFFPRIMSZFMT_OR_ID, dst. offVRAM);6164 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_BLT_OFFPRIMSZFMT_OR_ID, dst.u.offVRAM); 6165 6165 6166 6166 pBlt->Pos.x = (int16_t)(pPresent->DstRect.left - pPresent->SrcRect.left); … … 6200 6200 6201 6201 if (VBoxCVDdiFillAllocInfo(pHdr, &pFlip->src, pSrcAlloc, pSrc, false)) 6202 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_FLIP, src. offVRAM);6202 u32SrcPatch = RT_OFFSETOF(VBOXCMDVBVA_FLIP, src.u.offVRAM); 6203 6203 } 6204 6204 else if (pPresent->Flags.ColorFill) … … 6229 6229 6230 6230 if (VBoxCVDdiFillAllocInfo(pHdr, &pCFill->dst, pDstAlloc, pDst, true)) 6231 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_CLRFILL, dst. offVRAM);6231 u32DstPatch = RT_OFFSETOF(VBOXCMDVBVA_CLRFILL, dst.u.offVRAM); 6232 6232 6233 6233 paRects = pCFill->aRects; -
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r50763 r50773 1180 1180 { 1181 1181 case VBOXCMDVBVA_OPTYPE_NOPCMD: 1182 pCmd-> i8Result = 0;1182 pCmd->u.i8Result = 0; 1183 1183 return VINF_EOF; 1184 1184 default: … … 1214 1214 default: 1215 1215 WARN(("unsupported command\n")); 1216 pCmd-> i8Result = -1;1216 pCmd->u.i8Result = -1; 1217 1217 } 1218 1218 return VINF_SUCCESS; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r50754 r50773 3238 3238 { 3239 3239 /* success */ 3240 pCmd-> i8Result = 0;3240 pCmd->u.i8Result = 0; 3241 3241 } 3242 3242 else 3243 3243 { 3244 3244 crWarning("crVBoxServerCmdVbvaCrCmdProcess failed, rc %d", rc); 3245 pCmd-> i8Result = -1;3245 pCmd->u.i8Result = -1; 3246 3246 } 3247 3247 break; … … 3254 3254 default: 3255 3255 WARN(("unsupported command")); 3256 pCmd-> i8Result = -1;3256 pCmd->u.i8Result = -1; 3257 3257 } 3258 3258 return VINF_SUCCESS; -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r50754 r50773 248 248 Assert(srcX >= 0); 249 249 Assert(srcY >= 0); 250 Assert(srcX < pSrc->width);251 Assert(srcY < pSrc->height);250 Assert(srcX < (int32_t)pSrc->width); 251 Assert(srcY < (int32_t)pSrc->height); 252 252 253 253 int32_t dstX = pCopyRect->xLeft - pDstDataPoint->x; … … 259 259 uint8_t *pu8Dst = ((uint8_t*)pDst->pvData) + pDst->pitch * dstY + dstX * 4; 260 260 261 crFbBltMem(pu8Src, fSrcInvert ? - pSrc->pitch :pSrc->pitch, pu8Dst, pDst->pitch, pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop);261 crFbBltMem(pu8Src, fSrcInvert ? -((int32_t)pSrc->pitch) : (int32_t)pSrc->pitch, pu8Dst, pDst->pitch, pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop); 262 262 } 263 263 … … 268 268 Assert(srcX >= 0); 269 269 Assert(srcY >= 0); 270 Assert(srcX < pSrc->width);271 Assert(srcY < pSrc->height);270 Assert(srcX < (int32_t)pSrc->width); 271 Assert(srcY < (int32_t)pSrc->height); 272 272 273 273 RTPOINT ScaledDtsDataPoint; … … 316 316 ScaledDstHeight, 317 317 pu8Src, 318 fSrcInvert ? - pSrc->pitch :pSrc->pitch,318 fSrcInvert ? -((int32_t)pSrc->pitch) : (int32_t)pSrc->pitch, 319 319 pCopyRect->xRight - pCopyRect->xLeft, pCopyRect->yBottom - pCopyRect->yTop); 320 320 } … … 3825 3825 static HCR_FRAMEBUFFER crPMgrFbGetNextEnabled(uint32_t i) 3826 3826 { 3827 for (;i < cr_server.screenCount; ++i)3827 for (;i < (uint32_t)cr_server.screenCount; ++i) 3828 3828 { 3829 3829 HCR_FRAMEBUFFER hFb = CrPMgrFbGetEnabled(i); … … 3837 3837 static HCR_FRAMEBUFFER crPMgrFbGetNextInitialized(uint32_t i) 3838 3838 { 3839 for (;i < cr_server.screenCount; ++i)3839 for (;i < (uint32_t)cr_server.screenCount; ++i) 3840 3840 { 3841 3841 HCR_FRAMEBUFFER hFb = CrPMgrFbGetInitialized(i); … … 4185 4185 void CrPMgrHlpGlblUpdateEnd(CR_FBMAP *pMap) 4186 4186 { 4187 for (uint32_t i = 0; i < cr_server.screenCount; ++i)4187 for (uint32_t i = 0; i < (uint32_t)cr_server.screenCount; ++i) 4188 4188 { 4189 4189 if (!CrFBmIsSet(pMap, i)) … … 4654 4654 { 4655 4655 VBOXCMDVBVA_BLT_PRIMARY *pBlt = (VBOXCMDVBVA_BLT_PRIMARY*)pCmd; 4656 uint8_t u8PrimaryID = pBlt->Hdr.u 8PrimaryID;4656 uint8_t u8PrimaryID = pBlt->Hdr.u.u8PrimaryID; 4657 4657 HCR_FRAMEBUFFER hFb = CrPMgrFbGetEnabled(u8PrimaryID); 4658 4658 if (!hFb) 4659 4659 { 4660 4660 WARN(("request to present on disabled framebuffer, ignore")); 4661 pCmd-> i8Result = -1;4661 pCmd->u.i8Result = -1; 4662 4662 return VINF_SUCCESS; 4663 4663 } … … 4677 4677 WARN(("RTMemAlloc failed!")); 4678 4678 g_CrPresenter.cbTmpBuf = 0; 4679 pCmd-> i8Result = -1;4679 pCmd->u.i8Result = -1; 4680 4680 return VINF_SUCCESS; 4681 4681 } … … 4697 4697 { 4698 4698 /* TexPresent */ 4699 texId = pBlt->alloc. id;4699 texId = pBlt->alloc.u.id; 4700 4700 } 4701 4701 else 4702 4702 { 4703 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc. offVRAM;4703 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc.u.offVRAM; 4704 4704 const VBVAINFOSCREEN *pScreen = CrFbGetScreenInfo(hFb); 4705 4705 uint32_t cbScreen = pScreen->u32LineSize * pScreen->u32Height; … … 4708 4708 { 4709 4709 WARN(("invalid param")); 4710 pCmd-> i8Result = -1;4710 pCmd->u.i8Result = -1; 4711 4711 return VINF_SUCCESS; 4712 4712 } … … 4724 4724 /* blit from one primary to another primary, wow */ 4725 4725 WARN(("not implemented")); 4726 pCmd-> i8Result = -1;4726 pCmd->u.i8Result = -1; 4727 4727 return VINF_SUCCESS; 4728 4728 } … … 4734 4734 if (u8Flags & VBOXCMDVBVA_OPF_ALLOC_DSTID) 4735 4735 { 4736 uint32_t texId = pBlt->alloc. id;4736 uint32_t texId = pBlt->alloc.u.id; 4737 4737 WARN(("not implemented")); 4738 pCmd-> i8Result = -1;4738 pCmd->u.i8Result = -1; 4739 4739 return VINF_SUCCESS; 4740 4740 } 4741 4741 else 4742 4742 { 4743 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc. offVRAM;4743 VBOXCMDVBVAOFFSET offVRAM = pBlt->alloc.u.offVRAM; 4744 4744 const VBVAINFOSCREEN *pScreen = CrFbGetScreenInfo(hFb); 4745 4745 uint32_t cbScreen = pScreen->u32LineSize * pScreen->u32Height; … … 4748 4748 { 4749 4749 WARN(("invalid param")); 4750 pCmd-> i8Result = -1;4750 pCmd->u.i8Result = -1; 4751 4751 return VINF_SUCCESS; 4752 4752 } … … 4770 4770 { 4771 4771 WARN(("CrFbBltGetContents failed %d", rc)); 4772 pCmd-> i8Result = -1;4772 pCmd->u.i8Result = -1; 4773 4773 return VINF_SUCCESS; 4774 4774 } … … 4779 4779 { 4780 4780 WARN(("not implemented")); 4781 pCmd-> i8Result = -1;4782 return VINF_SUCCESS; 4783 } 4784 4785 pCmd-> i8Result = 0;4781 pCmd->u.i8Result = -1; 4782 return VINF_SUCCESS; 4783 } 4784 4785 pCmd->u.i8Result = 0; 4786 4786 return VINF_SUCCESS; 4787 4787 }
Note:
See TracChangeset
for help on using the changeset viewer.