drm: print framebuffer size when plane check fail

Change-Id: Id51f25e407953cf123444cf961da8a0f8f5745e8
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao 2017-02-24 10:19:27 +08:00
parent 31b04cfa69
commit d199b70013

View File

@ -752,6 +752,8 @@ static int drm_atomic_plane_check(struct drm_plane *plane,
state->src_h >> 16, ((state->src_h & 0xffff) * 15625) >> 10,
state->src_x >> 16, ((state->src_x & 0xffff) * 15625) >> 10,
state->src_y >> 16, ((state->src_y & 0xffff) * 15625) >> 10);
DRM_DEBUG_ATOMIC("framebuffer size[%dx%d]\n",
fb_width >> 16, fb_height >> 16);
return -ENOSPC;
}