Lines Matching refs:plane

89 static int get_supported_format(struct sp_plane *plane, uint32_t *format)  in get_supported_format()  argument
93 for (i = 0; i < plane->plane->count_formats; i++) { in get_supported_format()
94 if (plane->plane->formats[i] == DRM_FORMAT_XRGB8888 || in get_supported_format()
95 plane->plane->formats[i] == DRM_FORMAT_ARGB8888 || in get_supported_format()
96 plane->plane->formats[i] == DRM_FORMAT_RGBA8888) { in get_supported_format()
97 *format = plane->plane->formats[i]; in get_supported_format()
231 struct sp_plane *plane = &dev->planes[i]; in create_sp_dev() local
233 plane->dev = dev; in create_sp_dev()
234 plane->plane = drmModeGetPlane(dev->fd, pr->planes[i]); in create_sp_dev()
235 if (!plane->plane) { in create_sp_dev()
239 plane->bo = NULL; in create_sp_dev()
240 plane->in_use = 0; in create_sp_dev()
242 ret = get_supported_format(plane, &plane->format); in create_sp_dev()
249 if (plane->plane->possible_crtcs & (1 << j)) in create_sp_dev()
259 plane->crtc_pid = get_prop_id(dev, props, "CRTC_ID"); in create_sp_dev()
260 if (!plane->crtc_pid) { in create_sp_dev()
264 plane->fb_pid = get_prop_id(dev, props, "FB_ID"); in create_sp_dev()
265 if (!plane->fb_pid) { in create_sp_dev()
269 plane->crtc_x_pid = get_prop_id(dev, props, "CRTC_X"); in create_sp_dev()
270 if (!plane->crtc_x_pid) { in create_sp_dev()
274 plane->crtc_y_pid = get_prop_id(dev, props, "CRTC_Y"); in create_sp_dev()
275 if (!plane->crtc_y_pid) { in create_sp_dev()
279 plane->crtc_w_pid = get_prop_id(dev, props, "CRTC_W"); in create_sp_dev()
280 if (!plane->crtc_w_pid) { in create_sp_dev()
284 plane->crtc_h_pid = get_prop_id(dev, props, "CRTC_H"); in create_sp_dev()
285 if (!plane->crtc_h_pid) { in create_sp_dev()
289 plane->src_x_pid = get_prop_id(dev, props, "SRC_X"); in create_sp_dev()
290 if (!plane->src_x_pid) { in create_sp_dev()
294 plane->src_y_pid = get_prop_id(dev, props, "SRC_Y"); in create_sp_dev()
295 if (!plane->src_y_pid) { in create_sp_dev()
299 plane->src_w_pid = get_prop_id(dev, props, "SRC_W"); in create_sp_dev()
300 if (!plane->src_w_pid) { in create_sp_dev()
304 plane->src_h_pid = get_prop_id(dev, props, "SRC_H"); in create_sp_dev()
305 if (!plane->src_h_pid) { in create_sp_dev()
335 if (dev->planes[i].plane) in destroy_sp_dev()
336 drmModeFreePlane(dev->planes[i].plane); in destroy_sp_dev()