Skip to content

Allow --use-angle=vulkan when ozone platform is Wayland, fixes vaapi on amd

Niccolò Belli requested to merge darkbasic/chromium:angle-vulkan-wayland into main

vaapi on amd cards requires --use-angle=vulkan: https://wiki.archlinux.org/title/Chromium#Hardware_video_acceleration

Since the gl=egl-angle,angle=vulkan GL implementation is not found in allowed implementations you cannot use it on ozone wayland.

The necessary support in ozone and ANGLE are present and can be enabled with a one line patch.

The angle=vulkan rendering is better on ozone wayland than it is on x11: on xwayland I have major rendering issues in websites like figma which are completely fine on ozone wayland. I can also confirm that vaapi works flawlessly on wayland.

The patch is harmless because unless you tune your flags to use --use-angle=vulkan it is disabled by default anyway on both x11 and wayland.

Since mesa 24.1 has just been released and it finally enables vaapi video decoding on amd cards this is a good time to merge this.

Upstream issue: https://issues.chromium.org/issues/334275637

Edited by Niccolò Belli

Merge request reports