forked from pool/vulkan-tools
Accepting request 1044288 from X11:Wayland
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1044288 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vulkan-tools?expand=0&rev=39
This commit is contained in:
commit
3165089de8
@ -1,41 +0,0 @@
|
|||||||
From 8d2d3e22d684540fdc5a76c15e456fc2fd11e4b7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Juan Ramos <juan@lunarg.com>
|
|
||||||
Date: Wed, 19 Oct 2022 16:51:58 -0600
|
|
||||||
Subject: [PATCH] cubepp: Fix presentKHR assert
|
|
||||||
|
|
||||||
Currently cubepp fails on Debug builds and triggers an assert.
|
|
||||||
|
|
||||||
This avoids the assert by calling the appropriate presentKHR.
|
|
||||||
---
|
|
||||||
cube/cube.cpp | 13 +++++++------
|
|
||||||
1 file changed, 7 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/cube/cube.cpp b/cube/cube.cpp
|
|
||||||
index aa3d7b20..90000789 100644
|
|
||||||
--- a/cube/cube.cpp
|
|
||||||
+++ b/cube/cube.cpp
|
|
||||||
@@ -706,14 +706,15 @@ void Demo::draw() {
|
|
||||||
VERIFY(change_owner_result == vk::Result::eSuccess);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ const auto presentInfo = vk::PresentInfoKHR()
|
|
||||||
+ .setWaitSemaphores(separate_present_queue ? image_ownership_semaphores[frame_index]
|
|
||||||
+ : draw_complete_semaphores[frame_index])
|
|
||||||
+ .setSwapchains(swapchain)
|
|
||||||
+ .setImageIndices(current_buffer);
|
|
||||||
+
|
|
||||||
// If we are using separate queues we have to wait for image ownership,
|
|
||||||
// otherwise wait for draw complete
|
|
||||||
- auto present_result =
|
|
||||||
- present_queue.presentKHR(vk::PresentInfoKHR()
|
|
||||||
- .setWaitSemaphores(separate_present_queue ? image_ownership_semaphores[frame_index]
|
|
||||||
- : draw_complete_semaphores[frame_index])
|
|
||||||
- .setSwapchains(swapchain)
|
|
||||||
- .setImageIndices(current_buffer));
|
|
||||||
+ auto present_result = present_queue.presentKHR(&presentInfo);
|
|
||||||
frame_index += 1;
|
|
||||||
frame_index %= FRAME_LAG;
|
|
||||||
if (present_result == vk::Result::eErrorOutOfDateKHR) {
|
|
||||||
--
|
|
||||||
2.38.0
|
|
||||||
|
|
3
sdk-1.3.236.0.tar.gz
Normal file
3
sdk-1.3.236.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5b0d96acce7d7354a6bc055cafeca9191cda860975390780b3146b8ab1f8a8d3
|
||||||
|
size 880927
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:379547b11eb65638cf5d83b260827a7b2dbfa7f31ef4002f8bfdca7bf3c89a8f
|
|
||||||
size 876522
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 15 14:00:33 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release SDK-1.3.236.0
|
||||||
|
* vulkaninfo: Add Driver Version handling
|
||||||
|
- Delete 0001-cubepp-Fix-presentKHR-assert.patch (merged)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Oct 24 19:54:24 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
Mon Oct 24 19:54:24 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@ -17,21 +17,19 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: vulkan-tools
|
Name: vulkan-tools
|
||||||
Version: 1.3.231
|
Version: 1.3.236.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Diagnostic utilities for Vulkan
|
Summary: Diagnostic utilities for Vulkan
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
URL: https://github.com/KhronosGroup/Vulkan-Tools
|
URL: https://github.com/KhronosGroup/Vulkan-Tools
|
||||||
|
Source: https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/sdk-%version.tar.gz
|
||||||
Source: https://github.com/KhronosGroup/Vulkan-Tools/archive/refs/tags/v%version.tar.gz
|
|
||||||
Patch1: 0001-cubepp-Fix-presentKHR-assert.patch
|
|
||||||
BuildRequires: cmake >= 3.4
|
BuildRequires: cmake >= 3.4
|
||||||
BuildRequires: gcc-c++ >= 4.8
|
BuildRequires: gcc-c++ >= 4.8
|
||||||
BuildRequires: glslang-devel >= 8.13.3743
|
BuildRequires: glslang-devel >= 8.13.3743
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: pkgconfig(vulkan) >= 1.3.231
|
BuildRequires: pkgconfig(vulkan) >= 1.3.236
|
||||||
BuildRequires: pkgconfig(wayland-protocols)
|
BuildRequires: pkgconfig(wayland-protocols)
|
||||||
BuildRequires: pkgconfig(x11)
|
BuildRequires: pkgconfig(x11)
|
||||||
BuildRequires: pkgconfig(xcb)
|
BuildRequires: pkgconfig(xcb)
|
||||||
@ -46,7 +44,7 @@ graphics applications such as games and interactive media.
|
|||||||
This package contains the Khronos official Vulkan tools and utilities.
|
This package contains the Khronos official Vulkan tools and utilities.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n Vulkan-Tools-%version
|
%autosetup -p1 -n Vulkan-Tools-sdk-%version
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p glslang/bin
|
mkdir -p glslang/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user