mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
build: use a drm_fourcc header check for vaapi on gl
The underlying interop only needs the DRM fourcc defined in the header. Co-authored-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
committed by
Kacper Michajłow
co-authored by
Kacper Michajłow
parent
e88864aef3
commit
a9dccf22a1
+2
-1
@@ -1455,8 +1455,9 @@ if features['vaapi']
|
||||
'video/out/hwdec/dmabuf_interop_pl.c')
|
||||
endif
|
||||
|
||||
features += {'dmabuf-interop-gl': features['egl'] and features['drm']}
|
||||
features += {'dmabuf-interop-gl': features['egl'] and drm.found()}
|
||||
if features['dmabuf-interop-gl']
|
||||
dependencies += drm.partial_dependency(includes: true, compile_args: true)
|
||||
sources += files('video/out/hwdec/dmabuf_interop_gl.c')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user