Commit a4ec8489 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50-: use __drm_atomic_helper_plane_reset()

We have some of this open-coded already, use the helper to prevent problems
when adding (for example) support for the alpha property.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent dffa4878
......@@ -538,9 +538,8 @@ nv50_wndw_reset(struct drm_plane *plane)
if (plane->state)
plane->funcs->atomic_destroy_state(plane, plane->state);
plane->state = &asyw->state;
plane->state->plane = plane;
plane->state->rotation = DRM_MODE_ROTATE_0;
__drm_atomic_helper_plane_reset(plane, &asyw->state);
}
static void
......
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