You are not logged in.

#976 2024-03-10 17:28:40

adi222
Member
Registered: 2023-01-03
Posts: 10

Re: chromium: hardware video acceleration with VA-API

Reuter wrote:

Is the mesa patch from hmann still necessary?

Edit: Apparently so. X11 AMD still dysfunctional in Chrome, despite chrome://gpu showing Encoding to be supported.

yes, without his patch doesn't work here on 6650xt
with mesa-git with applied patches it does work on x11 and with xwayland, didnt try native wayland but i assume it won't work
on mine laptop with intel 8350u and uhd620 vaapi works in chrome with native wayland without issues

Offline

#977 2024-03-15 03:18:48

lxsq
Member
Registered: 2024-03-15
Posts: 1

Re: chromium: hardware video acceleration with VA-API

As long as chrome is using Vulkan, would they support Vulkan Video as well? Already tired about VA-API. Why would a same API work only on Intel, but not AMD?

Offline

#978 2024-03-18 10:45:57

Reuter
Member
Registered: 2023-05-12
Posts: 7

Re: chromium: hardware video acceleration with VA-API

Sadly applying the hmann patch to the latest mesa-git (24.1.0) breaks KDE Plasma 6. X11 has graphical glitches while a Wayland session wouldn't even start.

Last edited by Reuter (2024-03-18 10:46:40)

Offline

#979 2024-03-21 10:58:52

0BADC0DE
Member
From: Regnum Utriusque Siciliae
Registered: 2018-02-21
Posts: 267

Re: chromium: hardware video acceleration with VA-API

It seems I got it finally working on Chrome/Chromium/Vivaldi but not yet on Falkon.

Chrome: 124.0.6356.2 (yup, "unstable")
Chromium:  122.0.6261.128
Vivaldi: 6.6.3271.53
Falkon:  24.02.0

This is my current system setup:

Kernel Version : 6.8.1.zen1-1
Plasma Version : 6.0.2-3
KDE Version : 24.02.0-1
Frameworks Version : 5.115.0-1
Qt5 Version : 5.15.13+kde+r7-1
Qt6 Version : 6.6.2-4
Wayland Version : 1.22.0-1
XOrg/Wayland Version : 23.2.4-2
Mesa Version : 1:24.0.3-1
LibVA Version : 2.21.0-1
VDPAU Version : 1.5-2
GPU: TigerLake-LP GT2 [Iris Xe Graphics]

These are the CLI options  I use to start chromium-based browsers (relevant options only):

--enable-features=VaapiVideoDecodeLinuxGL,VaapiVideoEncoder --ignore-gpu-blocklist --ozone-platform=wayland

There are the flags I enabled (not sure they are all needed):

chrome://flags/#ignore-gpu-blocklist
chrome://flags/#enable-gpu-rasterization
chrome://flags/#enable-zero-copy
chrome://flags/#cast-streaming-hardware-h264
chrome://flags/#enable-global-vaapi-lock
chrome://flags/#enable-drdc
chrome://flags/#canvas-oop-rasterization
chrome://flags/#enable-raw-draw  # <<< not available in chrome-unstable
chrome://flags/#use-gpu-scheduler-dfs

Anyway, I can now see it working, on youtube for example, because when I watch a video I can fire "sudo intel_gpu_top" on a terminal and see something like this (chorme-unstable):

intel-gpu-top: Intel Tigerlake (Gen12) @ /dev/dri/card1 -  126/ 127 MHz;  80% RC6;  0.51/ 4.97 W;      467 irqs/s

         ENGINES     BUSY                                                                               MI_SEMA MI_WAIT
       Render/3D   13.61% |██████████▎                                                                |      0%      0%
         Blitter    0.00% |                                                                           |      0%      0%
           Video    0.79% |▋                                                                          |      0%      0%
    VideoEnhance    2.68% |██▏                                                                        |      0%      0%

   PID              NAME        Render/3D               Blitter                 Video              VideoEnhance         
 47851            chrome |█▋                   ||                     ||▏                    ||▌                    |
   819      kwin_wayland |█▏                   ||                     ||                     ||                     |
     1           systemd |                     ||                     ||                     ||                     |
   902          Xwayland |                     ||                     ||                     ||                     |
   926             kded6 |                     ||                     ||                     ||                     |
   927         ksmserver |                     ||                     ||                     ||                     |
   959       plasmashell |                     ||                     ||                     ||                     |

Video and VideoEnhance are both in use by chrome itself!

The same goes for chromium and vivaldi. Nothing happening for falkon (despite the single "enable hardware acceleration" flag is set).

I am not sure about a couple of things like:
* Blitter (usage keeps staying to zero)
* video encoding (not sure it is happening as my webcam refuses to work now)

I think this is better than nothing, though.

Last edited by 0BADC0DE (2024-03-21 11:06:25)


Maybe Computers Will Never Become As Intelligent
As Humans. Surely They Won't Ever Become So Stupid.

Offline

Board footer

Powered by FluxBB