Lines Matching refs:blit
499 struct vmw_kms_sou_bo_blit *blit = cmd; in vmw_sou_bo_populate_clip() local
501 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN; in vmw_sou_bo_populate_clip()
502 blit->body.destScreenId = update->du->unit; in vmw_sou_bo_populate_clip()
503 blit->body.srcOrigin.x = fb_x; in vmw_sou_bo_populate_clip()
504 blit->body.srcOrigin.y = fb_y; in vmw_sou_bo_populate_clip()
505 blit->body.destRect.left = clip->x1; in vmw_sou_bo_populate_clip()
506 blit->body.destRect.top = clip->y1; in vmw_sou_bo_populate_clip()
507 blit->body.destRect.right = clip->x2; in vmw_sou_bo_populate_clip()
508 blit->body.destRect.bottom = clip->y2; in vmw_sou_bo_populate_clip()
510 return sizeof(*blit); in vmw_sou_bo_populate_clip()
584 struct vmw_kms_sou_dirty_cmd *blit = cmd; in vmw_sou_surface_pre_clip() local
590 blit->header.id = SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN; in vmw_sou_surface_pre_clip()
591 blit->header.size = sizeof(blit->body) + sizeof(SVGASignedRect) * in vmw_sou_surface_pre_clip()
595 blit->body.srcImage.sid = surf->res.id; in vmw_sou_surface_pre_clip()
596 blit->body.destScreenId = update->du->unit; in vmw_sou_surface_pre_clip()
599 blit->body.srcRect.left = 0; in vmw_sou_surface_pre_clip()
600 blit->body.srcRect.top = 0; in vmw_sou_surface_pre_clip()
601 blit->body.srcRect.right = 0; in vmw_sou_surface_pre_clip()
602 blit->body.srcRect.bottom = 0; in vmw_sou_surface_pre_clip()
604 blit->body.destRect.left = 0; in vmw_sou_surface_pre_clip()
605 blit->body.destRect.top = 0; in vmw_sou_surface_pre_clip()
606 blit->body.destRect.right = 0; in vmw_sou_surface_pre_clip()
607 blit->body.destRect.bottom = 0; in vmw_sou_surface_pre_clip()
609 return sizeof(*blit); in vmw_sou_surface_pre_clip()
636 struct vmw_kms_sou_dirty_cmd *blit; in vmw_sou_surface_post_clip() local
645 blit = srf_update->cmd_start; in vmw_sou_surface_post_clip()
646 rect = (SVGASignedRect *)&blit[1]; in vmw_sou_surface_post_clip()
648 num_hits = (blit->header.size - sizeof(blit->body))/ in vmw_sou_surface_post_clip()
659 blit->body.srcRect.left = src_bb.x1; in vmw_sou_surface_post_clip()
660 blit->body.srcRect.top = src_bb.y1; in vmw_sou_surface_post_clip()
661 blit->body.srcRect.right = src_bb.x2; in vmw_sou_surface_post_clip()
662 blit->body.srcRect.bottom = src_bb.y2; in vmw_sou_surface_post_clip()
664 blit->body.destRect.left = bb->x1; in vmw_sou_surface_post_clip()
665 blit->body.destRect.top = bb->y1; in vmw_sou_surface_post_clip()
666 blit->body.destRect.right = bb->x2; in vmw_sou_surface_post_clip()
667 blit->body.destRect.bottom = bb->y2; in vmw_sou_surface_post_clip()
999 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1]; in vmw_sou_surface_fifo_commit() local
1028 for (i = 0; i < dirty->num_hits; ++i, ++blit) { in vmw_sou_surface_fifo_commit()
1029 blit->left -= sdirty->left; in vmw_sou_surface_fifo_commit()
1030 blit->right -= sdirty->left; in vmw_sou_surface_fifo_commit()
1031 blit->top -= sdirty->top; in vmw_sou_surface_fifo_commit()
1032 blit->bottom -= sdirty->top; in vmw_sou_surface_fifo_commit()
1054 SVGASignedRect *blit = (SVGASignedRect *) &cmd[1]; in vmw_sou_surface_clip() local
1057 blit += dirty->num_hits; in vmw_sou_surface_clip()
1058 blit->left = dirty->unit_x1; in vmw_sou_surface_clip()
1059 blit->top = dirty->unit_y1; in vmw_sou_surface_clip()
1060 blit->right = dirty->unit_x2; in vmw_sou_surface_clip()
1061 blit->bottom = dirty->unit_y2; in vmw_sou_surface_clip()
1177 struct vmw_kms_sou_bo_blit *blit = dirty->cmd; in vmw_sou_bo_clip() local
1179 blit += dirty->num_hits; in vmw_sou_bo_clip()
1180 blit->header = SVGA_CMD_BLIT_GMRFB_TO_SCREEN; in vmw_sou_bo_clip()
1181 blit->body.destScreenId = dirty->unit->unit; in vmw_sou_bo_clip()
1182 blit->body.srcOrigin.x = dirty->fb_x; in vmw_sou_bo_clip()
1183 blit->body.srcOrigin.y = dirty->fb_y; in vmw_sou_bo_clip()
1184 blit->body.destRect.left = dirty->unit_x1; in vmw_sou_bo_clip()
1185 blit->body.destRect.top = dirty->unit_y1; in vmw_sou_bo_clip()
1186 blit->body.destRect.right = dirty->unit_x2; in vmw_sou_bo_clip()
1187 blit->body.destRect.bottom = dirty->unit_y2; in vmw_sou_bo_clip()
1289 struct vmw_kms_sou_readback_blit *blit = dirty->cmd; in vmw_sou_readback_clip() local
1291 blit += dirty->num_hits; in vmw_sou_readback_clip()
1292 blit->header = SVGA_CMD_BLIT_SCREEN_TO_GMRFB; in vmw_sou_readback_clip()
1293 blit->body.srcScreenId = dirty->unit->unit; in vmw_sou_readback_clip()
1294 blit->body.destOrigin.x = dirty->fb_x; in vmw_sou_readback_clip()
1295 blit->body.destOrigin.y = dirty->fb_y; in vmw_sou_readback_clip()
1296 blit->body.srcRect.left = dirty->unit_x1; in vmw_sou_readback_clip()
1297 blit->body.srcRect.top = dirty->unit_y1; in vmw_sou_readback_clip()
1298 blit->body.srcRect.right = dirty->unit_x2; in vmw_sou_readback_clip()
1299 blit->body.srcRect.bottom = dirty->unit_y2; in vmw_sou_readback_clip()