1
0

- Add 0001-layers-Use-correct-apiversion-for-properties-check.patch [boo#1140976]

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=20
This commit is contained in:
Jan Engelhardt 2019-07-12 02:56:48 +00:00 committed by Git OBS Bridge
parent 0b0a921d2c
commit 6dcce8259d
3 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 5e3bf3d651e08cb7464f6c7270a9637239fc13bb Mon Sep 17 00:00:00 2001
From: John Zulauf <jzulauf@lunarg.com>
Date: Sat, 29 Jun 2019 07:55:57 -0600
Subject: [PATCH] layers: Use correct apiversion for properties check
Change layers property check from physical device apiVersion to the
effective apiVersion (the lesser of the device and CreateInstance
apiVersion values) to avoid invalid downchain call.
Change-Id: I282950f0f8927df280c97098e775a6940db809f1
---
layers/core_validation.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 03149c08..75e473af 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -2412,7 +2412,7 @@ void CoreChecks::PostCallRecordCreateDevice(VkPhysicalDevice gpu, const VkDevice
instance_dispatch_table.GetPhysicalDeviceCooperativeMatrixPropertiesNV(gpu, &numCooperativeMatrixProperties,
core_checks->cooperative_matrix_properties.data());
}
- if (core_checks->phys_dev_props.apiVersion >= VK_API_VERSION_1_1) {
+ if (core_checks->api_version >= VK_API_VERSION_1_1) {
// Get the needed subgroup limits
auto subgroup_prop = lvl_init_struct<VkPhysicalDeviceSubgroupProperties>();
auto prop2 = lvl_init_struct<VkPhysicalDeviceProperties2KHR>(&subgroup_prop);
--
2.22.0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 12 02:56:05 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-layers-Use-correct-apiversion-for-properties-check.patch
[boo#1140976]
-------------------------------------------------------------------
Fri Jun 28 08:07:45 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -26,6 +26,7 @@ License: Apache-2.0
Group: Development/Libraries/C and C++
URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers
Source: Vulkan-ValidationLayers-%version.tar.xz
Patch1: 0001-layers-Use-correct-apiversion-for-properties-check.patch
BuildRequires: cmake >= 3.4
BuildRequires: gcc-c++ >= 4.8
BuildRequires: glslang-devel >= 7.11.3188
@ -44,7 +45,7 @@ graphics applications such as games and interactive media.
This package contains the Khronos official Vulkan validation layers.
%prep
%setup -qn Vulkan-ValidationLayers-%version
%autosetup -n Vulkan-ValidationLayers-%version
%build
%cmake -DGLSLANG_INSTALL_DIR="%_bindir"