vulkan-validation-layers/warning-fix.patch

13 lines
750 B
Diff
Raw Normal View History

2022-11-10 03:26:45 +00:00
diff -up Vulkan-ValidationLayers-sdk-1.3.224.0/layers/best_practices_utils.cpp.dma Vulkan-ValidationLayers-sdk-1.3.224.0/layers/best_practices_utils.cpp
--- Vulkan-ValidationLayers-sdk-1.3.224.0/layers/best_practices_utils.cpp.dma 2022-08-20 02:26:32.000000000 +1000
+++ Vulkan-ValidationLayers-sdk-1.3.224.0/layers/best_practices_utils.cpp 2022-11-10 13:23:37.383472546 +1000
@@ -1966,7 +1966,7 @@ void BestPractices::RecordCmdBeginRender
} else {
RecordUnbindZcullScope(*cmd_state);
}
- if (load_op) {
+ if (*load_op) {
if (*load_op == VK_ATTACHMENT_LOAD_OP_CLEAR || *load_op == VK_ATTACHMENT_LOAD_OP_DONT_CARE) {
RecordResetScopeZcullDirection(*cmd_state);
}