diff options
author | André Almeida <andrealmeid@igalia.com> | 2023-11-22 19:19:38 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-11-23 19:12:38 +0300 |
commit | 0e26cc72c71cb98e951716a6596060cd04b0ba6b (patch) | |
tree | dd041b91937c11af5cb7406d3fd2630e0e9df971 /drivers/gpu/drm/drm_crtc_internal.h | |
parent | 815d8b0425ad1164e45953ac3d56a9f6f63792cc (diff) | |
download | linux-0e26cc72c71cb98e951716a6596060cd04b0ba6b.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_internal.h')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc_internal.h b/drivers/gpu/drm/drm_crtc_internal.h index 6b646e0783be..a514d5207e41 100644 --- a/drivers/gpu/drm/drm_crtc_internal.h +++ b/drivers/gpu/drm/drm_crtc_internal.h @@ -253,7 +253,7 @@ int drm_atomic_set_property(struct drm_atomic_state *state, struct drm_file *file_priv, struct drm_mode_object *obj, struct drm_property *prop, - uint64_t prop_value); + u64 prop_value, bool async_flip); int drm_atomic_get_property(struct drm_mode_object *obj, struct drm_property *property, uint64_t *val); |