mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
virtio-gpu: Support Venus context
Request Venus when initializing VirGL and if venus=true flag is set for virtio-gpu-gl device. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> Signed-off-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Message-Id: <20241024210311.118220-14-dmitry.osipenko@collabora.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
This commit is contained in:
parent
1333fd0693
commit
94d0ea1c19
5 changed files with 49 additions and 4 deletions
|
@ -97,6 +97,7 @@ enum virtio_gpu_base_conf_flags {
|
|||
VIRTIO_GPU_FLAG_BLOB_ENABLED,
|
||||
VIRTIO_GPU_FLAG_CONTEXT_INIT_ENABLED,
|
||||
VIRTIO_GPU_FLAG_RUTABAGA_ENABLED,
|
||||
VIRTIO_GPU_FLAG_VENUS_ENABLED,
|
||||
};
|
||||
|
||||
#define virtio_gpu_virgl_enabled(_cfg) \
|
||||
|
@ -115,6 +116,8 @@ enum virtio_gpu_base_conf_flags {
|
|||
(_cfg.flags & (1 << VIRTIO_GPU_FLAG_RUTABAGA_ENABLED))
|
||||
#define virtio_gpu_hostmem_enabled(_cfg) \
|
||||
(_cfg.hostmem > 0)
|
||||
#define virtio_gpu_venus_enabled(_cfg) \
|
||||
(_cfg.flags & (1 << VIRTIO_GPU_FLAG_VENUS_ENABLED))
|
||||
|
||||
struct virtio_gpu_base_conf {
|
||||
uint32_t max_outputs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue