Lines Matching defs:blit
51 * blit surface to screen command.
510 struct vmw_kms_sou_bo_blit *blit = cmd;
512 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN;
513 blit->body.destScreenId = update->du->unit;
514 blit->body.srcOrigin.x = fb_x;
515 blit->body.srcOrigin.y = fb_y;
516 blit->body.destRect.left = clip->x1;
517 blit->body.destRect.top = clip->y1;
518 blit->body.destRect.right = clip->x2;
519 blit->body.destRect.bottom = clip->y2;
521 return sizeof(*blit);
596 struct vmw_kms_sou_dirty_cmd *blit = cmd;
601 blit->header.id = SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN;
602 blit->header.size = sizeof(blit->body) + sizeof(SVGASignedRect) *
605 blit->body.srcImage.sid = vfbs->surface->res.id;
606 blit->body.destScreenId = update->du->unit;
609 blit->body.srcRect.left = 0;
610 blit->body.srcRect.top = 0;
611 blit->body.srcRect.right = 0;
612 blit->body.srcRect.bottom = 0;
614 blit->body.destRect.left = 0;
615 blit
616 blit->body.destRect.right = 0;
617 blit->body.destRect.bottom = 0;
619 return sizeof(*blit);
646 struct vmw_kms_sou_dirty_cmd *blit;
655 blit = srf_update->cmd_start;
656 rect = (SVGASignedRect *)&blit[1];
658 num_hits = (blit->header.size - sizeof(blit->body))/
669 blit->body.srcRect.left = src_bb.x1;
670 blit->body.srcRect.top = src_bb.y1;
671 blit->body.srcRect.right = src_bb.x2;
672 blit->body.srcRect.bottom = src_bb.y2;
674 blit->body.destRect.left = bb->x1;
675 blit->body.destRect.top = bb->y1;
676 blit->body.destRect.right = bb->x2;
677 blit->body.destRect.bottom = bb->y2;
1020 * blit surface to screen command.
1035 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1];
1064 for (i = 0; i < dirty->num_hits; ++i, ++blit) {
1065 blit->left -= sdirty->left;
1066 blit->right -= sdirty->left;
1067 blit->top -= sdirty->top;
1068 blit->bottom -= sdirty->top;
1078 * vmw_sou_surface_clip - Callback to encode a blit surface to screen cliprect.
1090 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1];
1093 blit += dirty->num_hits;
1094 blit->left = dirty->unit_x1;
1095 blit->top = dirty->unit_y1;
1096 blit->right = dirty->unit_x2;
1097 blit->bottom = dirty->unit_y2;
1116 * @srf: Pointer to surface to blit from. If NULL, the surface attached
1213 struct vmw_kms_sou_bo_blit *blit = dirty->cmd;
1215 blit += dirty->num_hits;
1216 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN;
1217 blit->body.destScreenId = dirty->unit->unit;
1218 blit->body.srcOrigin.x = dirty->fb_x;
1219 blit->body.srcOrigin.y = dirty->fb_y;
1220 blit->body.destRect.left = dirty->unit_x1;
1221 blit->body.destRect.top = dirty->unit_y1;
1222 blit->body.destRect.right = dirty->unit_x2;
1223 blit->body.destRect.bottom = dirty->unit_y2;
1323 struct vmw_kms_sou_readback_blit *blit = dirty->cmd;
1325 blit += dirty->num_hits;
1326 blit->header = SVGA_CMD_BLIT_SCREEN_TO_GMRFB;
1327 blit->body.srcScreenId = dirty->unit->unit;
1328 blit->body.destOrigin.x = dirty->fb_x;
1329 blit->body.destOrigin.y = dirty->fb_y;
1330 blit->body.srcRect.left = dirty->unit_x1;
1331 blit->body.srcRect.top = dirty->unit_y1;
1332 blit->body.srcRect.right = dirty->unit_x2;
1333 blit->body.srcRect.bottom = dirty->unit_y2;