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:
Dudemanguy
2025-03-26 15:31:08 +01:00
committed by Kacper Michajłow
co-authored by Kacper Michajłow
parent e88864aef3
commit a9dccf22a1
+2 -1
View File
@@ -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