aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-08-07 11:11:27 -0400
committerBen Skeggs <bskeggs@redhat.com>2013-09-03 23:46:28 -0400
commitbd9c5a2016307164c419c5e24a46921c10e620a0 (patch)
treebeb2c3da8d3241f68a383e4094d12358054e3e06
parentb969fa52ba725adf83761d579a300b1107f84478 (diff)
drm/nouveau: require contiguous bo for framebuffer
This was already required before, but no check in the kernel was done to enforce it. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_display.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 77ffded68837..d2712e6e5d31 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -107,6 +107,11 @@ nouveau_framebuffer_init(struct drm_device *dev,
107 return -EINVAL; 107 return -EINVAL;
108 } 108 }
109 109
110 if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG) {
111 NV_ERROR(drm, "framebuffer requires contiguous bo\n");
112 return -EINVAL;
113 }
114
110 if (nv_device(drm->device)->chipset == 0x50) 115 if (nv_device(drm->device)->chipset == 0x50)
111 nv_fb->r_format |= (tile_flags << 8); 116 nv_fb->r_format |= (tile_flags << 8);
112 117