From 6dcce8259df19b4f53cf9b3718c0b9f2487615481530b2f9a39777dc2442eb43 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 12 Jul 2019 02:56:48 +0000 Subject: [PATCH 1/2] - 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 --- ...rect-apiversion-for-properties-check.patch | 30 +++++++++++++++++++ vulkan-validationlayers.changes | 6 ++++ vulkan-validationlayers.spec | 3 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0001-layers-Use-correct-apiversion-for-properties-check.patch diff --git a/0001-layers-Use-correct-apiversion-for-properties-check.patch b/0001-layers-Use-correct-apiversion-for-properties-check.patch new file mode 100644 index 0000000..8de62d8 --- /dev/null +++ b/0001-layers-Use-correct-apiversion-for-properties-check.patch @@ -0,0 +1,30 @@ +From 5e3bf3d651e08cb7464f6c7270a9637239fc13bb Mon Sep 17 00:00:00 2001 +From: John Zulauf +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(); + auto prop2 = lvl_init_struct(&subgroup_prop); +-- +2.22.0 + diff --git a/vulkan-validationlayers.changes b/vulkan-validationlayers.changes index 799294f..df8acdc 100644 --- a/vulkan-validationlayers.changes +++ b/vulkan-validationlayers.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 12 02:56:05 UTC 2019 - Jan Engelhardt + +- Add 0001-layers-Use-correct-apiversion-for-properties-check.patch + [boo#1140976] + ------------------------------------------------------------------- Fri Jun 28 08:07:45 UTC 2019 - Jan Engelhardt diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec index a9de5ef..8f75d5d 100644 --- a/vulkan-validationlayers.spec +++ b/vulkan-validationlayers.spec @@ -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" From 78708519e91c514f132fb1e76c5d7d466ea4eb5a5ef3d3586c6c27b98f27feb0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 21 Aug 2019 12:40:50 +0000 Subject: [PATCH 2/2] - Update to new upstream release 1.1.120 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=21 --- ...rect-apiversion-for-properties-check.patch | 30 ------------------- Vulkan-ValidationLayers-1.1.112.tar.xz | 3 -- Vulkan-ValidationLayers-1.1.120.tar.xz | 3 ++ _service | 6 ++-- vulkan-validationlayers.changes | 16 ++++++++++ vulkan-validationlayers.spec | 11 +++---- 6 files changed, 28 insertions(+), 41 deletions(-) delete mode 100644 0001-layers-Use-correct-apiversion-for-properties-check.patch delete mode 100644 Vulkan-ValidationLayers-1.1.112.tar.xz create mode 100644 Vulkan-ValidationLayers-1.1.120.tar.xz diff --git a/0001-layers-Use-correct-apiversion-for-properties-check.patch b/0001-layers-Use-correct-apiversion-for-properties-check.patch deleted file mode 100644 index 8de62d8..0000000 --- a/0001-layers-Use-correct-apiversion-for-properties-check.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 5e3bf3d651e08cb7464f6c7270a9637239fc13bb Mon Sep 17 00:00:00 2001 -From: John Zulauf -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(); - auto prop2 = lvl_init_struct(&subgroup_prop); --- -2.22.0 - diff --git a/Vulkan-ValidationLayers-1.1.112.tar.xz b/Vulkan-ValidationLayers-1.1.112.tar.xz deleted file mode 100644 index af31474..0000000 --- a/Vulkan-ValidationLayers-1.1.112.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1db85374c3731f3414957d290e5170a772c3a6179fa3ab7c19d0d54606954413 -size 795480 diff --git a/Vulkan-ValidationLayers-1.1.120.tar.xz b/Vulkan-ValidationLayers-1.1.120.tar.xz new file mode 100644 index 0000000..b638076 --- /dev/null +++ b/Vulkan-ValidationLayers-1.1.120.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d4e4bc9a0bd32b43e9b5e571367c43741a2407691d4c1410c3c8dfda6b57d3b +size 1106116 diff --git a/_service b/_service index 82901ba..54cf39d 100644 --- a/_service +++ b/_service @@ -2,9 +2,9 @@ git https://github.com/KhronosGroup/Vulkan-ValidationLayers - 52787ac40c8f945d734da3f550b10d92e3f5225e - 52787ac40c8f945d734da3f550b10d92e3f5225e - 1.1.112 + v1.1.120 + v1.1.120 + 1.1.120 *.tar diff --git a/vulkan-validationlayers.changes b/vulkan-validationlayers.changes index df8acdc..dae6406 100644 --- a/vulkan-validationlayers.changes +++ b/vulkan-validationlayers.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Aug 21 09:20:52 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 1.1.120 + * layers: Add VK_KHR_uniform_buffer_standard_layout. + * layers: Split record/validation of Pipeline/Shaders. + * layers: Add accel structure tracking and validation. + * layers: Add validation for + VK_EXT_shader_demote_to_helper_invocation, + VK_EXT_texel_buffer_alignment, + VK_KHR_pipeline_executable_properties, + VK_EXT_line_rasterization, VkGeometryNV, + VkCommandBufferInheritanceInfo. + * layers: Added vu checks for imageless framebuffer. +- Drop 0001-layers-Use-correct-apiversion-for-properties-check.patch + ------------------------------------------------------------------- Fri Jul 12 02:56:05 UTC 2019 - Jan Engelhardt diff --git a/vulkan-validationlayers.spec b/vulkan-validationlayers.spec index 8f75d5d..b23d348 100644 --- a/vulkan-validationlayers.spec +++ b/vulkan-validationlayers.spec @@ -16,24 +16,25 @@ # -%define version_unconverted 1.1.112 +%define version_unconverted 1.1.120 Name: vulkan-validationlayers -Version: 1.1.112 +Version: 1.1.120 Release: 0 Summary: Validation layers for Vulkan 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 +BuildRequires: glslang-devel >= 7.12 BuildRequires: pkg-config BuildRequires: python3-base +#BuildRequires: python3-spec_tools >= 1.1.112 BuildRequires: spirv-tools-devel >= 2019.4~git33 -BuildRequires: pkgconfig(vulkan) >= 1.1.107 +BuildRequires: pkgconfig(vulkan) >= 1.1.112 BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(xcb)