Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package vkbasalt for openSUSE:Factory checked in at 2022-12-13 18:57:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vkbasalt (Old) and /work/SRC/openSUSE:Factory/.vkbasalt.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vkbasalt" Tue Dec 13 18:57:13 2022 rev:5 rq:1042690 version:0.3.2.6 Changes: -------- --- /work/SRC/openSUSE:Factory/vkbasalt/vkbasalt.changes 2022-02-23 16:26:46.983509545 +0100 +++ /work/SRC/openSUSE:Factory/.vkbasalt.new.1835/vkbasalt.changes 2022-12-13 18:57:40.511910258 +0100 @@ -1,0 +2,6 @@ +Tue Dec 6 14:58:24 UTC 2022 - Dirk Müller <dmuel...@suse.com> + +- update to v0.3.2.6: + * Vulkan 1.3 support + +------------------------------------------------------------------- Old: ---- vkBasalt-0.3.2.5.tar.gz New: ---- vkBasalt-0.3.2.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vkbasalt.spec ++++++ --- /var/tmp/diff_new_pack.ByWWVl/_old 2022-12-13 18:57:40.971912713 +0100 +++ /var/tmp/diff_new_pack.ByWWVl/_new 2022-12-13 18:57:40.975912734 +0100 @@ -18,7 +18,7 @@ %define __builder ninja Name: vkbasalt -Version: 0.3.2.5 +Version: 0.3.2.6 Release: 0 Summary: Vulkan post processing layer License: Zlib ++++++ vkBasalt-0.3.2.5.tar.gz -> vkBasalt-0.3.2.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vkBasalt-0.3.2.5/LICENSE new/vkBasalt-0.3.2.6/LICENSE --- old/vkBasalt-0.3.2.5/LICENSE 2022-02-12 18:17:32.000000000 +0100 +++ new/vkBasalt-0.3.2.6/LICENSE 2022-07-29 18:25:48.000000000 +0200 @@ -1,4 +1,4 @@ -Copyright (c) 2019 - 2020 Georg Lehmann +Copyright (c) 2019 - 2022 Georg Lehmann This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vkBasalt-0.3.2.5/config/vkBasalt.json.in new/vkBasalt-0.3.2.6/config/vkBasalt.json.in --- old/vkBasalt-0.3.2.5/config/vkBasalt.json.in 2022-02-12 18:17:32.000000000 +0100 +++ new/vkBasalt-0.3.2.6/config/vkBasalt.json.in 2022-07-29 18:25:48.000000000 +0200 @@ -4,7 +4,7 @@ "name": "VK_LAYER_VKBASALT_post_processing", "type": "GLOBAL", "library_path": "@ld_lib_dir_vkbas...@libvkbasalt.so", - "api_version": "1.2.136", + "api_version": "1.3.223", "implementation_version": "1", "description": "a post processing layer", "functions": { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vkBasalt-0.3.2.5/src/basalt.cpp new/vkBasalt-0.3.2.6/src/basalt.cpp --- old/vkBasalt-0.3.2.5/src/basalt.cpp 2022-02-12 18:17:32.000000000 +0100 +++ new/vkBasalt-0.3.2.6/src/basalt.cpp 2022-07-29 18:25:48.000000000 +0200 @@ -50,6 +50,7 @@ // layer book-keeping information, to store dispatch tables by key std::unordered_map<void*, InstanceDispatch> instanceDispatchMap; std::unordered_map<void*, VkInstance> instanceMap; + std::unordered_map<void*, uint32_t> instanceVersionMap; std::unordered_map<void*, std::shared_ptr<LogicalDevice>> deviceMap; std::unordered_map<VkSwapchainKHR, std::shared_ptr<LogicalSwapchain>> swapchainMap; @@ -126,6 +127,7 @@ scoped_lock l(globalLock); instanceDispatchMap[GetKey(*pInstance)] = dispatchTable; instanceMap[GetKey(*pInstance)] = *pInstance; + instanceVersionMap[GetKey(*pInstance)] = modifiedCreateInfo.pApplicationInfo->apiVersion; } return ret; @@ -143,6 +145,7 @@ instanceDispatchMap.erase(GetKey(instance)); instanceMap.erase(GetKey(instance)); + instanceVersionMap.erase(GetKey(instance)); } VK_LAYER_EXPORT VkResult VKAPI_CALL vkBasalt_CreateDevice(VkPhysicalDevice physicalDevice, @@ -193,6 +196,9 @@ } } + VkPhysicalDeviceProperties deviceProps; + instanceDispatchMap[GetKey(physicalDevice)].GetPhysicalDeviceProperties(physicalDevice, &deviceProps); + VkDeviceCreateInfo modifiedCreateInfo = *pCreateInfo; std::vector<const char*> enabledExtensionNames; if (modifiedCreateInfo.enabledExtensionCount) @@ -206,7 +212,10 @@ Logger::debug("activating mutable_format"); addUniqueCString(enabledExtensionNames, "VK_KHR_swapchain_mutable_format"); } - addUniqueCString(enabledExtensionNames, "VK_KHR_image_format_list"); + if (deviceProps.apiVersion < VK_API_VERSION_1_2 || instanceVersionMap[GetKey(physicalDevice)] < VK_API_VERSION_1_2) + { + addUniqueCString(enabledExtensionNames, "VK_KHR_image_format_list"); + } modifiedCreateInfo.ppEnabledExtensionNames = enabledExtensionNames.data(); modifiedCreateInfo.enabledExtensionCount = enabledExtensionNames.size(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vkBasalt-0.3.2.5/src/vkfuncs.hpp new/vkBasalt-0.3.2.6/src/vkfuncs.hpp --- old/vkBasalt-0.3.2.5/src/vkfuncs.hpp 2022-02-12 18:17:32.000000000 +0100 +++ new/vkBasalt-0.3.2.6/src/vkfuncs.hpp 2022-07-29 18:25:48.000000000 +0200 @@ -5,7 +5,8 @@ FORVKFUNC(GetInstanceProcAddr) \ FORVKFUNC(GetPhysicalDeviceFormatProperties) \ FORVKFUNC(GetPhysicalDeviceMemoryProperties) \ - FORVKFUNC(GetPhysicalDeviceQueueFamilyProperties) + FORVKFUNC(GetPhysicalDeviceQueueFamilyProperties) \ + FORVKFUNC(GetPhysicalDeviceProperties) #define VK_DEVICE_FUNCS \ FORVKFUNC(AllocateCommandBuffers) \