feat: Add default config for Firefox to handle vaapi

This commit is contained in:
Kyle Gospodnetich 2024-01-01 18:03:09 -08:00
parent d287e28398
commit 5ff1fefeee
7 changed files with 19 additions and 2 deletions

View File

@ -638,6 +638,7 @@ ARG NVIDIA_MAJOR_VERSION="545"
# Fetch NVIDIA driver
COPY --from=ghcr.io/ublue-os/akmods-nvidia:${AKMODS_FLAVOR}-${FEDORA_MAJOR_VERSION}-${NVIDIA_MAJOR_VERSION} /rpms /tmp/akmods-rpms
COPY system_files/nvidia/shared system_files/nvidia/${BASE_IMAGE_NAME} /
# Remove everything that doesn't work well with NVIDIA
RUN rm -f /usr/bin/waydroid-choose-gpu && \
@ -651,8 +652,7 @@ RUN rm -f /usr/bin/waydroid-choose-gpu && \
if [[ "${BASE_IMAGE_NAME}" == "kinoite" ]]; then \
rpm-ostree override remove \
colord-kde \
; fi && \
rm -f /usr/etc/modprobe.d/amdgpu.conf
; fi
# Install NVIDIA driver
RUN wget https://raw.githubusercontent.com/ublue-os/nvidia/main/install.sh -O /tmp/nvidia-install.sh && \

View File

@ -0,0 +1,3 @@
// Bazzite Firefox Hardware Settings (Kinoite)
pref("gfx.webrender.all", 1);
pref("media.ffmpeg.vaapi.enabled", 1);

View File

@ -0,0 +1,4 @@
// Bazzite Firefox Hardware Settings (Silverblue)
pref("gfx.webrender.all", 1);
pref("media.ffmpeg.vaapi.enabled", 1);
pref("widget.gtk.rounded-bottom-corners.enabled", 1);

View File

@ -0,0 +1,4 @@
// Bazzite Firefox Hardware Settings (Nvidia Kinoite)
pref("gfx.webrender.all", 1);
pref("media.ffmpeg.vaapi.enabled", 1);
pref("widget.dmabuf.force-enabled", 1);

View File

@ -0,0 +1 @@
# This file intentionally empty

View File

@ -0,0 +1,5 @@
// Bazzite Firefox Hardware Settings (Nvidia Silverblue)
pref("gfx.webrender.all", 1);
pref("media.ffmpeg.vaapi.enabled", 1);
pref("widget.dmabuf.force-enabled", 1);
pref("widget.gtk.rounded-bottom-corners.enabled", 1);