Skip to contentSkip to conversation

drm/nouveau: require contiguous bo for framebuffer

PATCH New Maarten Lankhorst 1 participant 1 message Aug 7, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau: require contiguous bo for framebuffer

This was already required before, but no check in the kernel was done to enforce it.

---

drivers/gpu/drm/nouveau/nouveau_display.c +5 -0
index 73cf240..ddb065c 100644
@@ -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);