Lines Matching defs:blit

46  * blit surface to screen command.
508 struct vmw_kms_sou_bo_blit *blit = cmd;
510 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN;
511 blit->body.destScreenId = update->du->unit;
512 blit->body.srcOrigin.x = fb_x;
513 blit->body.srcOrigin.y = fb_y;
514 blit->body.destRect.left = clip->x1;
515 blit->body.destRect.top = clip->y1;
516 blit->body.destRect.right = clip->x2;
517 blit->body.destRect.bottom = clip->y2;
519 return sizeof(*blit);
594 struct vmw_kms_sou_dirty_cmd *blit = cmd;
599 blit->header.id = SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN;
600 blit->header.size = sizeof(blit->body) + sizeof(SVGASignedRect) *
603 blit->body.srcImage.sid = vfbs->surface->res.id;
604 blit->body.destScreenId = update->du->unit;
607 blit->body.srcRect.left = 0;
608 blit->body.srcRect.top = 0;
609 blit->body.srcRect.right = 0;
610 blit->body.srcRect.bottom = 0;
612 blit->body.destRect.left = 0;
613 blit->body.destRect.top = 0;
614 blit->body.destRect.right = 0;
615 blit->body.destRect.bottom = 0;
617 return sizeof(*blit);
644 struct vmw_kms_sou_dirty_cmd *blit;
653 blit = srf_update->cmd_start;
654 rect = (SVGASignedRect *)&blit[1];
656 num_hits = (blit->header.size - sizeof(blit->body))/
667 blit->body.srcRect.left = src_bb.x1;
668 blit->body.srcRect.top = src_bb.y1;
669 blit->body.srcRect.right = src_bb.x2;
670 blit->body.srcRect.bottom = src_bb.y2;
672 blit->body.destRect.left = bb->x1;
673 blit->body.destRect.top = bb->y1;
674 blit->body.destRect.right = bb->x2;
675 blit->body.destRect.bottom = bb->y2;
1017 * blit surface to screen command.
1032 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1];
1061 for (i = 0; i < dirty->num_hits; ++i, ++blit) {
1062 blit->left -= sdirty->left;
1063 blit->right -= sdirty->left;
1064 blit->top -= sdirty->top;
1065 blit->bottom -= sdirty->top;
1075 * vmw_sou_surface_clip - Callback to encode a blit surface to screen cliprect.
1087 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1];
1090 blit += dirty->num_hits;
1091 blit->left = dirty->unit_x1;
1092 blit->top = dirty->unit_y1;
1093 blit->right = dirty->unit_x2;
1094 blit->bottom = dirty->unit_y2;
1113 * @srf: Pointer to surface to blit from. If NULL, the surface attached
1210 struct vmw_kms_sou_bo_blit *blit = dirty->cmd;
1212 blit += dirty->num_hits;
1213 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN;
1214 blit->body.destScreenId = dirty->unit->unit;
1215 blit->body.srcOrigin.x = dirty->fb_x;
1216 blit->body.srcOrigin.y = dirty->fb_y;
1217 blit->body.destRect.left = dirty->unit_x1;
1218 blit->body.destRect.top = dirty->unit_y1;
1219 blit->body.destRect.right = dirty->unit_x2;
1220 blit->body.destRect.bottom = dirty->unit_y2;
1320 struct vmw_kms_sou_readback_blit *blit = dirty->cmd;
1322 blit += dirty->num_hits;
1323 blit->header = SVGA_CMD_BLIT_SCREEN_TO_GMRFB;
1324 blit->body.srcScreenId = dirty->unit->unit;
1325 blit->body.destOrigin.x = dirty->fb_x;
1326 blit->body.destOrigin.y = dirty->fb_y;
1327 blit->body.srcRect.left = dirty->unit_x1;
1328 blit->body.srcRect.top = dirty->unit_y1;
1329 blit->body.srcRect.right = dirty->unit_x2;
1330 blit->body.srcRect.bottom = dirty->unit_y2;