[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 11/20] ui: add an optional get_flags callback to GraphicHwOps
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH 11/20] ui: add an optional get_flags callback to GraphicHwOps |
Date: |
Thu, 4 Feb 2021 09:32:00 +0100 |
On Thu, Feb 04, 2021 at 02:21:02AM +0400, Marc-André Lureau wrote:
> On Wed, Feb 3, 2021 at 7:48 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> > > +static int
> > > +virtio_gpu_get_flags(void *opaque)
> > > +{
> > > + VirtIOGPUBase *g = opaque;
> > > + int flags = GRAPHIC_FLAGS_NONE;
> > > +
> > > + if (virtio_gpu_virgl_enabled(g->conf))
> > > + flags |= GRAPHIC_FLAGS_GL;
> > > +
> > > + if (virtio_gpu_dmabuf_enabled(g->conf))
> > > + flags |= GRAPHIC_FLAGS_DMABUF;
> >
> > fbe6ba76ac01 ui: add an optional get_flags callback to GraphicHwOps
> > ERROR: braces {} are necessary for all arms of this statement
> > #50: FILE: hw/display/virtio-gpu-base.c:123:
> > + if (virtio_gpu_virgl_enabled(g->conf))
> > [...]
> >
> > ERROR: braces {} are necessary for all arms of this statement
> > #53: FILE: hw/display/virtio-gpu-base.c:126:
> > + if (virtio_gpu_dmabuf_enabled(g->conf))
> > [...]
> >
> > total: 2 errors, 0 warnings, 68 lines checked
> >
>
> If you queued the series, do you mind squashing a style fix? Otherwise I
> can resend.
Whatever is easier for you (note there are more codestyle warnings in
following patches, see patchew report).
take care,
Gerd
- [PATCH 04/20] vhost-user-gpu: handle display-info in a callback, (continued)
- [PATCH 04/20] vhost-user-gpu: handle display-info in a callback, marcandre . lureau, 2021/02/02
- [PATCH 05/20] ui: remove extra #ifdef CONFIG_OPENGL, marcandre . lureau, 2021/02/02
- [PATCH 06/20] ui: remove gl_ctx_get_current, marcandre . lureau, 2021/02/02
- [PATCH 07/20] ui: add gd_gl_area_scanout_disable, marcandre . lureau, 2021/02/02
- [PATCH 08/20] ui: annotate DCLOps callback requirements, marcandre . lureau, 2021/02/02
- [PATCH 09/20] ui: remove console_has_gl_dmabuf(), marcandre . lureau, 2021/02/02
- [PATCH 10/20] vhost-user-gpu: add a configuration flag for dmabuf usage, marcandre . lureau, 2021/02/02
- [PATCH 11/20] ui: add an optional get_flags callback to GraphicHwOps, marcandre . lureau, 2021/02/02
- [PATCH 12/20] ui: add a DCLOps callback to check dmabuf support, marcandre . lureau, 2021/02/02
- [PATCH 13/20] ui: check hw requirements during DCL registration, marcandre . lureau, 2021/02/02
- [PATCH 14/20] ui: add qemu_egl_has_dmabuf helper, marcandre . lureau, 2021/02/02
- [PATCH 15/20] ui: check gtk-egl dmabuf support, marcandre . lureau, 2021/02/02
- [PATCH 16/20] ui: add egl dmabuf import to gtkglarea, marcandre . lureau, 2021/02/02
- [PATCH 17/20] virtio-gpu: avoid re-entering cmdq processing, marcandre . lureau, 2021/02/02
- [PATCH 18/20] display/ui: add a callback to indicate GL state is flushed, marcandre . lureau, 2021/02/02
- [PATCH 19/20] chardev: check if the chardev is registered for yanking, marcandre . lureau, 2021/02/02
- [PATCH 20/20] RFC: tests: add some virtio-gpu & vhost-user-gpu acceptance test, marcandre . lureau, 2021/02/02