From e67fcd3dd832c9d177ad2be780e5dd0e47810bdf Mon Sep 17 00:00:00 2001 From: Twig6943 <119701717+Twig6943@users.noreply.github.com> Date: Sun, 20 Jul 2025 23:24:39 +0300 Subject: [PATCH] custom flatpak extension (many squashed commits) --------- Co-authored-by: PancakeTAS --- .github/workflows/update-flatpak-23.08.yml | 20 ++++++++++++++ .github/workflows/update-flatpak-24.08.yml | 20 ++++++++++++++ flatpak/VkLayer_LS_frame_generation.patch | 13 +++++++++ ...ktop.Platform.VulkanLayer.lsfgvk_23.08.yml | 27 +++++++++++++++++++ ...ktop.Platform.VulkanLayer.lsfgvk_24.08.yml | 27 +++++++++++++++++++ 5 files changed, 107 insertions(+) create mode 100644 .github/workflows/update-flatpak-23.08.yml create mode 100644 .github/workflows/update-flatpak-24.08.yml create mode 100644 flatpak/VkLayer_LS_frame_generation.patch create mode 100644 flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml create mode 100644 flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml diff --git a/.github/workflows/update-flatpak-23.08.yml b/.github/workflows/update-flatpak-23.08.yml new file mode 100644 index 0000000..8cc0cbe --- /dev/null +++ b/.github/workflows/update-flatpak-23.08.yml @@ -0,0 +1,20 @@ +name: Update lsfg-vk Flatpak (23.08) +on: + push: + branches: ["develop", "flatpak"] + +jobs: + update-flatpak: + runs-on: ubuntu-latest + container: + image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-23.08 + options: --privileged + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Build Flatpak extension + uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk" + manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml" + verbose: true diff --git a/.github/workflows/update-flatpak-24.08.yml b/.github/workflows/update-flatpak-24.08.yml new file mode 100644 index 0000000..81aa0f3 --- /dev/null +++ b/.github/workflows/update-flatpak-24.08.yml @@ -0,0 +1,20 @@ +name: Update lsfg-vk Flatpak (24.08) +on: + push: + branches: ["develop", "flatpak"] + +jobs: + update-flatpak: + runs-on: ubuntu-latest + container: + image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-24.08 + options: --privileged + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Build Flatpak extension + uses: flatpak/flatpak-github-actions/flatpak-builder@v6 + with: + bundle: "org.freedesktop.Platform.VulkanLayer.lsfg_vk" + manifest-path: "flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml" + verbose: true diff --git a/flatpak/VkLayer_LS_frame_generation.patch b/flatpak/VkLayer_LS_frame_generation.patch new file mode 100644 index 0000000..b50ed75 --- /dev/null +++ b/flatpak/VkLayer_LS_frame_generation.patch @@ -0,0 +1,13 @@ +diff --git a/VkLayer_LS_frame_generation.json b/VkLayer_LS_frame_generation.json +index ece2a5f..774a027 100644 +--- a/VkLayer_LS_frame_generation.json ++++ b/VkLayer_LS_frame_generation.json +@@ -4,7 +4,7 @@ + "name": "VK_LAYER_LS_frame_generation", + "type": "GLOBAL", + "api_version": "1.4.313", +- "library_path": "../../../lib/liblsfg-vk.so", ++ "library_path": "/usr/lib/extensions/vulkan/lsfgvk/lib/liblsfg-vk.so", + "implementation_version": "1", + "description": "Lossless Scaling frame generation layer", + "functions": { diff --git a/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml b/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml new file mode 100644 index 0000000..72c1041 --- /dev/null +++ b/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_23.08.yml @@ -0,0 +1,27 @@ +id: org.freedesktop.Platform.VulkanLayer.lsfgvk +branch: '23.08' +runtime: org.freedesktop.Platform +runtime-version: '23.08' +sdk: org.freedesktop.Sdk +build-extension: true + +sdk-extensions: + - org.freedesktop.Sdk.Extension.llvm18 + +build-options: + prefix: /usr/lib/extensions/vulkan/lsfgvk + +modules: + - name: lsfg-vk + buildsystem: cmake-ninja + build-options: + append-path: /usr/lib/sdk/llvm18/bin + prepend-ld-library-path: /usr/lib/sdk/llvm18/lib + config-opts: + - -DCMAKE_BUILD_TYPE=Release + sources: + - type: git + url: https://github.com/PancakeTAS/lsfg-vk.git + branch: develop + - type: patch + path: VkLayer_LS_frame_generation.patch diff --git a/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml b/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml new file mode 100644 index 0000000..bf34b02 --- /dev/null +++ b/flatpak/org.freedesktop.Platform.VulkanLayer.lsfgvk_24.08.yml @@ -0,0 +1,27 @@ +id: org.freedesktop.Platform.VulkanLayer.lsfgvk +branch: '24.08' +runtime: org.freedesktop.Platform +runtime-version: '24.08' +sdk: org.freedesktop.Sdk +build-extension: true + +sdk-extensions: + - org.freedesktop.Sdk.Extension.llvm20 + +build-options: + prefix: /usr/lib/extensions/vulkan/lsfgvk + +modules: + - name: lsfg-vk + buildsystem: cmake-ninja + build-options: + append-path: /usr/lib/sdk/llvm20/bin + prepend-ld-library-path: /usr/lib/sdk/llvm20/lib + config-opts: + - -DCMAKE_BUILD_TYPE=Release + sources: + - type: git + url: https://github.com/PancakeTAS/lsfg-vk.git + branch: develop + - type: patch + path: VkLayer_LS_frame_generation.patch