aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2016-10-17 22:41:16 +0000
committerArchit Taneja <[email protected]>2016-10-18 09:52:38 +0000
commite0f9a4ab49a107c011f3bda401f747fbb5f29e7a (patch)
tree6780b5d01eb048f101166ef43a6e1cd323910a4d /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm: cirrus: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() (diff)
downloadkernel-e0f9a4ab49a107c011f3bda401f747fbb5f29e7a.tar.gz
kernel-e0f9a4ab49a107c011f3bda401f747fbb5f29e7a.zip
drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info()
The driver uses drm_fb_get_bpp_depth() to check whether it can support the format requested by userspace when creating a framebuffer. This isn't the right API, as it doesn't differentiate between RGB formats other than on a depth and bpp basis. Fixing this requires non trivial changes to the drivers internals. As a first step, replace usage of the drm_fb_get_bpp_depth() function with an equivalent check based on drm_format_info(). This is part of a wider effort to remove usage of the drm_fb_get_bpp_depth() function in drivers. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Archit Taneja <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/1476744081-24485-9-git-send-email-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions