public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: Accept VulkanLayer extensions
@ 2026-09-11 14:43 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-11 14:43 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : flatpaks/flatpak-runtime
            Branch : f45
            Commit : aad99c9ede5139eaa0a94120b768f241da4d3b30
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-03-02T21:13:16-05:00
            Stats  : +20/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/aad99c9ede5139eaa0a94120b768f241da4d3b30?branch=f45

            Log:
            Accept VulkanLayer extensions

Vulkan has multiple search paths for metadata.  /etc/vulkan is used for the
GL extensions, while /usr/share/vulkan is used for additional layers.

---
diff --git a/container-sdk.in.yaml b/container-sdk.in.yaml
index d553804..6ac1268 100644
--- a/container-sdk.in.yaml
+++ b/container-sdk.in.yaml
@@ -30,6 +30,12 @@ flatpak:
             no-autodownload: true
             download-if: have-kernel-module-nvidia
             autoprune-unless: have-kernel-module-nvidia
+        @ID_PREFIX@.Platform.VulkanLayer:
+            directory: lib64/vulkan
+            add-ld-path: lib
+            merge-dirs: share/vulkan/implicit_layer.d;share/vulkan/explicit_layer.d;
+            subdirectories: true
+            no-autodownload: true
     finish-args: >
         --env=ALSA_CONFIG_DIR=/usr/share/alsa
         --env=ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf
@@ -83,6 +89,10 @@ flatpak:
         # Provide driver implementations with GL extensions
         rm -f /usr/lib64/libdrm_*.so*
 
+        # Create symlinks to expected locations from Vulkan extensions
+        rm -fr /usr/share/vulkan
+        ln -s ../lib64/vulkan/share/vulkan /usr/share/vulkan
+
         touch -d @0 /usr/share/fonts /usr/share/fonts/*
         fc-cache -rs
 

diff --git a/container.in.yaml b/container.in.yaml
index f5d932a..3ecb1e8 100644
--- a/container.in.yaml
+++ b/container.in.yaml
@@ -30,6 +30,12 @@ flatpak:
             no-autodownload: true
             download-if: have-kernel-module-nvidia
             autoprune-unless: have-kernel-module-nvidia
+        @ID_PREFIX@.Platform.VulkanLayer:
+            directory: lib64/vulkan
+            add-ld-path: lib
+            merge-dirs: share/vulkan/implicit_layer.d;share/vulkan/explicit_layer.d;
+            subdirectories: true
+            no-autodownload: true
     finish-args: >
         --env=ALSA_CONFIG_DIR=/usr/share/alsa
         --env=ALSA_CONFIG_PATH=/usr/share/alsa/alsa.conf
@@ -84,6 +90,10 @@ flatpak:
         # Provide driver implementations with GL extensions
         rm -f /usr/lib64/libdrm_*.so*
 
+        # Create symlinks to expected locations from Vulkan extensions
+        rm -fr /usr/share/vulkan
+        ln -s ../lib64/vulkan/share/vulkan /usr/share/vulkan
+
         touch -d @0 /usr/share/fonts /usr/share/fonts/*
         fc-cache -rs
 

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

only message in thread, other threads:[~2026-09-11 14:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:43 [flatpaks/flatpak-runtime] f45: Accept VulkanLayer extensions Yaakov Selkowitz

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