Changeset 64736 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp
- Timestamp:
- Nov 22, 2016 4:53:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r64085 r64736 6599 6599 Assert(pPresent->SubRectCnt > pPresent->MultipassOffset); 6600 6600 UINT cbRects = (pPresent->SubRectCnt - pPresent->MultipassOffset) * sizeof (RECT); 6601 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbRects;6602 6601 pPresent->pDmaBuffer = ((uint8_t*)pPresent->pDmaBuffer) + VBOXWDDM_DUMMY_DMABUFFER_SIZE; 6603 6602 Assert(pPresent->DmaSize >= VBOXWDDM_DUMMY_DMABUFFER_SIZE); … … 6608 6607 { 6609 6608 cbCmd -= cbRects; 6610 memcpy(&pBlt->Blt.DstRects.UpdateRects.aRects[ pPresent->MultipassOffset], &pPresent->pDstSubRects[pPresent->MultipassOffset], cbRects);6609 memcpy(&pBlt->Blt.DstRects.UpdateRects.aRects[0], &pPresent->pDstSubRects[pPresent->MultipassOffset], cbRects); 6611 6610 pBlt->Blt.DstRects.UpdateRects.cRects += cbRects/sizeof (RECT); 6611 6612 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbRects; 6612 6613 } 6613 6614 else … … 6615 6616 UINT cbFitingRects = (cbCmd/sizeof (RECT)) * sizeof (RECT); 6616 6617 Assert(cbFitingRects); 6617 memcpy(&pBlt->Blt.DstRects.UpdateRects.aRects[ pPresent->MultipassOffset], &pPresent->pDstSubRects[pPresent->MultipassOffset], cbFitingRects);6618 memcpy(&pBlt->Blt.DstRects.UpdateRects.aRects[0], &pPresent->pDstSubRects[pPresent->MultipassOffset], cbFitingRects); 6618 6619 cbCmd -= cbFitingRects; 6619 6620 pPresent->MultipassOffset += cbFitingRects/sizeof (RECT); 6620 6621 pBlt->Blt.DstRects.UpdateRects.cRects += cbFitingRects/sizeof (RECT); 6621 6622 Assert(pPresent->SubRectCnt > pPresent->MultipassOffset); 6623 6624 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbFitingRects; 6622 6625 Status = STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER; 6623 6626 }
Note:
See TracChangeset
for help on using the changeset viewer.