virgl: link VA driver with build-id

Without a build-id the virgl VAAPI driver segfaults trying to access the
NULL returned by the build-id header retriever used for disk caches

Fixes: d6db4d2e08 ("virgl: Add simple disk cache")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19885>
This commit is contained in:
Alex Denes 2022-11-20 19:33:50 +00:00 committed by Marge Bot
parent 76cc85ebb9
commit 16a66a67ef

View file

@ -62,7 +62,7 @@ if host_machine.system() == 'windows'
libva_gallium = shared_library(
'vaon12_drv_video',
'target.c',
link_args : [va_link_args, ld_args_gc_sections],
link_args : [va_link_args, ld_args_gc_sections, ld_args_build_id],
vs_module_defs : vaon12_def,
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers, inc_gallium_winsys_sw
@ -80,7 +80,7 @@ else
'gallium_drv_video',
'target.c',
gnu_symbol_visibility : 'hidden',
link_args : [va_link_args, ld_args_gc_sections],
link_args : [va_link_args, ld_args_gc_sections, ld_args_build_id],
include_directories : [
inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux, inc_util, inc_gallium_winsys, inc_gallium_drivers,
],