|
@@ -706,6 +706,8 @@ int drm_atomic_plane_set_property(struct drm_plane *plane,
|
|
} else if (property == config->prop_src_h) {
|
|
} else if (property == config->prop_src_h) {
|
|
state->src_h = val;
|
|
state->src_h = val;
|
|
} else if (property == config->rotation_property) {
|
|
} else if (property == config->rotation_property) {
|
|
|
|
+ if (!is_power_of_2(val & DRM_ROTATE_MASK))
|
|
|
|
+ return -EINVAL;
|
|
state->rotation = val;
|
|
state->rotation = val;
|
|
} else if (property == plane->zpos_property) {
|
|
} else if (property == plane->zpos_property) {
|
|
state->zpos = val;
|
|
state->zpos = val;
|