mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-23 19:14:30 +08:00
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>
This commit is contained in:
parent
b969fa52ba
commit
bd9c5a2016
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user