[PATCH v6 4/8] drm: atmel-hlcdc: Enable async flips on the primary plane
André Almeida
andrealmeid at igalia.com
Fri Jun 14 15:35:31 UTC 2024
This driver can perfom async flips on primary planes, so enable it.
Signed-off-by: André Almeida <andrealmeid at igalia.com>
---
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
index 4a7ba0918eca..22b8a5c888ef 100644
--- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
+++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
@@ -1227,6 +1227,9 @@ static int atmel_hlcdc_plane_create(struct drm_device *dev,
if (ret)
return ret;
+ if (type == DRM_PLANE_TYPE_PRIMARY)
+ plane->base.async_flip = true;
+
drm_plane_helper_add(&plane->base,
&atmel_hlcdc_layer_plane_helper_funcs);
--
2.45.2
More information about the amd-gfx
mailing list