Lines Matching defs:pBoxes

2322                        uint32_t cCopyBoxes, SVGA3dCopyBox *pBoxes)
2352 Log(("Copy box %d (%d,%d,%d)(%d,%d,%d)\n", i, pBoxes[i].srcx, pBoxes[i].srcy, pBoxes[i].srcz, pBoxes[i].w, pBoxes[i].h, pBoxes[i].d));
2354 if (pBoxes[i].x + pBoxes[i].w > pMipLevel->size.width)
2355 pBoxes[i].w = pMipLevel->size.width - pBoxes[i].x;
2356 if (pBoxes[i].y + pBoxes[i].h > pMipLevel->size.height)
2357 pBoxes[i].h = pMipLevel->size.height - pBoxes[i].y;
2358 if (pBoxes[i].z + pBoxes[i].d > pMipLevel->size.depth)
2359 pBoxes[i].d = pMipLevel->size.depth - pBoxes[i].z;
2361 if ( !pBoxes[i].w
2362 || !pBoxes[i].h
2363 || !pBoxes[i].d
2364 || pBoxes[i].x > pMipLevel->size.width
2365 || pBoxes[i].y > pMipLevel->size.height
2366 || pBoxes[i].z > pMipLevel->size.depth)
2372 uDestOffset = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pMipLevel->cbSurfacePitch + pBoxes[i].z * pMipLevel->size.height * pMipLevel->cbSurfacePitch;
2373 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock * pBoxes[i].h * pBoxes[i].d <= pMipLevel->cbSurface, VERR_INTERNAL_ERROR);
2375 cbSrcPitch = (guest.pitch == 0) ? pBoxes[i].w * pSurface->cbBlock : guest.pitch;
2382 pBoxes[i].srcx * pSurface->cbBlock + (pBoxes[i].srcy + pBoxes[i].srcz * pBoxes[i].h) * cbSrcPitch,
2384 pBoxes[i].w * pSurface->cbBlock,
2385 pBoxes[i].d * pBoxes[i].h);
2413 if (pBoxes[i].x + pBoxes[i].w > pMipLevel->size.width)
2414 pBoxes[i].w = pMipLevel->size.width - pBoxes[i].x;
2415 if (pBoxes[i].y + pBoxes[i].h > pMipLevel->size.height)
2416 pBoxes[i].h = pMipLevel->size.height - pBoxes[i].y;
2417 if (pBoxes[i].z + pBoxes[i].d > pMipLevel->size.depth)
2418 pBoxes[i].d = pMipLevel->size.depth - pBoxes[i].z;
2420 Assert((pBoxes[i].d == 1 || pBoxes[i].d == 0) && pBoxes[i].z == 0);
2422 if ( !pBoxes[i].w
2423 || !pBoxes[i].h
2424 || pBoxes[i].x > pMipLevel->size.width
2425 || pBoxes[i].y > pMipLevel->size.height)
2431 cbSrcPitch = (guest.pitch == 0) ? pBoxes[i].w * pSurface->cbBlock : guest.pitch;
2450 Rect.left = pBoxes[i].x;
2451 Rect.top = pBoxes[i].y;
2452 Rect.right = pBoxes[i].x + pBoxes[i].w; /* exclusive */
2453 Rect.bottom = pBoxes[i].y + pBoxes[i].h; /* exclusive */
2518 pBoxes[i].srcx * pSurface->cbBlock + pBoxes[i].srcy * cbSrcPitch,
2520 pBoxes[i].w * pSurface->cbBlock,
2521 pBoxes[i].h);
2524 Log4(("first line:\n%.*Rhxd\n", pBoxes[i].w * pSurface->cbBlock, LockedRect.pBits));
2573 uDestOffset = pBoxes[i].x * pSurface->cbBlock + pBoxes[i].y * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch;
2574 AssertReturn(uDestOffset + pBoxes[i].w * pSurface->cbBlock + (pBoxes[i].h - 1) * pSurface->pMipmapLevels[host.mipmap].cbSurfacePitch <= pSurface->pMipmapLevels[host.mipmap].cbSurface, VERR_INTERNAL_ERROR);
2583 Log(("Lock %s memory for rectangle (%d,%d)(%d,%d)\n", (fVertex) ? "vertex" : "index", pBoxes[i].x, pBoxes[i].y, pBoxes[i].x + pBoxes[i].w, pBoxes[i].y + pBoxes[i].h));
2590 pBoxes[i].srcx * pSurface->cbBlock + pBoxes[i].srcy * cbSrcPitch,
2592 pBoxes[i].w * pSurface->cbBlock,
2593 pBoxes[i].h);