[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 12/14] virtio-gpu: Handle resource blob commands
From: |
Alex Bennée |
Subject: |
Re: [PATCH v14 12/14] virtio-gpu: Handle resource blob commands |
Date: |
Wed, 19 Jun 2024 16:27:06 +0100 |
Dmitry Osipenko <dmitry.osipenko@collabora.com> writes:
> From: Antonio Caggiano <antonio.caggiano@collabora.com>
>
> Support BLOB resources creation, mapping and unmapping by calling the
> new stable virglrenderer 0.10 interface. Only enabled when available and
> via the blob config. E.g. -device virtio-vga-gl,blob=true
>
<snip>
>
> #if VIRGL_VERSION_MAJOR >= 1
> +static void virgl_cmd_resource_create_blob(VirtIOGPU *g,
> + struct virtio_gpu_ctrl_command
> *cmd)
> +{
> + struct virgl_renderer_resource_create_blob_args virgl_args = { 0 };
> + g_autofree struct virtio_gpu_virgl_resource *res;
Newer compilers rightly complain that g_free may be called on an
uninitialised value (if we early return). Setting to NULL should be
enough here.
<snip>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
- [PATCH v14 06/14] virtio-gpu: Use pkgconfig version to decide which virgl features are available, (continued)
- [PATCH v14 06/14] virtio-gpu: Use pkgconfig version to decide which virgl features are available, Dmitry Osipenko, 2024/06/15
- [PATCH v14 07/14] virtio-gpu: Support context-init feature with virglrenderer, Dmitry Osipenko, 2024/06/15
- [PATCH v14 08/14] virtio-gpu: Don't require udmabuf when blobs and virgl are enabled, Dmitry Osipenko, 2024/06/15
- [PATCH v14 09/14] virtio-gpu: Add virgl resource management, Dmitry Osipenko, 2024/06/15
- [PATCH v14 10/14] virtio-gpu: Support blob scanout using dmabuf fd, Dmitry Osipenko, 2024/06/15
- [PATCH v14 11/14] virtio-gpu: Support suspension of commands processing, Dmitry Osipenko, 2024/06/15
- [PATCH v14 12/14] virtio-gpu: Handle resource blob commands, Dmitry Osipenko, 2024/06/15
- [PATCH v14 13/14] virtio-gpu: Register capsets dynamically, Dmitry Osipenko, 2024/06/15
- [PATCH v14 14/14] virtio-gpu: Support Venus context, Dmitry Osipenko, 2024/06/15
- Re: [PATCH v14 00/14] Support blob memory and venus on qemu, Alex Bennée, 2024/06/19