aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2016-10-17 22:41:19 +0000
committerArchit Taneja <[email protected]>2016-10-18 09:53:53 +0000
commit6c5d064a2dd9ecda0716f66b0586349179036ca4 (patch)
tree602f87c180df88b0a01666cc2eee6a0e83478c1f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm: radeon: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() (diff)
downloadkernel-6c5d064a2dd9ecda0716f66b0586349179036ca4.tar.gz
kernel-6c5d064a2dd9ecda0716f66b0586349179036ca4.zip
drm: vmwgfx: Replace drm_fb_get_bpp_depth() with drm_format_info()
The driver is the last users of the drm_fb_get_bpp_depth() function. It should ideally be converted to use struct drm_mode_fb_cmd2 instead of the legacy struct drm_mode_fb_cmd internally, but that will require broad changes across the code base. As a first step, replace drm_fb_get_bpp_depth() with drm_format_info() in order to stop exporting the function to drivers. The new DRM_ERROR() message comes from the vmw_create_dmabuf_proxy(), vmw_kms_new_framebuffer_surface() and vmw_kms_new_framebuffer_dmabuf() functions that currently print an error if the pixel format is unsupported. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Sinclair Yeh <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Archit Taneja <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-12-git-send-email-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions