Lines Matching defs:plane
96 struct plane {
97 drmModePlane *plane;
111 struct plane *planes;
516 struct plane *plane = &dev->resources->planes[i];
517 drmModePlane *ovr = plane->plane;
534 if (plane->props) {
536 for (j = 0; j < plane->props->count_props; j++)
537 dump_prop(dev, plane->props_info[j],
538 plane->props->props[j],
539 plane->props->prop_values[j]);
579 free_properties(res, plane);
580 free_resource(res, plane, Plane);
711 get_resource(res, plane_res, plane, Plane);
713 get_properties(res, plane, PLANE);
821 uint32_t plane_id; /* the id of plane to use */
1008 find_object(dev->resources, plane, PLANE);
1185 /* Find an unused plane which can be connected to our CRTC. Find the
1195 fprintf(stderr, "testing %dx%d@%s on plane %u, crtc %u\n",
1245 /* Find an unused plane which can be connected to our CRTC. Find the
1257 ovr = dev->resources->planes[i].plane;
1275 fprintf(stderr, "no unused plane available for CRTC %u\n",
1280 fprintf(stderr, "testing %dx%d@%s overlay plane %u\n",
1283 /* just use single plane format for now.. */
1303 fprintf(stderr, "failed to enable plane: %s\n",
1537 static struct plane *get_primary_plane_by_crtc(struct device *dev, struct crtc *crtc)
1542 struct plane *plane = &dev->resources->planes[i];
1543 drmModePlane *ovr = plane->plane;
1550 return plane;
1648 /* By default atomic modeset does not set a primary plane, shrug */
1650 struct plane *plane = get_primary_plane_by_crtc(dev, pipe->crtc);
1652 .plane_id = plane->plane->plane_id,
1915 static int parse_plane(struct plane_arg *plane, const char *p)
1919 plane->plane_id = strtoul(p, &end, 10);
1924 plane->crtc_id = strtoul(p, &end, 10);
1929 plane->w = strtoul(p, &end, 10);
1934 plane->h = strtoul(p, &end, 10);
1937 plane->x = strtol(end, &end, 10);
1940 plane->y = strtol(end, &end, 10);
1942 plane->has_position = true;
1947 plane->scale = strtod(p, &end);
1948 if (plane->scale <= 0.0)
1951 plane->scale = 1.0;
1955 strncpy(plane->format_str, end + 1, 4);
1956 plane->format_str[4] = '\0';
1958 strcpy(plane->format_str, "XR24");
1961 plane->fourcc = util_format_fourcc(plane->format_str);
1962 if (plane->fourcc == 0) {
1963 fprintf(stderr, "unknown format %s\n", plane->format_str);
2004 fprintf(stderr, "\t-P <plane_id>@<crtc_id>:<w>x<h>[+<x>+<y>][*<scale>][@<format>]\tset a plane\n");
2158 fprintf(stderr, "cannot use -r (preferred) when -P (plane) is set\n");
2229 /* XXX: properly teardown the preferred mode/plane state */