mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-02-04 04:45:56 +00:00
custom flatpak extension
(many squashed commits) --------- Co-authored-by: PancakeTAS <pancake@mgnet.work>
This commit is contained in:
parent
60e2335f86
commit
e67fcd3dd8
5 changed files with 107 additions and 0 deletions
20
.github/workflows/update-flatpak-23.08.yml
vendored
Normal file
20
.github/workflows/update-flatpak-23.08.yml
vendored
Normal file
|
|
@ -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
|
||||
20
.github/workflows/update-flatpak-24.08.yml
vendored
Normal file
20
.github/workflows/update-flatpak-24.08.yml
vendored
Normal file
|
|
@ -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
|
||||
13
flatpak/VkLayer_LS_frame_generation.patch
Normal file
13
flatpak/VkLayer_LS_frame_generation.patch
Normal file
|
|
@ -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": {
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue