[PATCH 4/6] drm/cma-helper: Support DRM_MODE_DUMB_KERNEL_MAP flag
Geert Uytterhoeven
geert at linux-m68k.org
Tue Oct 22 11:40:36 UTC 2019
Hi Laurent,
On Tue, Oct 22, 2019 at 1:30 PM Laurent Pinchart
<laurent.pinchart at ideasonboard.com> wrote:
> On Mon, Oct 21, 2019 at 04:45:48PM -0500, Rob Herring wrote:
> > --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
> > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
> > @@ -419,6 +419,7 @@ int rockchip_gem_dumb_create(struct drm_file *file_priv,
> > * align to 64 bytes since Mali requires it.
> > */
> > args->pitch = ALIGN(min_pitch, 64);
> > + args->flags = DRM_MODE_DUMB_KERNEL_MAP;
> > args->size = args->pitch * args->height;
>
> My OCD gets triggered by flags appearing in the middle here while it is
> at the end in other drivers :-)
... while "flags" appears before "pitch" and "size" in the actual struct
definition... Aaarghl ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the dri-devel
mailing list