Lines Matching refs:rect
170 SVGA3dRect rect;
284 rect.x = fx;
285 rect.y = fy;
286 rect.w = fw;
287 rect.h = fh;
291 fabs((float)rect.x - fx),
292 fabs((float)rect.y - fy),
293 fabs((float)rect.w - fw),
294 fabs((float)rect.h - fh));
298 rect.x,
299 rect.y,
300 rect.w,
301 rect.h);
361 H[0] = (float)rect.w / 2.0;
362 H[1] = -(float)rect.h / 2.0;
363 J[0] = (float)rect.x + (float)rect.w / 2.0;
364 J[1] = (float)rect.y + (float)rect.h / 2.0;
410 rect.x = 0;
411 rect.y = 0;
412 rect.w = 1;
413 rect.h = 1;
417 if (memcmp(&rect, &svga->state.hw_clear.viewport, sizeof(rect)) != 0) {
418 ret = SVGA3D_SetViewport(svga->swc, &rect);
422 memcpy(&svga->state.hw_clear.viewport, &rect, sizeof(rect));
423 assert(sizeof(rect) == sizeof(svga->state.hw_clear.viewport));
465 SVGA3dRect rect;
467 rect.x = scissor->minx;
468 rect.y = scissor->miny;
469 rect.w = scissor->maxx - scissor->minx; /* + 1 ?? */
470 rect.h = scissor->maxy - scissor->miny; /* + 1 ?? */
472 return SVGA3D_SetScissorRect(svga->swc, &rect);