]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/nouveau/kms/nv50-: use NVIDIA's headers for core wndw_owner()
authorBen Skeggs <bskeggs@redhat.com>
Sat, 20 Jun 2020 07:59:39 +0000 (17:59 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:51:01 +0000 (18:51 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/corec37d.c

index 796e847ca8747ec0bf11f5c7498d70f3f50bcc44..9035d3ab062c4619e10714f03cb83d1d0d6980bb 100644 (file)
@@ -40,8 +40,10 @@ corec37d_wndw_owner(struct nv50_core *core)
        if ((ret = PUSH_WAIT(push, windows * 2)))
                return ret;
 
-       for (i = 0; i < windows; i++)
-               PUSH_NVSQ(push, NVC37D, 0x1000 + (i * 0x080), i >> 1);
+       for (i = 0; i < windows; i++) {
+               PUSH_MTHD(push, NVC37D, WINDOW_SET_CONTROL(i),
+                         NVDEF(NVC37D, WINDOW_SET_CONTROL, OWNER, HEAD(i >> 1)));
+       }
 
        return 0;
 }