drm: Refuse to async flip with atomic prop changes
authorAndré Almeida <andrealmeid@igalia.com>
Wed, 22 Nov 2023 16:19:38 +0000 (13:19 -0300)
committerSimon Ser <contact@emersion.fr>
Thu, 23 Nov 2023 16:12:38 +0000 (17:12 +0100)
commit0e26cc72c71cb98e951716a6596060cd04b0ba6b
treedd041b91937c11af5cb7406d3fd2630e0e9df971
parent815d8b0425ad1164e45953ac3d56a9f6f63792cc
drm: Refuse to async flip with atomic prop changes

Given that prop changes may lead to modesetting, which would defeat the
fast path of the async flip, refuse any atomic prop change for async
flips in atomic API. The only exception is the framebuffer ID to flip
to. Currently the only plane type supported is the primary one.

Signed-off-by: André Almeida <andrealmeid@igalia.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Signed-off-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20231122161941.320564-2-andrealmeid@igalia.com
drivers/gpu/drm/drm_atomic_uapi.c
drivers/gpu/drm/drm_crtc_internal.h
drivers/gpu/drm/drm_mode_object.c