aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_fbcon.c
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2010-01-26 09:00:42 -0500
committerBen Skeggs <bskeggs@redhat.com>2010-02-08 21:47:59 -0500
commita32ed69d7bb3cd259d813d71281d62993b9a70fd (patch)
tree522ba514c640c2eb75037d50cce33f4e5914766b /drivers/gpu/drm/nouveau/nouveau_fbcon.c
parentf927b8907cb25943d6275d4ea036c065b8fd3f33 (diff)
drm/nouveau: Add module options to disable acceleration.
noaccel=1 disables all acceleration and doesn't even attempt initialising PGRAPH+PFIFO, nofbaccel=1 only makes fbcon unaccelerated. Signed-off-by: Marcin Koƛcielnicki <koriakin@0x04.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_fbcon.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_fbcon.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
index 0b05c869e0e..eddadaccc28 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c
@@ -267,8 +267,12 @@ nouveau_fbcon_create(struct drm_device *dev, uint32_t fb_width,
267 dev_priv->fbdev_info = info; 267 dev_priv->fbdev_info = info;
268 268
269 strcpy(info->fix.id, "nouveaufb"); 269 strcpy(info->fix.id, "nouveaufb");
270 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_COPYAREA | 270 if (nouveau_nofbaccel)
271 FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_IMAGEBLIT; 271 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_DISABLED;
272 else
273 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_COPYAREA |
274 FBINFO_HWACCEL_FILLRECT |
275 FBINFO_HWACCEL_IMAGEBLIT;
272 info->fbops = &nouveau_fbcon_ops; 276 info->fbops = &nouveau_fbcon_ops;
273 info->fix.smem_start = dev->mode_config.fb_base + nvbo->bo.offset - 277 info->fix.smem_start = dev->mode_config.fb_base + nvbo->bo.offset -
274 dev_priv->vm_vram_base; 278 dev_priv->vm_vram_base;
@@ -316,7 +320,7 @@ nouveau_fbcon_create(struct drm_device *dev, uint32_t fb_width,
316 par->nouveau_fb = nouveau_fb; 320 par->nouveau_fb = nouveau_fb;
317 par->dev = dev; 321 par->dev = dev;
318 322
319 if (dev_priv->channel) { 323 if (dev_priv->channel && !nouveau_nofbaccel) {
320 switch (dev_priv->card_type) { 324 switch (dev_priv->card_type) {
321 case NV_50: 325 case NV_50:
322 nv50_fbcon_accel_init(info); 326 nv50_fbcon_accel_init(info);