Lines Matching refs:rect
2228 D3DRECT rect;
2242 rect.x1 = context->viewport.X;
2243 rect.y1 = context->viewport.Y;
2244 rect.x2 = context->viewport.Width + rect.x1;
2245 rect.y2 = context->viewport.Height + rect.y1;
2249 rect.x1 = MAX2(rect.x1, context->scissor.minx);
2250 rect.y1 = MAX2(rect.y1, context->scissor.miny);
2251 rect.x2 = MIN2(rect.x2, context->scissor.maxx);
2252 rect.y2 = MIN2(rect.y2, context->scissor.maxy);
2256 /* Maybe apps like to specify a large rect ? */
2257 if (pRects[0].x1 <= rect.x1 && pRects[0].x2 >= rect.x2 &&
2258 pRects[0].y1 <= rect.y1 && pRects[0].y2 >= rect.y2) {
2259 DBG("First rect covers viewport.\n");
2265 if (rect.x1 >= context->pipe_data.fb.width || rect.y1 >= context->pipe_data.fb.height)
2276 rect.x1 == 0 && rect.y1 == 0 &&
2279 rect.x2 >= context->pipe_data.fb.width &&
2280 rect.y2 >= context->pipe_data.fb.height) ||
2284 rect.x2 >= zsbuf_surf->desc.Width &&
2285 rect.y2 >= zsbuf_surf->desc.Height))) {
2293 pRects = ▭
2314 x1 = MAX2(x1, rect.x1);
2315 y1 = MAX2(y1, rect.y1);
2316 x2 = MIN3(x2, rect.x2, rt->desc.Width);
2317 y2 = MIN3(y2, rect.y2, rt->desc.Height);
2340 x1 = MIN2(x1, rect.x1);
2341 y1 = MIN2(y1, rect.y1);
2342 x2 = MIN3(x2, rect.x2, zsbuf_surf->desc.Width);
2343 y2 = MIN3(y2, rect.y2, zsbuf_surf->desc.Height);