drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw image_clr()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
This commit is contained in:
Родитель
f844eb485e
Коммит
1070832b1e
|
@ -56,8 +56,11 @@ base507c_image_clr(struct nv50_wndw *wndw)
|
|||
if ((ret = PUSH_WAIT(push, 4)))
|
||||
return ret;
|
||||
|
||||
PUSH_NVSQ(push, NV507C, 0x0084, 0x00000000);
|
||||
PUSH_NVSQ(push, NV507C, 0x00c0, 0x00000000);
|
||||
PUSH_MTHD(push, NV507C, SET_PRESENT_CONTROL,
|
||||
NVDEF(NV507C, SET_PRESENT_CONTROL, BEGIN_MODE, NON_TEARING) |
|
||||
NVVAL(NV507C, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, 0));
|
||||
|
||||
PUSH_MTHD(push, NV507C, SET_CONTEXT_DMA_ISO, 0x00000000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -127,8 +127,11 @@ wndwc37e_image_clr(struct nv50_wndw *wndw)
|
|||
if ((ret = PUSH_WAIT(push, 4)))
|
||||
return ret;
|
||||
|
||||
PUSH_NVSQ(push, NVC37E, 0x0308, 0x00000000);
|
||||
PUSH_NVSQ(push, NVC37E, 0x0240, 0x00000000);
|
||||
PUSH_MTHD(push, NVC37E, SET_PRESENT_CONTROL,
|
||||
NVVAL(NVC37E, SET_PRESENT_CONTROL, MIN_PRESENT_INTERVAL, 0) |
|
||||
NVDEF(NVC37E, SET_PRESENT_CONTROL, BEGIN_MODE, NON_TEARING));
|
||||
|
||||
PUSH_MTHD(push, NVC37E, SET_CONTEXT_DMA_ISO(0), 0x00000000);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче