backports + WAR older shaderc

f37
Nicolas Chauvet 6 years ago
parent 8fe8f702a7
commit 7a0f68e7de

@ -0,0 +1,25 @@
From 72a8c1c547a8f40eb8a84485ab26a01b16f14fcd Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Wed, 3 Oct 2018 12:28:48 +0200
Subject: [PATCH 2/2] WAR older shaderc
---
src/spirv_shaderc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/spirv_shaderc.c b/src/spirv_shaderc.c
index c86679a..910d76c 100644
--- a/src/spirv_shaderc.c
+++ b/src/spirv_shaderc.c
@@ -46,7 +46,7 @@ static bool shaderc_init(struct spirv_compiler *spirv)
goto error;
shaderc_compile_options_set_optimization_level(p->opts,
- shaderc_optimization_level_performance);
+ shaderc_optimization_level_zero);
int ver, rev;
shaderc_get_spv_version(&ver, &rev);
--
2.17.1

File diff suppressed because it is too large Load Diff

@ -6,6 +6,8 @@ Summary: Reusable library for GPU-accelerated video/image rendering primi
License: LGPLv2+
URL: https://github.com/haasn/libplacebo
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: libplacebo-0.6.0-backports.patch
Patch1: 0002-WAR-older-shaderc.patch
BuildRequires: gcc
BuildRequires: gcc-c++

Loading…
Cancel
Save