Changeset 69884 in vbox
- Timestamp:
- Nov 30, 2017 4:38:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp
r69870 r69884 2333 2333 } 2334 2334 2335 static int vboxVDMACmdExecBltPerform(PVBOXVDMAHOST pVdma, uint8_t *pvDstSurf, const uint8_t *pvSrcSurf,2335 static int vboxVDMACmdExecBltPerform(PVBOXVDMAHOST pVdma, const VBOXVIDEOOFFSET offDst, const VBOXVIDEOOFFSET offSrc, 2336 2336 const PVBOXVDMA_SURF_DESC pDstDesc, const PVBOXVDMA_SURF_DESC pSrcDesc, 2337 2337 const VBOXVDMA_RECTL * pDstRectl, const VBOXVDMA_RECTL * pSrcRectl) 2338 2338 { 2339 RT_NOREF(pVdma);2340 2339 /* we do not support color conversion */ 2341 2340 Assert(pDstDesc->format == pSrcDesc->format); … … 2343 2342 Assert(pDstRectl->height == pSrcRectl->height); 2344 2343 Assert(pDstRectl->width == pSrcRectl->width); 2344 2345 2345 if (pDstDesc->format != pSrcDesc->format) 2346 2346 return VERR_INVALID_FUNCTION; 2347 2348 uint8_t *pvRam = pVdma->pVGAState->vram_ptrR3; 2349 uint8_t *pvDstSurf = pvRam + offDst; 2350 uint8_t *pvSrcSurf = pvRam + offSrc; 2351 2347 2352 if (pDstDesc->width == pDstRectl->width 2348 2353 && pSrcDesc->width == pSrcRectl->width 2349 && pSrcDesc->width == pDstDesc->width) 2354 && pSrcDesc->width == pDstDesc->width 2355 && pSrcDesc->pitch == pDstDesc->pitch) 2350 2356 { 2351 2357 Assert(!pDstRectl->left); … … 2436 2442 Assert(pBlt->cDstSubRects); 2437 2443 2438 uint8_t * pvRam = pVdma->pVGAState->vram_ptrR3;2439 2444 VBOXVDMA_RECTL updateRectl = {0, 0, 0, 0}; 2440 2445 … … 2452 2457 srcSubRectl.top += pBlt->srcRectl.top; 2453 2458 2454 int rc = vboxVDMACmdExecBltPerform(pVdma, p vRam + pBlt->offDst, pvRam +pBlt->offSrc,2459 int rc = vboxVDMACmdExecBltPerform(pVdma, pBlt->offDst, pBlt->offSrc, 2455 2460 &pBlt->dstDesc, &pBlt->srcDesc, 2456 2461 &dstSubRectl, … … 2465 2470 else 2466 2471 { 2467 int rc = vboxVDMACmdExecBltPerform(pVdma, p vRam + pBlt->offDst, pvRam +pBlt->offSrc,2472 int rc = vboxVDMACmdExecBltPerform(pVdma, pBlt->offDst, pBlt->offSrc, 2468 2473 &pBlt->dstDesc, &pBlt->srcDesc, 2469 2474 &pBlt->dstRectl,
Note:
See TracChangeset
for help on using the changeset viewer.