mirror of
https://gitlab.com/qemu-project/qemu.git
synced 2026-08-26 22:23:12 -04:00
hw/display/virtio-gpu: Initialize blob mapping for ATTACH_BACKING
It is necessary for blob cursor and scanout.
Fixes: e0933d91b1 ("virtio-gpu: Add virtio_gpu_resource_create_blob")
Signed-off-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260725-backing-v1-1-5b584bf7df5a@rsg.ci.i.u-tokyo.ac.jp>
This commit is contained in:
parent
0fa3e1823b
commit
4ae1c5c7d6
1 changed files with 4 additions and 0 deletions
|
|
@ -992,6 +992,10 @@ virtio_gpu_resource_attach_backing(VirtIOGPU *g,
|
|||
cmd->error = VIRTIO_GPU_RESP_ERR_UNSPEC;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!res->image) {
|
||||
virtio_gpu_init_udmabuf(res);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue