mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-28 18:20:09 +00:00
feat: Add default config for Firefox to handle vaapi
This commit is contained in:
parent
d287e28398
commit
5ff1fefeee
@ -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 && \
|
||||
|
@ -0,0 +1,3 @@
|
||||
// Bazzite Firefox Hardware Settings (Kinoite)
|
||||
pref("gfx.webrender.all", 1);
|
||||
pref("media.ffmpeg.vaapi.enabled", 1);
|
@ -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);
|
@ -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);
|
@ -0,0 +1 @@
|
||||
# This file intentionally empty
|
@ -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);
|
Loading…
Reference in New Issue
Block a user