diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-06-21 10:36:33 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 18:50:58 +1000 |
commit | 852dfbde915cb68e577e6e2cac9b3db08a4f81c7 (patch) | |
tree | ccd62af563a0171bb85bc8154566c667d24d32d6 /drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c | |
parent | 937014086af8a09caf0f61353aba8884dfa54699 (diff) |
drm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c b/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c index d013f89cc371..685b70871324 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wimmc37b.c @@ -37,9 +37,9 @@ wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock) if ((ret = PUSH_WAIT(push, 2))) return ret; - PUSH_NVSQ(push, NVC37B, 0x0200, ((interlock[NV50_DISP_INTERLOCK_WNDW] & - wndw->interlock.data) ? 0x00000002 : 0x00000000) | - 0x00000001); + PUSH_MTHD(push, NVC37B, UPDATE, 0x00000001 | + NVVAL(NVC37B, UPDATE, INTERLOCK_WITH_WINDOW, + !!(interlock[NV50_DISP_INTERLOCK_WNDW] & wndw->interlock.data))); return PUSH_KICK(push); } |