[PATCH v3 02/22] drm/fb-cma-helper: Use drm_gem_framebuffer_helper
Eric Anholt
eric at anholt.net
Wed Aug 16 17:33:19 UTC 2017
Noralf Trønnes <noralf at tronnes.org> writes:
> Use the new drm_gem_framebuffer_helper who's code was copied
> from this helper.
>
> Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
> ---
> drivers/gpu/drm/drm_fb_cma_helper.c | 181 ++++++------------------------------
> 1 file changed, 30 insertions(+), 151 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c
> index ade319d..e1befee 100644
> --- a/drivers/gpu/drm/drm_fb_cma_helper.c
> +++ b/drivers/gpu/drm/drm_fb_cma_helper.c
> @@ -250,12 +143,14 @@ EXPORT_SYMBOL_GPL(drm_fb_cma_create);
> struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb,
> unsigned int plane)
> {
> - struct drm_fb_cma *fb_cma = to_fb_cma(fb);
> + struct drm_gem_object *gem;
>
> - if (plane >= 4)
> + gem = drm_gem_fb_get_obj(fb, plane);
> + if (!gem)
> return NULL;
>
> - return fb_cma->obj[plane];
> + return to_drm_gem_cma_obj(gem);
> +
> }
Stray whitespace. Other than that,
Reviewed-by: Eric Anholt <eric at anholt.net>
Feel free to push vc4 and pl111 with this patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170816/3f890c1a/attachment.sig>
More information about the dri-devel
mailing list