workaround warning
This commit is contained in:
parent
aecb1704f7
commit
c43e1768c2
@ -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
|
||||
|
12
warning-fix.patch
Normal file
12
warning-fix.patch
Normal file
@ -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<IMAGE_VIEW_STATE> depth_image_view_shared_ptr;
|
||||
IMAGE_VIEW_STATE* depth_image_view = nullptr;
|
||||
- layer_data::optional<VkAttachmentLoadOp> load_op;
|
||||
+ layer_data::optional<VkAttachmentLoadOp> 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;
|
Loading…
Reference in New Issue
Block a user