Open LeviMarvin opened 5 months ago
Unfortunately I don't think this will work. While it may appear to be initialising the correct device, Chrome doesn't know we're using a different device to the one it's using. When we go to export the DMA-BUF, Chrome will attempt to import it into the EGL/Vulkan context on the Intel card which will fail.
We have solution to make sure the Chrome using NVIDIA Vulcan, and when I did it, NVIDIA GPU Utilization is float (means the NVIDIA GPU were used). But the video engine still keeps frozen 0%
And there is an error from Chrome:
[2006932:2007376:0210/185127.505732:ERROR:vaapi_video_decoder.cc(1249)] failed Initialize()ing the frame pool
This is currently affecting Chrome with Nvidia and it's been active for a while. Depending on what flags you run I also got this now which I haven't seen before:
[65661:65661:0214/084514.593507:WARNING:vaapi_wrapper.cc(1489)] : Skipping nVidia device named: nvidia-drm
Yep, so I think there may be a solution to use NVIDIA card. but I have turned to Windows so that I can't test anymore
Ok, so the previous error is gone but there's another one now, with the latest chromium release I have:
[184461:184765:0226/154948.136812:ERROR:vaapi_wrapper.cc(2322)] : vaCreateContext failed, VA error: resource allocation failed
[184461:184765:0226/154948.136886:ERROR:vaapi_video_decoder.cc(1242)] : failed creating VAContext
This is currently affecting Chrome with Nvidia and it's been active for a while. Depending on what flags you run I also got this now which I haven't seen before:
[65661:65661:0214/084514.593507:WARNING:vaapi_wrapper.cc(1489)] : Skipping nVidia device named: nvidia-drm
To remove the Nvidia skipping, You need --enable-features=VaapiOnNvidiaGpus
how have you removed the following error ?
And there is an error from Chrome:
[2006932:2007376:0210/185127.505732:ERROR:vaapi_video_decoder.cc(1249)] failed Initialize()ing the frame pool
Have any tests been conducted with the latest patch? I haven't achieved any success yet.
Can this driver be used on top of chromium.
Environment: CPU: Intel Core i7 13700H GPU (In about system): Mesa Intel(R) Graphics (On-Demand) GPU1: Intel Alderlake_p (Gen12) (RPL-P) [Intel Iris Xe Graphics] GPU2: NVIDIA GeForce RTX 4060 Laptop 8GB
Desktop: Debian Testing + KDE + X11
Run Chrome with the command:
And I modified the function so that the library could run on multi-GPU mode:
And there is an error from Chrome:
Console log output:
And I think it can be used for Chrome/Chromium if we fixed the error?