]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: check gem bo size when creating framebuffers
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Oct 2013 19:23:54 +0000 (21:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 16 Oct 2013 20:07:00 +0000 (22:07 +0200)
commitde568bf91dbe255dfc8aae49736f4071015a9201
tree99ca063667340e93f5d8e244b6d436a8ea43fc65
parentaa5f8021811aede2e40aa715c55fbd87d945a443
drm/i915: check gem bo size when creating framebuffers

It's better to catch such fallout early, and this way we can rely on
the checking done by the drm core on fb->heigh/width at modeset time.

If we ever support planar formats on intel we might want to look into
a common helper to do all this, but for now this is good enough.

v2: Take tiling into account, requested by Ville.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Requested-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c