drm/nv50/kms: drop requirement that framebuffer bos be contig up-front
authorBen Skeggs <bskeggs@redhat.com>
Mon, 10 Nov 2014 02:36:44 +0000 (12:36 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 2 Dec 2014 05:44:10 +0000 (15:44 +1000)
We'll move them at pin() time if necessary.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_display.c

index 4a0373fba03b4caedde23a68cb2bff32269bd686..0ea3a88a0dca1fd940ad2feb85acfe34c746c297 100644 (file)
@@ -2350,11 +2350,6 @@ nv50_fb_ctor(struct drm_framebuffer *fb)
        u8 kind = nouveau_bo_tile_layout(nvbo) >> 8;
        u8 tile = nvbo->tile_mode;
 
-       if (nvbo->tile_flags & NOUVEAU_GEM_TILE_NONCONTIG) {
-               NV_ERROR(drm, "framebuffer requires contiguous bo\n");
-               return -EINVAL;
-       }
-
        if (drm->device.info.chipset >= 0xc0)
                tile >>= 4; /* yep.. */