config BR2_PACKAGE_INTEL_MEDIADRIVER
	bool "intel-mediadriver"
	depends on BR2_x86_64
	depends on !BR2_STATIC_LIBS # mesa3d, libva
	depends on BR2_INSTALL_LIBSTDCPP # intel-gmmlib, mesa3d
	depends on BR2_TOOLCHAIN_HAS_SYNC_1 # mesa3d
	depends on BR2_TOOLCHAIN_HAS_THREADS # libva
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # mesa3d
	select BR2_PACKAGE_INTEL_GMMLIB
	select BR2_PACKAGE_LIBPCIACCESS
	select BR2_PACKAGE_LIBVA
	select BR2_PACKAGE_MESA3D
	help
	  The Intel(R) Media Driver for VAAPI is a new VA-API (Video
	  Acceleration API) user mode driver supporting hardware
	  accelerated decoding, encoding, and video post processing for
	  GEN based graphics hardware.

	  https://github.com/intel/media-driver

if BR2_PACKAGE_INTEL_MEDIADRIVER

config BR2_PACKAGE_INTEL_MEDIADRIVER_GEN8
	bool "Gen8 support"
	default y
	help
	  Enable support for Gen8 GPUs (Coffee Lake)

endif # BR2_PACKAGE_INTEL_MEDIADRIVER

comment "intel-mediadriver needs a toolchain w/ dynamic library, C++, NPTL"
	depends on BR2_x86_64 && BR2_TOOLCHAIN_HAS_SYNC_1
	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS_NPTL
