Lines Matching refs:frame_info
40 static void pre_mul_alpha_blend(struct vkms_frame_info *frame_info, in pre_mul_alpha_blend() argument
44 int x_dst = frame_info->dst.x1; in pre_mul_alpha_blend()
47 int x_limit = min_t(size_t, drm_rect_width(&frame_info->dst), in pre_mul_alpha_blend()
58 static int get_y_pos(struct vkms_frame_info *frame_info, int y) in get_y_pos() argument
60 if (frame_info->rotation & DRM_MODE_REFLECT_Y) in get_y_pos()
61 return drm_rect_height(&frame_info->rotated) - y - 1; in get_y_pos()
63 switch (frame_info->rotation & DRM_MODE_ROTATE_MASK) { in get_y_pos()
65 return frame_info->rotated.x2 - y - 1; in get_y_pos()
67 return y + frame_info->rotated.x1; in get_y_pos()
73 static bool check_limit(struct vkms_frame_info *frame_info, int pos) in check_limit() argument
75 if (drm_rotation_90_or_270(frame_info->rotation)) { in check_limit()
76 if (pos >= 0 && pos < drm_rect_width(&frame_info->rotated)) in check_limit()
79 if (pos >= frame_info->rotated.y1 && pos < frame_info->rotated.y2) in check_limit()
197 y_pos = get_y_pos(plane[i]->frame_info, y); in blend()
199 if (!check_limit(plane[i]->frame_info, y_pos)) in blend()
203 pre_mul_alpha_blend(plane[i]->frame_info, stage_buffer, in blend()
238 if (iosys_map_is_null(&plane_state[i]->frame_info->map[0])) in check_iosys_map()