diff options
author | Marc-André Lureau | 2021-02-04 11:52:22 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-02-04 15:58:54 +0100 |
commit | ff64d44fb8f6636ece3064f86babe48e3807533d (patch) | |
tree | dd7de7a2fa18b732f0300ffac213971c220f7b75 /hw/display | |
parent | ui: remove console_has_gl_dmabuf() (diff) | |
download | qemu-ff64d44fb8f6636ece3064f86babe48e3807533d.tar.gz qemu-ff64d44fb8f6636ece3064f86babe48e3807533d.tar.xz qemu-ff64d44fb8f6636ece3064f86babe48e3807533d.zip |
vhost-user-gpu: add a configuration flag for dmabuf usage
Let's inform VirtioGPUBase that vhost-user-gpu require DMABUF messages.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210204105232.834642-11-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display')
-rw-r--r-- | hw/display/vhost-user-gpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/display/vhost-user-gpu.c b/hw/display/vhost-user-gpu.c index dd587436ff..b7bde9feb6 100644 --- a/hw/display/vhost-user-gpu.c +++ b/hw/display/vhost-user-gpu.c @@ -547,6 +547,8 @@ vhost_user_gpu_device_realize(DeviceState *qdev, Error **errp) return; } + /* existing backend may send DMABUF, so let's add that requirement */ + g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_DMABUF_ENABLED; if (virtio_has_feature(g->vhost->dev.features, VIRTIO_GPU_F_VIRGL)) { g->parent_obj.conf.flags |= 1 << VIRTIO_GPU_FLAG_VIRGL_ENABLED; } |