diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2018-05-08 20:39:47 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-05-18 15:01:28 +1000 |
commit | ccd27db8c731817ef36e75de2b5fdc2e79550213 (patch) | |
tree | 56a8aa9c8af872b2d0954ae93d54650e81e54839 /drivers/gpu/drm/nouveau/dispnv50/disp.c | |
parent | 09e1b78aab5715eacab02e4047c7a47d72f6a1e9 (diff) |
drm/nouveau/kms/nv50-: split base implementation by hardware class
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/disp.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/disp.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 6136beeba3fc..c2b1578ed552 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1812,7 +1812,6 @@ nv50_disp_atomic_commit(struct drm_device *dev, struct drm_atomic_state *state, bool nonblock) { struct nouveau_drm *drm = nouveau_drm(dev); - struct nv50_disp *disp = nv50_disp(dev); struct drm_plane_state *new_plane_state; struct drm_plane *plane; struct drm_crtc *crtc; @@ -1847,14 +1846,8 @@ nv50_disp_atomic_commit(struct drm_device *dev, struct nv50_wndw_atom *asyw = nv50_wndw_atom(new_plane_state); struct nv50_wndw *wndw = nv50_wndw(plane); - if (asyw->set.image) { - asyw->ntfy.handle = wndw->wndw.sync.handle; - asyw->ntfy.offset = wndw->ntfy; - asyw->ntfy.awaken = false; - asyw->set.ntfy = true; - nouveau_bo_wr32(disp->sync, wndw->ntfy / 4, 0x00000000); - wndw->ntfy ^= 0x10; - } + if (asyw->set.image) + nv50_wndw_ntfy_enable(wndw, asyw); } drm_atomic_state_get(state); |