drm_atomic: Disallow selecting cursor planes using the options

This commit is contained in:
Anton Kindestam 2018-04-21 15:16:54 +02:00 committed by Jan Ekström
parent 02d40eee1b
commit a9c2a8e162
1 changed files with 3 additions and 0 deletions

View File

@ -209,6 +209,9 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd,
mp_err(log, "Unable to retrieve type property from plane %d\n", j);
goto fail;
} else {
if (value == DRM_PLANE_TYPE_CURSOR) // Skip cursor planes
continue;
layercount++;
if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY))