|
@@ -1472,12 +1472,6 @@ retry:
|
|
goto fail;
|
|
goto fail;
|
|
}
|
|
}
|
|
|
|
|
|
- if (obj->type == DRM_MODE_OBJECT_PLANE) {
|
|
|
|
- plane = obj_to_plane(obj);
|
|
|
|
- plane_mask |= (1 << drm_plane_index(plane));
|
|
|
|
- plane->old_fb = plane->fb;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (get_user(count_props, count_props_ptr + copied_objs)) {
|
|
if (get_user(count_props, count_props_ptr + copied_objs)) {
|
|
ret = -EFAULT;
|
|
ret = -EFAULT;
|
|
goto fail;
|
|
goto fail;
|
|
@@ -1514,6 +1508,12 @@ retry:
|
|
|
|
|
|
copied_props++;
|
|
copied_props++;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (obj->type == DRM_MODE_OBJECT_PLANE && count_props) {
|
|
|
|
+ plane = obj_to_plane(obj);
|
|
|
|
+ plane_mask |= (1 << drm_plane_index(plane));
|
|
|
|
+ plane->old_fb = plane->fb;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if (arg->flags & DRM_MODE_PAGE_FLIP_EVENT) {
|
|
if (arg->flags & DRM_MODE_PAGE_FLIP_EVENT) {
|