Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Vulkan-ValidationLayers: add upstream patch to fix crash
Date: Wed, 10 Jul 2019 20:59:55 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12973@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

There is a new pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages fix_vvl
https://github.com/void-linux/void-packages/pull/12973

Vulkan-ValidationLayers: add upstream patch to fix crash


A patch file from https://github.com/void-linux/void-packages/pull/12973.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix_vvl-12973.patch --]
[-- Type: application/text/x-diff, Size: 2774 bytes --]

From c6c22d5f44f10e1558752355f233b53ed78352c9 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Wed, 10 Jul 2019 13:58:33 -0500
Subject: [PATCH] Vulkan-ValidationLayers: add upstream patch to fix crash

---
 .../patches/fix-apiversion.patch              | 29 +++++++++++++++++++
 srcpkgs/Vulkan-ValidationLayers/template      |  2 +-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/Vulkan-ValidationLayers/patches/fix-apiversion.patch

diff --git a/srcpkgs/Vulkan-ValidationLayers/patches/fix-apiversion.patch b/srcpkgs/Vulkan-ValidationLayers/patches/fix-apiversion.patch
new file mode 100644
index 00000000000..c7c8691b1a4
--- /dev/null
+++ b/srcpkgs/Vulkan-ValidationLayers/patches/fix-apiversion.patch
@@ -0,0 +1,29 @@
+https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/1024
+
+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 layers/core_validation.cpp layers/core_validation.cpp
+index 03149c08d..75e473af1 100644
+--- layers/core_validation.cpp
++++ 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);
diff --git a/srcpkgs/Vulkan-ValidationLayers/template b/srcpkgs/Vulkan-ValidationLayers/template
index 06c98fad404..b239584876b 100644
--- a/srcpkgs/Vulkan-ValidationLayers/template
+++ b/srcpkgs/Vulkan-ValidationLayers/template
@@ -1,7 +1,7 @@
 # Template file for 'Vulkan-ValidationLayers'
 pkgname=Vulkan-ValidationLayers
 version=1.1.112
-revision=1
+revision=2
 build_style=cmake
 configure_args="-DGLSLANG_INSTALL_DIR=/usr
  -DVULKAN_HEADERS_INSTALL_DIR=${XBPS_CROSS_BASE}/usr"

             reply	other threads:[~2019-07-10 18:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-10 18:59 voidlinux-github [this message]
2019-07-10 19:24 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12973@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).