public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/chromium] epel9-next: vaapi disable on el7 and el8
@ 2026-08-07 16:04 Than Ngo
  0 siblings, 0 replies; only message in thread
From: Than Ngo @ 2026-08-07 16:04 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/chromium
Branch : epel9-next
Commit : fafc22e12f06101a4ffb479ac3c1f4cebbf859f2
Author : Than Ngo <than@redhat.com>
Date   : 2023-01-08T16:23:48+01:00
Stats  : +9/-6 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/chromium/c/fafc22e12f06101a4ffb479ac3c1f4cebbf859f2?branch=epel9-next

Log:
vaapi disable on el7 and el8

---
diff --git a/chromium-browser.sh b/chromium-browser.sh
index fcb81a3..7e077dc 100755
--- a/chromium-browser.sh
+++ b/chromium-browser.sh
@@ -39,9 +39,6 @@ export CHROME_VERSION_EXTRA="Built from source for @@BUILD_TARGET@@"
 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
 
-# Disable allow_rgb_configs to fix odd color and vaapi issues with Mesa
-export allow_rgb10_configs=false
-
 CHROMIUM_DISTRO_FLAGS=" --enable-plugins \
                         --enable-extensions \
                         --enable-user-scripts \
@@ -49,6 +46,7 @@ CHROMIUM_DISTRO_FLAGS=" --enable-plugins \
                         --enable-gpu-rasterization \
                         --enable-sync \
                         --disable-features=AudioServiceSandbox,UseChromeOSDirectVideoDecoder \
+                        --enable-features=VaapiVideoDecoder,VaapiVideoEncoder \
                         --auto-ssl-client-auth @@EXTRA_FLAGS@@"
 
 # This provides a much better experience on Wayland.

diff --git a/chromium.spec b/chromium.spec
index 3047573..1c0ebca 100644
--- a/chromium.spec
+++ b/chromium.spec
@@ -576,7 +576,7 @@ Requires: libusbx >= 1.0.21-0.1.git448584a
 BuildRequires: libusbx-devel >= 1.0.21-0.1.git448584a
 %endif
 
-%if 0%{use_vaapi}
+%if 0%{?use_vaapi}
 BuildRequires:	libva-devel
 %endif
 
@@ -1025,7 +1025,7 @@ udev.
 %endif
 
 # Feature specific patches
-%if %{use_vaapi}
+%if 0%{?use_vaapi}
 %patch202 -p1 -b .accel-mjpeg
 %patch205 -p1 -b .vaapi-intel-fix
 %patch206 -p1 -b .wayland-vaapi
@@ -1277,7 +1277,7 @@ CHROMIUM_BROWSER_GN_DEFINES+=' blink_symbol_level=0 enable_hangout_services_exte
 CHROMIUM_BROWSER_GN_DEFINES+=' use_aura=true'
 CHROMIUM_BROWSER_GN_DEFINES+=' enable_widevine=true'
 
-%if %{use_vaapi}
+%if 0%{?use_vaapi}
 CHROMIUM_BROWSER_GN_DEFINES+=' use_vaapi=true'
 %else
 CHROMIUM_BROWSER_GN_DEFINES+=' use_vaapi=false'
@@ -1398,7 +1398,12 @@ rm -rf %{buildroot}
 
 mkdir -p %{buildroot}%{_bindir}
 mkdir -p %{buildroot}%{chromium_path}/locales
+
+%if 0%{?use_vaapi}
 cp -a %{SOURCE3} %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
+%%else
+grep -v features /usr/bin/chromium-browser > %{buildroot}%{chromium_path}/%{chromium_browser_channel}.sh
+%endif
 
 export BUILD_TARGET=`cat /etc/redhat-release`
 export CHROMIUM_PATH=%{chromium_path}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-07 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:04 [rpms/chromium] epel9-next: vaapi disable on el7 and el8 Than Ngo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox