From: Daniel Vetter Date: Wed, 9 Oct 2013 19:55:33 +0000 (+0200) Subject: drm/i915: check gem bo size when creating framebuffers X-Git-Tag: v3.13-rc1~76^2~68^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53155c0a5949d5cc3bd434d838e5b0c6e0542f9b;p=pandora-kernel.git 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. v3: Fix tile height on gen2, spotted by Ville. Cc: Ville Syrjälä Requested-by: Chris Wilson Cc: Chris Wilson Reviewed-by: Ville Syrjälä Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed