aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_fbcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_fbcon.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_fbcon.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_fbcon.c b/drivers/gpu/drm/nouveau/nv50_fbcon.c
index 52068a0910dc..394c89abcc97 100644
--- a/drivers/gpu/drm/nouveau/nv50_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nv50_fbcon.c
@@ -154,7 +154,6 @@ nv50_fbcon_accel_init(struct fb_info *info)
154 struct drm_device *dev = nfbdev->dev; 154 struct drm_device *dev = nfbdev->dev;
155 struct nouveau_drm *drm = nouveau_drm(dev); 155 struct nouveau_drm *drm = nouveau_drm(dev);
156 struct nouveau_channel *chan = drm->channel; 156 struct nouveau_channel *chan = drm->channel;
157 struct nouveau_object *object;
158 int ret, format; 157 int ret, format;
159 158
160 switch (info->var.bits_per_pixel) { 159 switch (info->var.bits_per_pixel) {
@@ -184,8 +183,8 @@ nv50_fbcon_accel_init(struct fb_info *info)
184 return -EINVAL; 183 return -EINVAL;
185 } 184 }
186 185
187 ret = nouveau_object_new(nv_object(chan->cli), NVDRM_CHAN, Nv2D, 186 ret = nvif_object_init(chan->object, NULL, 0x502d, 0x502d, NULL, 0,
188 0x502d, NULL, 0, &object); 187 &nfbdev->twod);
189 if (ret) 188 if (ret)
190 return ret; 189 return ret;
191 190
@@ -196,11 +195,11 @@ nv50_fbcon_accel_init(struct fb_info *info)
196 } 195 }
197 196
198 BEGIN_NV04(chan, NvSub2D, 0x0000, 1); 197 BEGIN_NV04(chan, NvSub2D, 0x0000, 1);
199 OUT_RING(chan, Nv2D); 198 OUT_RING(chan, nfbdev->twod.handle);
200 BEGIN_NV04(chan, NvSub2D, 0x0184, 3); 199 BEGIN_NV04(chan, NvSub2D, 0x0184, 3);
201 OUT_RING(chan, NvDmaFB); 200 OUT_RING(chan, chan->vram.handle);
202 OUT_RING(chan, NvDmaFB); 201 OUT_RING(chan, chan->vram.handle);
203 OUT_RING(chan, NvDmaFB); 202 OUT_RING(chan, chan->vram.handle);
204 BEGIN_NV04(chan, NvSub2D, 0x0290, 1); 203 BEGIN_NV04(chan, NvSub2D, 0x0290, 1);
205 OUT_RING(chan, 0); 204 OUT_RING(chan, 0);
206 BEGIN_NV04(chan, NvSub2D, 0x0888, 1); 205 BEGIN_NV04(chan, NvSub2D, 0x0888, 1);