Skip to content

Commit

Permalink
drm_atomic: Disallow selecting cursor planes using the options
Browse files Browse the repository at this point in the history
  • Loading branch information
xantoz committed Apr 21, 2018
1 parent a37f4c0 commit d8e214a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions video/out/drm_atomic.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void drm_object_print_info(struct mp_log *log, struct drm_object *object)
}

struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd, int crtc_id,
int connector_id, int osd_plane_id, int video_plane_id)
int connector_id, int osd_plane_id, int video_plane_id)
{
drmModePlane *drmplane = NULL;
drmModePlaneRes *plane_res = NULL;
Expand Down Expand Up @@ -208,7 +208,10 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd,
if (drm_object_get_property(plane, "TYPE", &value) == -EINVAL) {
mp_err(log, "Unable to retrieve type property from plane %d\n", j);
goto fail;
} else {
} else {
if (value == DRM_PLANE_TYPE_CURSOR) // Skip cursor planes
continue;

layercount++;

if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY))
Expand Down

0 comments on commit d8e214a

Please sign in to comment.