Lines Matching refs:sdirty
834 struct vmw_kms_sou_surface_dirty *sdirty = in vmw_sou_surface_fifo_commit() local
835 container_of(dirty, typeof(*sdirty), base); in vmw_sou_surface_fifo_commit()
837 s32 trans_x = dirty->unit->crtc.x - sdirty->dst_x; in vmw_sou_surface_fifo_commit()
838 s32 trans_y = dirty->unit->crtc.y - sdirty->dst_y; in vmw_sou_surface_fifo_commit()
855 cmd->body.destRect.left = sdirty->left; in vmw_sou_surface_fifo_commit()
856 cmd->body.destRect.right = sdirty->right; in vmw_sou_surface_fifo_commit()
857 cmd->body.destRect.top = sdirty->top; in vmw_sou_surface_fifo_commit()
858 cmd->body.destRect.bottom = sdirty->bottom; in vmw_sou_surface_fifo_commit()
860 cmd->body.srcRect.left = sdirty->left + trans_x; in vmw_sou_surface_fifo_commit()
861 cmd->body.srcRect.right = sdirty->right + trans_x; in vmw_sou_surface_fifo_commit()
862 cmd->body.srcRect.top = sdirty->top + trans_y; in vmw_sou_surface_fifo_commit()
863 cmd->body.srcRect.bottom = sdirty->bottom + trans_y; in vmw_sou_surface_fifo_commit()
865 cmd->body.srcImage.sid = sdirty->sid; in vmw_sou_surface_fifo_commit()
870 blit->left -= sdirty->left; in vmw_sou_surface_fifo_commit()
871 blit->right -= sdirty->left; in vmw_sou_surface_fifo_commit()
872 blit->top -= sdirty->top; in vmw_sou_surface_fifo_commit()
873 blit->bottom -= sdirty->top; in vmw_sou_surface_fifo_commit()
878 sdirty->left = sdirty->top = S32_MAX; in vmw_sou_surface_fifo_commit()
879 sdirty->right = sdirty->bottom = S32_MIN; in vmw_sou_surface_fifo_commit()
892 struct vmw_kms_sou_surface_dirty *sdirty = in vmw_sou_surface_clip() local
893 container_of(dirty, typeof(*sdirty), base); in vmw_sou_surface_clip()
905 sdirty->left = min_t(s32, sdirty->left, dirty->unit_x1); in vmw_sou_surface_clip()
906 sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); in vmw_sou_surface_clip()
907 sdirty->right = max_t(s32, sdirty->right, dirty->unit_x2); in vmw_sou_surface_clip()
908 sdirty->bottom = max_t(s32, sdirty->bottom, dirty->unit_y2); in vmw_sou_surface_clip()
948 struct vmw_kms_sou_surface_dirty sdirty; in vmw_kms_sou_do_surface_dirty() local
959 sdirty.base.fifo_commit = vmw_sou_surface_fifo_commit; in vmw_kms_sou_do_surface_dirty()
960 sdirty.base.clip = vmw_sou_surface_clip; in vmw_kms_sou_do_surface_dirty()
961 sdirty.base.dev_priv = dev_priv; in vmw_kms_sou_do_surface_dirty()
962 sdirty.base.fifo_reserve_size = sizeof(struct vmw_kms_sou_dirty_cmd) + in vmw_kms_sou_do_surface_dirty()
964 sdirty.base.crtc = crtc; in vmw_kms_sou_do_surface_dirty()
966 sdirty.sid = srf->id; in vmw_kms_sou_do_surface_dirty()
967 sdirty.left = sdirty.top = S32_MAX; in vmw_kms_sou_do_surface_dirty()
968 sdirty.right = sdirty.bottom = S32_MIN; in vmw_kms_sou_do_surface_dirty()
969 sdirty.dst_x = dest_x; in vmw_kms_sou_do_surface_dirty()
970 sdirty.dst_y = dest_y; in vmw_kms_sou_do_surface_dirty()
974 &sdirty.base); in vmw_kms_sou_do_surface_dirty()