diff options
| author | Ben Skeggs <bskeggs@redhat.com> | 2017-10-31 19:12:25 -0400 |
|---|---|---|
| committer | Ben Skeggs <bskeggs@redhat.com> | 2017-10-31 19:18:33 -0400 |
| commit | d324c5bc462d354d337dcf3a14ffd0eb17b4fa38 (patch) | |
| tree | b87272d0311f5d3114b5d957b39bca5c99a7ee92 | |
| parent | 2cb3a34abd035756f9ba3cde12f44f4b3e4c234b (diff) | |
drm/nouveau/kms/nv50: use the correct state for base channel notifier setup
Fixes: 857263 ("drm/nouveau: Handle drm_atomic_helper_swap_state failure")
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Tested-by: Lyude Paul <lyude@redhat.com>
Reviewed by: Lyude Paul <lyude@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index e4751f92b342..fb47d46050ec 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c | |||
| @@ -4099,7 +4099,7 @@ nv50_disp_atomic_commit(struct drm_device *dev, | |||
| 4099 | { | 4099 | { |
| 4100 | struct nouveau_drm *drm = nouveau_drm(dev); | 4100 | struct nouveau_drm *drm = nouveau_drm(dev); |
| 4101 | struct nv50_disp *disp = nv50_disp(dev); | 4101 | struct nv50_disp *disp = nv50_disp(dev); |
| 4102 | struct drm_plane_state *old_plane_state; | 4102 | struct drm_plane_state *new_plane_state; |
| 4103 | struct drm_plane *plane; | 4103 | struct drm_plane *plane; |
| 4104 | struct drm_crtc *crtc; | 4104 | struct drm_crtc *crtc; |
| 4105 | bool active = false; | 4105 | bool active = false; |
| @@ -4129,8 +4129,8 @@ nv50_disp_atomic_commit(struct drm_device *dev, | |||
| 4129 | if (ret) | 4129 | if (ret) |
| 4130 | goto err_cleanup; | 4130 | goto err_cleanup; |
| 4131 | 4131 | ||
| 4132 | for_each_old_plane_in_state(state, plane, old_plane_state, i) { | 4132 | for_each_new_plane_in_state(state, plane, new_plane_state, i) { |
| 4133 | struct nv50_wndw_atom *asyw = nv50_wndw_atom(old_plane_state); | 4133 | struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); |
| 4134 | struct nv50_wndw *wndw = nv50_wndw(plane); | 4134 | struct nv50_wndw *wndw = nv50_wndw(plane); |
| 4135 | 4135 | ||
| 4136 | if (asyw->set.image) { | 4136 | if (asyw->set.image) { |
