Message ID | 20210727170510.2116383-7-antonio.caggiano@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | virtio-gpu: Support Venus Vulkan driver | expand |
On 27/07/21 19:05, Antonio Caggiano wrote: > diff --git a/meson.build b/meson.build > index f2e148eaf9..31b65050b7 100644 > --- a/meson.build > +++ b/meson.build > @@ -483,6 +483,7 @@ if not get_option('virglrenderer').auto() or have_system > method: 'pkg-config', > required: get_option('virglrenderer'), > kwargs: static_kwargs) > + add_project_arguments('-DVIRGL_RENDERER_UNSTABLE_APIS', language : 'c') Can you instead use declare_dependency to make the option part of the virgl dependency? Thanks, Paolo
diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c index beb4b7d106..ea903172dd 100644 --- a/hw/display/virtio-gpu-virgl.c +++ b/hw/display/virtio-gpu-virgl.c @@ -621,7 +621,7 @@ int virtio_gpu_virgl_init(VirtIOGPU *g) { int ret; - ret = virgl_renderer_init(g, 0, &virtio_gpu_3d_cbs); + ret = virgl_renderer_init(g, VIRGL_RENDERER_VENUS, &virtio_gpu_3d_cbs); if (ret != 0) { return ret; } diff --git a/meson.build b/meson.build index f2e148eaf9..31b65050b7 100644 --- a/meson.build +++ b/meson.build @@ -483,6 +483,7 @@ if not get_option('virglrenderer').auto() or have_system method: 'pkg-config', required: get_option('virglrenderer'), kwargs: static_kwargs) + add_project_arguments('-DVIRGL_RENDERER_UNSTABLE_APIS', language : 'c') endif curl = not_found if not get_option('curl').auto() or have_block
Enable VirGL unstable APIs and request Venus when initializing VirGL. Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com> --- hw/display/virtio-gpu-virgl.c | 2 +- meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)