Changeset 64743 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Nov 24, 2016 4:18:03 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r64736 r64743 6691 6691 Assert(pPresent->SubRectCnt > pPresent->MultipassOffset); 6692 6692 UINT cbRects = (pPresent->SubRectCnt - pPresent->MultipassOffset) * sizeof (RECT); 6693 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbRects;6694 6693 pPresent->pDmaBuffer = ((uint8_t*)pPresent->pDmaBuffer) + VBOXWDDM_DUMMY_DMABUFFER_SIZE; 6695 6694 Assert(pPresent->DmaSize >= VBOXWDDM_DUMMY_DMABUFFER_SIZE); … … 6702 6701 memcpy(&pCF->ClrFill.Rects.aRects[pPresent->MultipassOffset], pPresent->pDstSubRects, cbRects); 6703 6702 pCF->ClrFill.Rects.cRects += cbRects/sizeof (RECT); 6703 6704 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbRects; 6704 6705 } 6705 6706 else … … 6707 6708 UINT cbFitingRects = (cbCmd/sizeof (RECT)) * sizeof (RECT); 6708 6709 Assert(cbFitingRects); 6709 memcpy(&pCF->ClrFill.Rects.aRects[ pPresent->MultipassOffset], pPresent->pDstSubRects, cbFitingRects);6710 memcpy(&pCF->ClrFill.Rects.aRects[0], pPresent->pDstSubRects, cbFitingRects); 6710 6711 cbCmd -= cbFitingRects; 6711 6712 pPresent->MultipassOffset += cbFitingRects/sizeof (RECT); 6712 6713 pCF->ClrFill.Rects.cRects += cbFitingRects/sizeof (RECT); 6713 6714 Assert(pPresent->SubRectCnt > pPresent->MultipassOffset); 6715 6716 pPresent->pDmaBufferPrivateData = (uint8_t*)pPresent->pDmaBufferPrivateData + cbHead + cbFitingRects; 6714 6717 Status = STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER; 6715 6718 }
Note:
See TracChangeset
for help on using the changeset viewer.