commit: 5f8f746a57f65d4b94ed472b8ed1e43928be71ee Author: Matt Jolly <kangie <AT> gentoo <DOT> org> AuthorDate: Thu Jun 12 09:54:31 2025 +0000 Commit: Matt Jolly <kangie <AT> gentoo <DOT> org> CommitDate: Thu Jun 12 10:05:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f8f746a
www-client/chromium: update postinst message for HW accel Add some improved guidance on enabling OpenGL or Vulkan-accelerated rendering, particularly around video encoding and decoding. Closes: https://bugs.gentoo.org/928630 Signed-off-by: Matt Jolly <kangie <AT> gentoo.org> www-client/chromium/chromium-136.0.7103.113.ebuild | 36 ++++++++++++++++++++-- www-client/chromium/chromium-137.0.7151.103.ebuild | 36 ++++++++++++++++++++-- www-client/chromium/chromium-138.0.7204.23.ebuild | 36 ++++++++++++++++++++-- 3 files changed, 99 insertions(+), 9 deletions(-) diff --git a/www-client/chromium/chromium-136.0.7103.113.ebuild b/www-client/chromium/chromium-136.0.7103.113.ebuild index b8735871f388..02d816d8fa59 100644 --- a/www-client/chromium/chromium-136.0.7103.113.ebuild +++ b/www-client/chromium/chromium-136.0.7103.113.ebuild @@ -1527,9 +1527,39 @@ pkg_postinst() { if ! use headless; then if use vaapi; then - elog "VA-API is disabled by default at runtime. You have to enable it" - elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS" - elog "in /etc/chromium/default." + elog "Hardware-accelerated video decoding configuration:" + elog + elog "Chromium supports multiple backends for hardware acceleration. To enable one," + elog " Add to CHROMIUM_FLAGS in /etc/chromium/default:" + elog + elog "1. VA-API with OpenGL (recommended for most users):" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL" + elog " VaapiVideoDecoder may need to be added as well, but try without first." + elog + if use wayland; then + elog "2. Enhanced Wayland/EGL performance:" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" + elog + fi + if use X; then + elog "$(usex wayland "3" "2"). VA-API with Vulkan:" + elog " --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE" + elog + if use wayland; then + elog " NOTE: Vulkan acceleration requires X11 and will not work under Wayland sessions." + elog " Use OpenGL-based acceleration instead when running under Wayland." + elog + fi + fi + elog "Additional options:" + elog " To enable hardware-accelerated encoding (if supported)" + elog " add 'AcceleratedVideoEncoder' to your feature list" + elog " VaapiIgnoreDriverChecks bypasses driver compatibility checks" + elog " (may be needed for newer/unsupported hardware)" + elog + else + elog "This Chromium build was compiled without VA-API support, which provides" + elog "hardware-accelerated video decoding." fi if use screencast; then elog "Screencast is disabled by default at runtime. Either enable it" diff --git a/www-client/chromium/chromium-137.0.7151.103.ebuild b/www-client/chromium/chromium-137.0.7151.103.ebuild index 3957db1e9169..c0eca11402bf 100644 --- a/www-client/chromium/chromium-137.0.7151.103.ebuild +++ b/www-client/chromium/chromium-137.0.7151.103.ebuild @@ -1525,9 +1525,39 @@ pkg_postinst() { if ! use headless; then if use vaapi; then - elog "VA-API is disabled by default at runtime. You have to enable it" - elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS" - elog "in /etc/chromium/default." + elog "Hardware-accelerated video decoding configuration:" + elog + elog "Chromium supports multiple backends for hardware acceleration. To enable one," + elog " Add to CHROMIUM_FLAGS in /etc/chromium/default:" + elog + elog "1. VA-API with OpenGL (recommended for most users):" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL" + elog " VaapiVideoDecoder may need to be added as well, but try without first." + elog + if use wayland; then + elog "2. Enhanced Wayland/EGL performance:" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" + elog + fi + if use X; then + elog "$(usex wayland "3" "2"). VA-API with Vulkan:" + elog " --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE" + elog + if use wayland; then + elog " NOTE: Vulkan acceleration requires X11 and will not work under Wayland sessions." + elog " Use OpenGL-based acceleration instead when running under Wayland." + elog + fi + fi + elog "Additional options:" + elog " To enable hardware-accelerated encoding (if supported)" + elog " add 'AcceleratedVideoEncoder' to your feature list" + elog " VaapiIgnoreDriverChecks bypasses driver compatibility checks" + elog " (may be needed for newer/unsupported hardware)" + elog + else + elog "This Chromium build was compiled without VA-API support, which provides" + elog "hardware-accelerated rendering, including video decoding." fi if use screencast; then elog "Screencast is disabled by default at runtime. Either enable it" diff --git a/www-client/chromium/chromium-138.0.7204.23.ebuild b/www-client/chromium/chromium-138.0.7204.23.ebuild index f4c5c256733b..f8a980020902 100644 --- a/www-client/chromium/chromium-138.0.7204.23.ebuild +++ b/www-client/chromium/chromium-138.0.7204.23.ebuild @@ -1521,9 +1521,39 @@ pkg_postinst() { if ! use headless; then if use vaapi; then - elog "VA-API is disabled by default at runtime. You have to enable it" - elog "by adding --enable-features=VaapiVideoDecoder to CHROMIUM_FLAGS" - elog "in /etc/chromium/default." + elog "Hardware-accelerated video decoding configuration:" + elog + elog "Chromium supports multiple backends for hardware acceleration. To enable one," + elog " Add to CHROMIUM_FLAGS in /etc/chromium/default:" + elog + elog "1. VA-API with OpenGL (recommended for most users):" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL" + elog " VaapiVideoDecoder may need to be added as well, but try without first." + elog + if use wayland; then + elog "2. Enhanced Wayland/EGL performance:" + elog " --enable-features=AcceleratedVideoDecodeLinuxGL,AcceleratedVideoDecodeLinuxZeroCopyGL" + elog + fi + if use X; then + elog "$(usex wayland "3" "2"). VA-API with Vulkan:" + elog " --enable-features=VaapiVideoDecoder,VaapiIgnoreDriverChecks,Vulkan,DefaultANGLEVulkan,VulkanFromANGLE" + elog + if use wayland; then + elog " NOTE: Vulkan acceleration requires X11 and will not work under Wayland sessions." + elog " Use OpenGL-based acceleration instead when running under Wayland." + elog + fi + fi + elog "Additional options:" + elog " To enable hardware-accelerated encoding (if supported)" + elog " add 'AcceleratedVideoEncoder' to your feature list" + elog " VaapiIgnoreDriverChecks bypasses driver compatibility checks" + elog " (may be needed for newer/unsupported hardware)" + elog + else + elog "This Chromium build was compiled without VA-API support, which provides" + elog "hardware-accelerated video decoding." fi if use screencast; then elog "Screencast is disabled by default at runtime. Either enable it"