SHA256
1
0
forked from pool/vkquake

Accepting request 834137 from home:cgiboudeaux:branches:games

- Add upstream patch to fix the factory build:
  * 0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch

OBS-URL: https://build.opensuse.org/request/show/834137
OBS-URL: https://build.opensuse.org/package/show/games/vkquake?expand=0&rev=11
This commit is contained in:
Dirk Stoecker 2020-09-14 10:58:07 +00:00 committed by Git OBS Bridge
parent da1a8f7693
commit 02405afd3b
3 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 029d2c53dc72a9995e0cec974d8ca03fc8352963 Mon Sep 17 00:00:00 2001
From: Axel Gneiting <axelgneiting@gmail.com>
Date: Sun, 17 May 2020 22:38:00 -0500
Subject: [PATCH] Remove use of VK_DYNAMIC_STATE_RANGE_SIZE
---
Quake/gl_rmisc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Quake/gl_rmisc.c b/Quake/gl_rmisc.c
index ae66f3a..b80d6ae 100644
--- a/Quake/gl_rmisc.c
+++ b/Quake/gl_rmisc.c
@@ -1426,7 +1426,7 @@ void R_CreatePipelines()
VkPipelineDynamicStateCreateInfo dynamic_state_create_info;
memset(&dynamic_state_create_info, 0, sizeof(dynamic_state_create_info));
dynamic_state_create_info.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
- VkDynamicState dynamic_states[VK_DYNAMIC_STATE_RANGE_SIZE];
+ VkDynamicState dynamic_states[3];
dynamic_state_create_info.pDynamicStates = dynamic_states;
VkPipelineShaderStageCreateInfo shader_stages[2];
--
2.28.0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Sep 13 17:03:57 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
- Add upstream patch to fix the factory build:
* 0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
-------------------------------------------------------------------
Fri Mar 27 23:05:55 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>

View File

@ -28,6 +28,8 @@ Source: https://github.com/Novum/vkQuake/archive/%{version}/vkQuake-%{ve
Source99: %{name}.changes
Source100: appdata.xml
Source101: %{name}.desktop
# PATCH-FIX-UPSTREAM
Patch0: 0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
BuildRequires: pkgconfig
BuildRequires: vulkan-devel
BuildRequires: pkgconfig(flac)
@ -42,7 +44,7 @@ vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. It is ba
Game data must be placed in ~/.vkquake/id1 .
%prep
%setup -q -n vkQuake-%{version}
%autosetup -p1 -n vkQuake-%{version}
%if 0%{?sle_version} < 150200
sed -i 's#vulkan_core.h#vulkan.h#' Quake/quakedef.h