Thanks for your work :)
I'm having problems to compile chromium with the right patch.
I'm running Debian Sid, with Chromium 80.0.3987.106 and a NVIDIA GTX 1070
According to the changelog of the package, the vaapi should be enabled from version 78:
chromium (78.0.3904.108-1) unstable; urgency=medium
https://metadata.ftp-master.debian.org/changelogs//main/c/chromium/chromium_80.0.3987.106-1_changelog
-- Michael Gilbert <[email protected]> Wed, 20 Nov 2019 23:46:06 +0000
chromium (78.0.3904.97-1) unstable; urgency=medium
* New upstream security release.
* Enable vaapi (closes: #940074).
* Fix crash during profile manager shutdown.
* Drop libglewmx-dev build dependency (closes: #941050).
The patch seems to be based on the Arch patch for vaapi: https://aur.archlinux.org/packages/chromium-vaapi/?O=0&PP=250
But I couldn't make your vp9 driver to work with this version, instead, I have the following error:
$ chromium --enable-gpu-rasterization --ignore-gpu-blacklist --disable-gpu-driver-workarounds
vdpau_video: NVIDIA VDPAU Driver Shared Library 440.59 Thu Jan 30 00:56:39 UTC 2020
[297340:297340:0218/213906.871609:ERROR:vaapi_wrapper.cc(516)] GetConfigAttributes failed for va_profile VAProfileH264Baseline
[297340:297340:0218/213906.871788:ERROR:vaapi_wrapper.cc(516)] GetConfigAttributes failed for va_profile VAProfileH264Main
[297340:297340:0218/213906.871851:ERROR:vaapi_wrapper.cc(516)] GetConfigAttributes failed for va_profile VAProfileH264High
[297343:297380:0218/213907.045995:ERROR:nss_util.cc(283)] After loading Root Certs, loaded==false: NSS error code: -8018
[297892:46:0218/213918.117493:ERROR:child_process_sandbox_support_impl_linux.cc(79)] FontService unique font name matching request did not receive a response.
Failed to create dedicated X11 display!
vdpau_video: NVIDIA VDPAU Driver Shared Library 440.59 Thu Jan 30 00:56:39 UTC 2020
[297340:297340:0218/213924.289136:ERROR:vaapi_wrapper.cc(2158)] vaCreateSurfaces failed VA error: attribute not supported
[297892:58:0218/213924.290306:ERROR:batching_media_log.cc(26)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"VDA Error 4"}
and the video is played with software decoding.
If I use the Ubuntu deb package provided by saiarcot895 (https://github.com/saiarcot895/chromium-ubuntu-build/) from PPA repository the driver works very well and I get hardware acceleration with your driver.
But since I use Debian, and I have to change some packages of my system to be able to run saiarcot895 Ubuntu package, I think that it is better to compile chromium myself.
My question is if you can share the patch that you used, or point me to the minimum patch necessary to enable it.
The Debian package seems to implement something, but it is missing some for fully enable hardware acceleration with your driver and NVIDIA card.
The chromium compilation takes a lot of time on my machine, and if you could point me to the right package it would save me a lot of time.
The official pach is a bit outdated as well https://chromium-review.googlesource.com/c/chromium/src/+/532294
but if you say that the official patch should be enough I'll try to insert it in my source.
Thanks!