1
0

Accepting request 1135801 from X11:Wayland

- Add glslang14.diff

OBS-URL: https://build.opensuse.org/request/show/1135801
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vulkan-validationlayers?expand=0&rev=48
This commit is contained in:
Dominique Leuenberger 2024-01-03 11:26:11 +00:00 committed by Git OBS Bridge
commit 42fd8e464c
3 changed files with 36 additions and 0 deletions

30
glslang14.diff Normal file
View File

@ -0,0 +1,30 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2023-12-31 01:23:14.975791155 +0100
Unbreak compilation after system was updated to glslang 14.
Patch created by looking at commit db7389064ffd286726009a630b14e2e6114159e2.
---
layers/gpu_validation/gpu_error_message.cpp | 2 ++
1 file changed, 2 insertions(+)
Index: Vulkan-ValidationLayers-vulkan-sdk-1.3.268.0/layers/gpu_validation/gpu_error_message.cpp
===================================================================
--- Vulkan-ValidationLayers-vulkan-sdk-1.3.268.0.orig/layers/gpu_validation/gpu_error_message.cpp
+++ Vulkan-ValidationLayers-vulkan-sdk-1.3.268.0/layers/gpu_validation/gpu_error_message.cpp
@@ -18,6 +18,7 @@
#include "gpu_validation/gpu_error_message.h"
#include "spirv-tools/instrument.hpp"
#include "state_tracker/shader_module.h"
+#include "gpu_shaders/gpu_shaders_constants.h"
#include <algorithm>
#include <regex>
@@ -25,6 +26,7 @@
// Generate the stage-specific part of the message.
void UtilGenerateStageMessage(const uint32_t *debug_record, std::string &msg) {
using namespace spvtools;
+ using namespace gpuav_glsl;
std::ostringstream strm;
switch (debug_record[kInstCommonOutStageIdx]) {
case spv::ExecutionModelVertex: {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Dec 31 00:23:33 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Add glslang14.diff
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 15 10:52:15 UTC 2023 - Jan Engelhardt <jengelh@inai.de> Wed Nov 15 10:52:15 UTC 2023 - Jan Engelhardt <jengelh@inai.de>

View File

@ -25,6 +25,7 @@ Group: Development/Tools/Other
URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers
Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/refs/tags/vulkan-sdk-%version.tar.gz Source: https://github.com/KhronosGroup/Vulkan-ValidationLayers/archive/refs/tags/vulkan-sdk-%version.tar.gz
Patch2: xxhash.diff Patch2: xxhash.diff
Patch3: glslang14.diff
BuildRequires: cmake >= 3.7.12 BuildRequires: cmake >= 3.7.12
%if 0%{?suse_version} >= 1599 %if 0%{?suse_version} >= 1599
BuildRequires: gcc-c++ BuildRequires: gcc-c++