elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.17k stars 53 forks source link

Unbreak build on FreeBSD #220

Closed jbeich closed 6 months ago

jbeich commented 1 year ago

Runtime is untested as I lack an NVIDIA GPU. See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264027

elFarto commented 1 year ago

Thanks for the patch, however I'm not entirely certain this driver can actually work on freebsd, since it relies on DMA-BUF, which is a Linux only feature, AFAIK.

Without having someone test this patch on freebsd with NVIDIA hardware, I'm not sure it's worth accepting this patch in.

jbeich commented 1 year ago

relies on DMA-BUF, which is a Linux only feature, AFAIK.

DragonFly, FreeBSD (also), NetBSD reimplemented DMA-BUF under BSD license when porting MIT-licensed Linux DRM drivers. DMA-BUF with NVIDIA on FreeBSD requires nvidia-drm.ko.

elFarto commented 6 months ago

Thanks for the patch. I've decided to merge it in as it's fairly self contained. Not sure it'll actually work though.