aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_evo.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-11 05:05:01 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-10-02 23:12:49 -0400
commit861d21074bbb141b0cc165a61c11f571571cda12 (patch)
treefd5755cab318f77276044a40bcc274a6f8fe1ec1 /drivers/gpu/drm/nouveau/nv50_evo.c
parent0134a97979a0abc1c756b0fe491e074693c2bdf5 (diff)
drm/nouveau/fb: merge fb/vram and port to subdev interfaces
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_evo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_evo.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_evo.c b/drivers/gpu/drm/nouveau/nv50_evo.c
index 5731cb3df67f..7a1424243665 100644
--- a/drivers/gpu/drm/nouveau/nv50_evo.c
+++ b/drivers/gpu/drm/nouveau/nv50_evo.c
@@ -300,24 +300,24 @@ nv50_evo_create(struct drm_device *dev)
300 300
301 /* create some default objects for the scanout memtypes we support */ 301 /* create some default objects for the scanout memtypes we support */
302 ret = nv50_evo_dmaobj_new(disp->master, NvEvoVRAM, 0x0000, 302 ret = nv50_evo_dmaobj_new(disp->master, NvEvoVRAM, 0x0000,
303 0, dev_priv->vram_size, NULL); 303 0, nvfb_vram_size(dev), NULL);
304 if (ret) 304 if (ret)
305 goto err; 305 goto err;
306 306
307 ret = nv50_evo_dmaobj_new(disp->master, NvEvoVRAM_LP, 0x80000000, 307 ret = nv50_evo_dmaobj_new(disp->master, NvEvoVRAM_LP, 0x80000000,
308 0, dev_priv->vram_size, NULL); 308 0, nvfb_vram_size(dev), NULL);
309 if (ret) 309 if (ret)
310 goto err; 310 goto err;
311 311
312 ret = nv50_evo_dmaobj_new(disp->master, NvEvoFB32, 0x80000000 | 312 ret = nv50_evo_dmaobj_new(disp->master, NvEvoFB32, 0x80000000 |
313 (dev_priv->chipset < 0xc0 ? 0x7a00 : 0xfe00), 313 (dev_priv->chipset < 0xc0 ? 0x7a00 : 0xfe00),
314 0, dev_priv->vram_size, NULL); 314 0, nvfb_vram_size(dev), NULL);
315 if (ret) 315 if (ret)
316 goto err; 316 goto err;
317 317
318 ret = nv50_evo_dmaobj_new(disp->master, NvEvoFB16, 0x80000000 | 318 ret = nv50_evo_dmaobj_new(disp->master, NvEvoFB16, 0x80000000 |
319 (dev_priv->chipset < 0xc0 ? 0x7000 : 0xfe00), 319 (dev_priv->chipset < 0xc0 ? 0x7000 : 0xfe00),
320 0, dev_priv->vram_size, NULL); 320 0, nvfb_vram_size(dev), NULL);
321 if (ret) 321 if (ret)
322 goto err; 322 goto err;
323 323
@@ -352,21 +352,21 @@ nv50_evo_create(struct drm_device *dev)
352 goto err; 352 goto err;
353 353
354 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoVRAM_LP, 0x80000000, 354 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoVRAM_LP, 0x80000000,
355 0, dev_priv->vram_size, NULL); 355 0, nvfb_vram_size(dev), NULL);
356 if (ret) 356 if (ret)
357 goto err; 357 goto err;
358 358
359 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoFB32, 0x80000000 | 359 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoFB32, 0x80000000 |
360 (dev_priv->chipset < 0xc0 ? 360 (dev_priv->chipset < 0xc0 ?
361 0x7a00 : 0xfe00), 361 0x7a00 : 0xfe00),
362 0, dev_priv->vram_size, NULL); 362 0, nvfb_vram_size(dev), NULL);
363 if (ret) 363 if (ret)
364 goto err; 364 goto err;
365 365
366 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoFB16, 0x80000000 | 366 ret = nv50_evo_dmaobj_new(dispc->sync, NvEvoFB16, 0x80000000 |
367 (dev_priv->chipset < 0xc0 ? 367 (dev_priv->chipset < 0xc0 ?
368 0x7000 : 0xfe00), 368 0x7000 : 0xfe00),
369 0, dev_priv->vram_size, NULL); 369 0, nvfb_vram_size(dev), NULL);
370 if (ret) 370 if (ret)
371 goto err; 371 goto err;
372 372