Commit ca31b0c0 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50-: use NVIDIA's headers for core or_get_caps()

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent 344c2e5a
...@@ -45,10 +45,10 @@ sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl, ...@@ -45,10 +45,10 @@ sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
static void static void
sor907d_get_caps(struct nv50_disp *disp, struct nouveau_encoder *outp, int or) sor907d_get_caps(struct nv50_disp *disp, struct nouveau_encoder *outp, int or)
{ {
struct nouveau_bo *bo = disp->sync;
const int off = or * 2; const int off = or * 2;
u32 tmp = nouveau_bo_rd32(disp->sync, 0x000014 + off); outp->caps.dp_interlace =
NVBO_RV32(bo, off, NV907D_CORE_NOTIFIER_3, CAPABILITIES_CAP_SOR0_20, DP_INTERLACE);
outp->caps.dp_interlace = !!(tmp & 0x04000000);
} }
const struct nv50_outp_func const struct nv50_outp_func
......
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