[nautilus/wip/oholy/gnome-42: 40/41] flatpak: Allow accessing the GPU




commit 5b1064926e7dfefc677280637c13b944332a4589
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Feb 9 13:58:50 2022 -0300

    flatpak: Allow accessing the GPU
    
    By giving the --device=dri permission, Nautilus can access
    the GPU. This wasn't a big deal with GTK3, but on GTK4 that
    enabled hardware-accelerated rendering via OpenGL, and it
    makes a noticeable difference in terms of CPU usage and
    perceived performance.

 build-aux/flatpak/org.gnome.Nautilus.json | 1 +
 build-aux/flatpak/org.gnome.Nautilus.yml  | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/build-aux/flatpak/org.gnome.Nautilus.json b/build-aux/flatpak/org.gnome.Nautilus.json
index adcf8aebf..1ce13e3aa 100644
--- a/build-aux/flatpak/org.gnome.Nautilus.json
+++ b/build-aux/flatpak/org.gnome.Nautilus.json
@@ -10,6 +10,7 @@
     "nightly"
   ],
   "finish-args": [
+    "--device=dri",
     "--share=ipc",
     "--socket=x11",
     "--socket=wayland",
diff --git a/build-aux/flatpak/org.gnome.Nautilus.yml b/build-aux/flatpak/org.gnome.Nautilus.yml
index 98cf2c5e3..8538efa78 100644
--- a/build-aux/flatpak/org.gnome.Nautilus.yml
+++ b/build-aux/flatpak/org.gnome.Nautilus.yml
@@ -9,6 +9,7 @@ tags:
 - development
 - nightly
 finish-args:
+- "--device=dri"
 - "--share=ipc"
 - "--socket=x11"
 - "--socket=wayland"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]