All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only
@ 2019-04-15 17:28 Deepak Singh Rawat
  2019-04-16  7:42 ` Daniel Vetter
  0 siblings, 1 reply; 8+ messages in thread
From: Deepak Singh Rawat @ 2019-04-15 17:28 UTC (permalink / raw)
  To: dri-devel@lists.freedesktop.org
  Cc: Deepak Singh Rawat, Linux-graphics-maintainer

Plane property "FB_DAMAGE_CLIPS" can only be used by atomic aware
user-space, so no point exposing it otherwise.

Signed-off-by: Deepak Rawat <drawat@vmware.com>
Fixes: d3b21767821e ("drm: Add a new plane property to send damage during plane update")
---
 drivers/gpu/drm/drm_mode_config.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_mode_config.c b/drivers/gpu/drm/drm_mode_config.c
index 4a1c2023ccf0..1a346ae1599d 100644
--- a/drivers/gpu/drm/drm_mode_config.c
+++ b/drivers/gpu/drm/drm_mode_config.c
@@ -297,8 +297,9 @@ static int drm_mode_create_standard_properties(struct drm_device *dev)
 		return -ENOMEM;
 	dev->mode_config.prop_crtc_id = prop;
 
-	prop = drm_property_create(dev, DRM_MODE_PROP_BLOB, "FB_DAMAGE_CLIPS",
-				   0);
+	prop = drm_property_create(dev,
+			DRM_MODE_PROP_ATOMIC | DRM_MODE_PROP_BLOB,
+			"FB_DAMAGE_CLIPS", 0);
 	if (!prop)
 		return -ENOMEM;
 	dev->mode_config.prop_fb_damage_clips = prop;
-- 
2.21.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-04-17  7:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-15 17:28 [PATCH] drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only Deepak Singh Rawat
2019-04-16  7:42 ` Daniel Vetter
2019-04-16 16:21   ` Deepak Singh Rawat
2019-04-16 18:15     ` Daniel Vetter
2019-04-16 18:28       ` Deepak Singh Rawat
2019-04-16 19:27         ` Daniel Vetter
2019-04-16 22:34           ` Deepak Singh Rawat
2019-04-17  7:07             ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.