aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/dispnv04/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv04/overlay.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv04/overlay.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/overlay.c b/drivers/gpu/drm/nouveau/dispnv04/overlay.c
index 6275c270df25..5319f2a7f24d 100644
--- a/drivers/gpu/drm/nouveau/dispnv04/overlay.c
+++ b/drivers/gpu/drm/nouveau/dispnv04/overlay.c
@@ -97,7 +97,7 @@ nv10_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
97 uint32_t src_w, uint32_t src_h) 97 uint32_t src_w, uint32_t src_h)
98{ 98{
99 struct nouveau_drm *drm = nouveau_drm(plane->dev); 99 struct nouveau_drm *drm = nouveau_drm(plane->dev);
100 struct nvif_object *dev = &drm->device.object; 100 struct nvif_object *dev = &drm->client.device.object;
101 struct nouveau_plane *nv_plane = 101 struct nouveau_plane *nv_plane =
102 container_of(plane, struct nouveau_plane, base); 102 container_of(plane, struct nouveau_plane, base);
103 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb); 103 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb);
@@ -119,7 +119,7 @@ nv10_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
119 if (format > 0xffff) 119 if (format > 0xffff)
120 return -ERANGE; 120 return -ERANGE;
121 121
122 if (drm->device.info.chipset >= 0x30) { 122 if (drm->client.device.info.chipset >= 0x30) {
123 if (crtc_w < (src_w >> 1) || crtc_h < (src_h >> 1)) 123 if (crtc_w < (src_w >> 1) || crtc_h < (src_h >> 1))
124 return -ERANGE; 124 return -ERANGE;
125 } else { 125 } else {
@@ -174,7 +174,7 @@ nv10_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
174static int 174static int
175nv10_disable_plane(struct drm_plane *plane) 175nv10_disable_plane(struct drm_plane *plane)
176{ 176{
177 struct nvif_object *dev = &nouveau_drm(plane->dev)->device.object; 177 struct nvif_object *dev = &nouveau_drm(plane->dev)->client.device.object;
178 struct nouveau_plane *nv_plane = 178 struct nouveau_plane *nv_plane =
179 container_of(plane, struct nouveau_plane, base); 179 container_of(plane, struct nouveau_plane, base);
180 180
@@ -198,7 +198,7 @@ nv_destroy_plane(struct drm_plane *plane)
198static void 198static void
199nv10_set_params(struct nouveau_plane *plane) 199nv10_set_params(struct nouveau_plane *plane)
200{ 200{
201 struct nvif_object *dev = &nouveau_drm(plane->base.dev)->device.object; 201 struct nvif_object *dev = &nouveau_drm(plane->base.dev)->client.device.object;
202 u32 luma = (plane->brightness - 512) << 16 | plane->contrast; 202 u32 luma = (plane->brightness - 512) << 16 | plane->contrast;
203 u32 chroma = ((sin_mul(plane->hue, plane->saturation) & 0xffff) << 16) | 203 u32 chroma = ((sin_mul(plane->hue, plane->saturation) & 0xffff) << 16) |
204 (cos_mul(plane->hue, plane->saturation) & 0xffff); 204 (cos_mul(plane->hue, plane->saturation) & 0xffff);
@@ -268,7 +268,7 @@ nv10_overlay_init(struct drm_device *device)
268 if (!plane) 268 if (!plane)
269 return; 269 return;
270 270
271 switch (drm->device.info.chipset) { 271 switch (drm->client.device.info.chipset) {
272 case 0x10: 272 case 0x10:
273 case 0x11: 273 case 0x11:
274 case 0x15: 274 case 0x15:
@@ -347,7 +347,7 @@ nv04_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
347 uint32_t src_x, uint32_t src_y, 347 uint32_t src_x, uint32_t src_y,
348 uint32_t src_w, uint32_t src_h) 348 uint32_t src_w, uint32_t src_h)
349{ 349{
350 struct nvif_object *dev = &nouveau_drm(plane->dev)->device.object; 350 struct nvif_object *dev = &nouveau_drm(plane->dev)->client.device.object;
351 struct nouveau_plane *nv_plane = 351 struct nouveau_plane *nv_plane =
352 container_of(plane, struct nouveau_plane, base); 352 container_of(plane, struct nouveau_plane, base);
353 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb); 353 struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb);
@@ -427,7 +427,7 @@ nv04_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
427static int 427static int
428nv04_disable_plane(struct drm_plane *plane) 428nv04_disable_plane(struct drm_plane *plane)
429{ 429{
430 struct nvif_object *dev = &nouveau_drm(plane->dev)->device.object; 430 struct nvif_object *dev = &nouveau_drm(plane->dev)->client.device.object;
431 struct nouveau_plane *nv_plane = 431 struct nouveau_plane *nv_plane =
432 container_of(plane, struct nouveau_plane, base); 432 container_of(plane, struct nouveau_plane, base);
433 433
@@ -495,7 +495,7 @@ err:
495void 495void
496nouveau_overlay_init(struct drm_device *device) 496nouveau_overlay_init(struct drm_device *device)
497{ 497{
498 struct nvif_device *dev = &nouveau_drm(device)->device; 498 struct nvif_device *dev = &nouveau_drm(device)->client.device;
499 if (dev->info.chipset < 0x10) 499 if (dev->info.chipset < 0x10)
500 nv04_overlay_init(device); 500 nv04_overlay_init(device);
501 else if (dev->info.chipset <= 0x40) 501 else if (dev->info.chipset <= 0x40)