mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 09:30:13 +01:00
virtio/vdrm: add ENABLE_DRM_AMDGPU for c_args
ENABLE_DRM_AMDGPU must be defined when amdgpu_virtio is enabled; otherwise, vdrm and amdgpu_virtio will have different definitions of struct virgl_renderer_capset_drm. As a result, on amdgpu_virtio side, the content of struct vdrm_device will be corrupted. Thanks Honglei Huang <honglei1.huang@amd.com> for pointing out the different definitions of struct virgl_renderer_capset_drm. Cc: mesa-stable Signed-off-by: Trigger Huang <Trigger.Huang@amd.com> Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37023>
This commit is contained in:
parent
6bc70a0e8f
commit
5736280730
1 changed files with 5 additions and 1 deletions
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
inc_virtio_vdrm = include_directories('.')
|
||||
|
||||
libvdrm_c_args = [no_override_init_args]
|
||||
if with_amdgpu_virtio
|
||||
libvdrm_c_args += ['-DENABLE_DRM_AMDGPU']
|
||||
endif
|
||||
libvdrm = static_library(
|
||||
'libvdrm',
|
||||
[
|
||||
|
|
@ -17,7 +21,7 @@ libvdrm = static_library(
|
|||
inc_virtio,
|
||||
inc_virtio_gpu,
|
||||
],
|
||||
c_args : [ no_override_init_args ],
|
||||
c_args : libvdrm_c_args,
|
||||
gnu_symbol_visibility: 'hidden',
|
||||
dependencies: [
|
||||
dep_libdrm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue