drm/nouveau: require contiguous bo for framebuffer
[deliverable/linux.git] / drivers / gpu / drm / nouveau / nouveau_display.c
index 77ffded688374f4e78518ed677d1dc059ecc3809..d2712e6e5d313030baeaa4873a1553def7bffe93 100644 (file)
@@ -107,6 +107,11 @@ nouveau_framebuffer_init(struct drm_device *dev,
                         return -EINVAL;
                }
 
+               if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG) {
+                       NV_ERROR(drm, "framebuffer requires contiguous bo\n");
+                       return -EINVAL;
+               }
+
                if (nv_device(drm->device)->chipset == 0x50)
                        nv_fb->r_format |= (tile_flags << 8);
 
This page took 0.059631 seconds and 5 git commands to generate.