Commit a7ca9dd7 authored by Deepak Rawat's avatar Deepak Rawat Committed by Greg Kroah-Hartman

drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only

commit c8f00568 upstream.

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: default avatarDeepak Rawat <drawat@vmware.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Fixes: d3b21767 ("drm: Add a new plane property to send damage during plane update")
Link: https://patchwork.freedesktop.org/patch/msgid/20190415172814.9840-1-drawat@vmware.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 425a8b82
...@@ -297,8 +297,9 @@ static int drm_mode_create_standard_properties(struct drm_device *dev) ...@@ -297,8 +297,9 @@ static int drm_mode_create_standard_properties(struct drm_device *dev)
return -ENOMEM; return -ENOMEM;
dev->mode_config.prop_crtc_id = prop; dev->mode_config.prop_crtc_id = prop;
prop = drm_property_create(dev, DRM_MODE_PROP_BLOB, "FB_DAMAGE_CLIPS", prop = drm_property_create(dev,
0); DRM_MODE_PROP_ATOMIC | DRM_MODE_PROP_BLOB,
"FB_DAMAGE_CLIPS", 0);
if (!prop) if (!prop)
return -ENOMEM; return -ENOMEM;
dev->mode_config.prop_fb_damage_clips = prop; dev->mode_config.prop_fb_damage_clips = prop;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment