Lines Matching refs:pRect
3729 int vmsvga3dSurfaceBlitToScreen(PVGASTATE pThis, uint32_t dest, SVGASignedRect destRect, SVGA3dSurfaceImageId src, SVGASignedRect srcRect, uint32_t cRects, SVGASignedRect *pRect)
3735 Log(("vmsvga3dSurfaceBlitToScreen: clipping rect %d (%d,%d)(%d,%d)\n", i, pRect[i].left, pRect[i].top, pRect[i].right, pRect[i].bottom));
3787 box.srcx = srcRect.left + pRect[i].left;
3788 box.srcy = srcRect.top + pRect[i].top;
3790 box.x = pRect[i].left + destRect.left;
3791 box.y = pRect[i].top + destRect.top;
3793 box.w = pRect[i].right - pRect[i].left;
3794 box.h = pRect[i].bottom - pRect[i].top;
3879 int vmsvga3dCommandPresent(PVGASTATE pThis, uint32_t sid, uint32_t cRects, SVGA3dCopyRect *pRect)
3907 Log(("vmsvga3dCommandPresent: rectangle %d src=(%d,%d) (%d,%d)(%d,%d)\n", i, pRect[i].srcx, pRect[i].srcy, pRect[i].x, pRect[i].y, pRect[i].x + pRect[i].w, pRect[i].y + pRect[i].h));
3918 Log(("vmsvga3dCommandPresent: rectangle %d src=(%d,%d) (%d,%d)(%d,%d)\n", i, pRect[i].srcx, pRect[i].srcy, pRect[i].x, pRect[i].y, pRect[i].x + pRect[i].w, pRect[i].y + pRect[i].h));
3964 pRect = ▭
4026 pRect[i].srcx = RT_MAX(pRect[i].srcx, srcViewPort.x);
4027 pRect[i].srcy = RT_MAX(pRect[i].srcy, srcViewPort.y);
4028 pRect[i].x = RT_MAX(pRect[i].x, pThis->svga.viewport.x) - pThis->svga.viewport.x;
4029 pRect[i].y = RT_MAX(pRect[i].y, pThis->svga.viewport.y) - pThis->svga.viewport.y;
4030 pRect[i].w = pThis->svga.viewport.cx;
4031 pRect[i].h = pThis->svga.viewport.cy;
4033 if ( pRect[i].x + pRect[i].w <= pThis->svga.viewport.x
4034 || pThis->svga.viewport.x + pThis->svga.viewport.cx <= pRect[i].x
4035 || pRect[i].y + pRect[i].h <= pThis->svga.viewport.y
4036 || pThis->svga.viewport.y + pThis->svga.viewport.cy <= pRect[i].y)
4042 left = pRect[i].srcx;
4043 right = pRect[i].srcx + pRect[i].w;
4044 top = pRect[i].srcy + pRect[i].h;
4045 bottom = pRect[i].srcy;
4052 vertexLeft = pRect[i].x;
4053 vertexRight = pRect[i].x + pRect[i].w;
4054 vertexTop = ((uint32_t)pThis->svga.uHeight >= pRect[i].y + pRect[i].h) ? pThis->svga.uHeight - pRect[i].y - pRect[i].h : 0;
4055 vertexBottom = pThis->svga.uHeight - pRect[i].y;
4059 Log(("texture (%d,%d) (%d,%d) (%d,%d) (%d,%d)\n", pRect[i].srcx, pSurface->pMipmapLevels[0].size.height - (pRect[i].srcy + pRect[i].h), pRect[i].srcx, pSurface->pMipmapLevels[0].size.height - pRect[i].srcy, pRect[i].srcx + pRect[i].w, pSurface->pMipmapLevels[0].size.height - pRect[i].srcy, pRect[i].srcx + pRect[i].w, pSurface->pMipmapLevels[0].size.height - (pRect[i].srcy + pRect[i].h)));
4129 if ( pRect[i].x + pRect[i].w <= pThis->svga.viewport.x
4130 || pThis->svga.viewport.x + pThis->svga.viewport.cx <= pRect[i].x
4131 || pRect[i].y + pRect[i].h <= pThis->svga.viewport.y
4132 || pThis->svga.viewport.y + pThis->svga.viewport.cy <= pRect[i].y)
4138 pState->ext.glBlitFramebuffer(RT_MAX(pRect[i].srcx, srcViewPort.x),
4139 pSurface->pMipmapLevels[0].size.width - RT_MAX(pRect[i].srcy, srcViewPort.y), /* exclusive. (reverse to flip the image) */
4140 RT_MIN(pRect[i].srcx + pRect[i].w, srcViewPort.x + srcViewPort.cx), /* exclusive. */
4141 pSurface->pMipmapLevels[0].size.width - RT_MIN(pRect[i].srcy + pRect[i].h, srcViewPort.y + srcViewPort.cy),
4142 RT_MAX(pRect[i].x, pThis->svga.viewport.x) - pThis->svga.viewport.x,
4143 pThis->svga.uHeight - (RT_MIN(pRect[i].y + pRect[i].h, pThis->svga.viewport.y + pThis->svga.viewport.cy) - pThis->svga.viewport.y), /* exclusive. */
4144 RT_MIN(pRect[i].x + pRect[i].w, pThis->svga.viewport.x + pThis->svga.viewport.cx) - pThis->svga.viewport.x, /* exclusive. */
4145 pThis->svga.uHeight - (RT_MAX(pRect[i].y, pThis->svga.viewport.y) - pThis->svga.viewport.y),
6618 int vmsvga3dSetViewPort(PVGASTATE pThis, uint32_t cid, SVGA3dRect *pRect)
6624 Log(("vmsvga3dSetViewPort cid=%x (%d,%d)(%d,%d)\n", cid, pRect->x, pRect->y, pRect->w, pRect->h));
6636 pContext->state.RectViewPort = *pRect;
6640 glViewport(pRect->x, pRect->y, pRect->w, pRect->h);
6699 int vmsvga3dSetScissorRect(PVGASTATE pThis, uint32_t cid, SVGA3dRect *pRect)
6705 Log(("vmsvga3dSetScissorRect cid=%x (%d,%d)(%d,%d)\n", cid, pRect->x, pRect->y, pRect->w, pRect->h));
6718 pContext->state.RectScissor = *pRect;
6720 glScissor(pRect->x, pRect->y, pRect->w, pRect->h);
6736 uint32_t cRects, SVGA3dRect *pRect)
6790 Log(("vmsvga3dCommandClear: rect %d (%d,%d)(%d,%d)\n", i, pRect[i].x, pRect[i].y, pRect[i].x + pRect[i].w, pRect[i].y + pRect[i].h));
6791 glScissor(pRect[i].x, pRect[i].y, pRect[i].w, pRect[i].h);