Skip to content

Commit

Permalink
drm/nouveau: require contiguous bo for framebuffer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maarten Lankhorst authored and Ben Skeggs committed Sep 4, 2013
1 parent b969fa5 commit bd9c5a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/nouveau/nouveau_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bd9c5a2

Please sign in to comment.