xlib: Fixes compiling on linux

configure command line:
meson ../.. -Dglx=xlib -Dosmesa=true

link error:
virgl_screen.c.o: in function `virgl_is_video_format_supported':
/mnt/c/work/xemu/mesa/build/windows-wsl2/../../src/gallium/drivers/virgl/virgl_screen.c:885: undefined reference to `vl_video_buffer_is_format_supported'

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7545

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Ack-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19258>
This commit is contained in:
Yonggang Luo
2022-10-22 14:49:56 +08:00
committed by Marge Bot
parent 4b49241f7d
commit 1cf6b4f205
2 changed files with 6 additions and 1 deletions

View File

@@ -108,6 +108,11 @@ vl_video_buffer_create_ex2(struct pipe_context *pipe,
return NULL;
}
void
vl_video_buffer_destroy(struct pipe_video_buffer *buffer)
{
assert(0);
}
/*
* vl_mpeg12_bitstream stubs

View File

@@ -49,7 +49,7 @@ libgl = shared_library(
link_args : [ld_args_bsymbolic, ld_args_gc_sections, gallium_xlib_ld_args],
link_depends : gallium_xlib_link_depends,
link_with : [
libxlib, libws_xlib, libglapi_static,
libgalliumvl_stub, libxlib, libws_xlib, libglapi_static,
libgallium, libmesa, gallium_xlib_link_with,
],
dependencies : [dep_x11, dep_thread, dep_clock, dep_unwind, driver_swrast, driver_virgl, driver_asahi],