diff --git a/vulkan-validation-layers.spec b/vulkan-validation-layers.spec index e50bcd7..b737343 100644 --- a/vulkan-validation-layers.spec +++ b/vulkan-validation-layers.spec @@ -8,6 +8,8 @@ URL: https://github.com/KhronosGroup/Vulkan-ValidationLayers Source0: %url/archive/sdk-%{version}.tar.gz#/Vulkan-ValidationLayers-sdk-%{version}.tar.gz Patch0: fix_shared.patch +Patch1: warning-fix.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake3 diff --git a/warning-fix.patch b/warning-fix.patch new file mode 100644 index 0000000..146ab3f --- /dev/null +++ b/warning-fix.patch @@ -0,0 +1,12 @@ +diff -up Vulkan-ValidationLayers-sdk-1.3.231.1/layers/best_practices_utils.cpp.dma Vulkan-ValidationLayers-sdk-1.3.231.1/layers/best_practices_utils.cpp +--- Vulkan-ValidationLayers-sdk-1.3.231.1/layers/best_practices_utils.cpp.dma 2022-11-10 13:11:09.083237236 +1000 ++++ Vulkan-ValidationLayers-sdk-1.3.231.1/layers/best_practices_utils.cpp 2022-11-10 13:11:31.616633169 +1000 +@@ -1922,7 +1922,7 @@ void BestPractices::RecordCmdBeginRender + if (VendorCheckEnabled(kBPVendorNVIDIA)) { + std::shared_ptr depth_image_view_shared_ptr; + IMAGE_VIEW_STATE* depth_image_view = nullptr; +- layer_data::optional load_op; ++ layer_data::optional load_op = VK_ATTACHMENT_LOAD_OP_DONT_CARE; + + if (rp->use_dynamic_rendering || rp->use_dynamic_rendering_inherited) { + const auto depth_attachment = rp->dynamic_rendering_begin_rendering_info.pDepthAttachment;