diff options
| author | Ville Syrjälä <[email protected]> | 2017-11-01 18:35:33 +0000 |
|---|---|---|
| committer | Gustavo Padovan <[email protected]> | 2017-11-02 13:10:49 +0000 |
| commit | 0338f0d0d70a26adc2236148bb5a78f1fa8c7f99 (patch) | |
| tree | 14a36e1cfe507d9a4b6accdf6a3d8323730e4e3e /drivers/gpu/drm/drm_framebuffer.c | |
| parent | drm/drm_mm.h: Fix the name of the referenced function in comment (diff) | |
| download | kernel-0338f0d0d70a26adc2236148bb5a78f1fa8c7f99.tar.gz kernel-0338f0d0d70a26adc2236148bb5a78f1fa8c7f99.zip | |
drm: Print the fb dimensions when the src coord check fails
When debugging bad plane source coordinates it helps to have an
idea of what the framebuffer dimensions are.
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
| -rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index af279844d7ce..40e6565105ac 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -78,11 +78,12 @@ int drm_framebuffer_check_src_coords(uint32_t src_x, uint32_t src_y, src_h > fb_height || src_y > fb_height - src_h) { DRM_DEBUG_KMS("Invalid source coordinates " - "%u.%06ux%u.%06u+%u.%06u+%u.%06u\n", + "%u.%06ux%u.%06u+%u.%06u+%u.%06u (fb %ux%u)\n", src_w >> 16, ((src_w & 0xffff) * 15625) >> 10, src_h >> 16, ((src_h & 0xffff) * 15625) >> 10, src_x >> 16, ((src_x & 0xffff) * 15625) >> 10, - src_y >> 16, ((src_y & 0xffff) * 15625) >> 10); + src_y >> 16, ((src_y & 0xffff) * 15625) >> 10, + fb->width, fb->height); return -ENOSPC; } |
