drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only
authorDeepak Rawat <drawat@vmware.com>
Mon, 15 Apr 2019 17:28:05 +0000 (10:28 -0700)
committerDeepak Rawat <drawat@vmware.com>
Tue, 16 Apr 2019 22:13:23 +0000 (15:13 -0700)
Plane property "FB_DAMAGE_CLIPS" can only be used by atomic aware
user-space, so no point exposing it otherwise.

Cc: <stable@vger.kernel.org>
Signed-off-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: d3b21767821e ("drm: Add a new plane property to send damage during plane update")
Link: https://patchwork.freedesktop.org/patch/msgid/20190415172814.9840-1-drawat@vmware.com
drivers/gpu/drm/drm_mode_config.c

index 4a1c2023ccf02bdaeb84d9b23c0d82818f84df3f..1a346ae1599d2de87a34c40bb114bc3e06c9a9a8 100644 (file)
@@ -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;