Lines Matching refs:pMipLevel

3398     PVMSVGA3DMIPMAPLEVEL    pMipLevel;
3408 pMipLevel = &pSurface->pMipmapLevels[host.mipmap];
3427 if (pBoxes[i].x + pBoxes[i].w > pMipLevel->size.width)
3428 pBoxes[i].w = pMipLevel->size.width - pBoxes[i].x;
3429 if (pBoxes[i].y + pBoxes[i].h > pMipLevel->size.height)
3430 pBoxes[i].h = pMipLevel->size.height - pBoxes[i].y;
3431 if (pBoxes[i].z + pBoxes[i].d > pMipLevel->size.depth)
3432 pBoxes[i].d = pMipLevel->size.depth - pBoxes[i].z;
3437 || pBoxes[i].x > pMipLevel->size.width
3438 || pBoxes[i].y > pMipLevel->size.height
3439 || pBoxes[i].z > pMipLevel->size.depth)
3445 uDestOffset = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pMipLevel->cbSurfacePitch + pBoxes[i].z * pMipLevel->size.height * pMipLevel->cbSurfacePitch;
3446 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock * pBoxes[i].h * pBoxes[i].d <= pMipLevel->cbSurface, VERR_INTERNAL_ERROR);
3450 pBufferStart = (uint8_t *)pMipLevel->pSurfaceData
3452 + pMipLevel->cbSurface - pBoxes[i].y * pMipLevel->cbSurfacePitch
3453 - pMipLevel->cbSurfacePitch; /* flip image during copy */
3455 pBufferStart = (uint8_t *)pMipLevel->pSurfaceData + uDestOffset;
3461 -(int32_t)pMipLevel->cbSurfacePitch,
3463 (int32_t)pMipLevel->cbSurfacePitch,
3471 Log4(("first line:\n%.*Rhxd\n", pMipLevel->cbSurface, pMipLevel->pSurfaceData));
3501 if (pBoxes[i].x + pBoxes[i].w > pMipLevel->size.width)
3502 pBoxes[i].w = pMipLevel->size.width - pBoxes[i].x;
3503 if (pBoxes[i].y + pBoxes[i].h > pMipLevel->size.height)
3504 pBoxes[i].h = pMipLevel->size.height - pBoxes[i].y;
3505 if (pBoxes[i].z + pBoxes[i].d > pMipLevel->size.depth)
3506 pBoxes[i].d = pMipLevel->size.depth - pBoxes[i].z;
3512 || pBoxes[i].x > pMipLevel->size.width
3513 || pBoxes[i].y > pMipLevel->size.height)
3533 pDoubleBuffer = (uint8_t *)RTMemAlloc(pMipLevel->cbSurface);
3564 uDestOffset = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pMipLevel->cbSurfacePitch;
3565 AssertReturnStmt( uDestOffset + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pMipLevel->cbSurfacePitch
3566 <= pMipLevel->cbSurface,
3570 cbSurfacePitch = pMipLevel->cbSurfacePitch;
3575 + pMipLevel->cbSurface - pBoxes[i].y * cbSurfacePitch
3618 Log(("vmsvga3dSurfaceDMA: copy texture mipmap level %d (pitch %x)\n", host.mipmap, pMipLevel->cbSurfacePitch));
3673 AssertMsg(cbStrictBufSize >= (int32_t)pMipLevel->cbSurface,
3674 ("cbStrictBufSize=%#x cbSurface=%#x pContext->id=%#x\n", (uint32_t)cbStrictBufSize, pMipLevel->cbSurface, pContext->id));
3676 AssertMsg(cbStrictBufSize >= (int32_t)pMipLevel->cbSurface,
3677 ("cbStrictBufSize=%#x cbSurface=%#x isAssociatedContext=%#x pContext->id=%#x\n", (uint32_t)cbStrictBufSize, pMipLevel->cbSurface, pSurface->idAssociatedContext, pContext->id));
3681 unsigned offDst = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pMipLevel->cbSurfacePitch;
3682 if (RT_LIKELY( offDst + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pMipLevel->cbSurfacePitch
3683 <= pMipLevel->cbSurface))
3691 pMipLevel->cbSurfacePitch,