From 4c0da77c705464a259b38944fb53cf747e4c0554 Mon Sep 17 00:00:00 2001 From: Lenny Komow Date: Tue, 3 Jul 2018 10:17:21 -0600 Subject: [PATCH] layers: Rework include dependencies This change removes the assumption that vk_layer.h will include vk_layer_dispatch_table.h, since it will be removed from vk_layer.h in the near future. Backported-by: Nick Sarnie Change-Id: I082ccc52c3cb8257bf57342404d52dd737009b4b --- layers/parameter_validation_utils.cpp | 1 + layers/vk_layer_logging.h | 1 + layers/vk_layer_table.h | 1 + scripts/dispatch_table_helper_generator.py | 1 + 4 files changed, 4 insertions(+) diff --git a/layers/parameter_validation_utils.cpp b/layers/parameter_validation_utils.cpp index 17f95bb8..c65a4970 100644 --- a/layers/parameter_validation_utils.cpp +++ b/layers/parameter_validation_utils.cpp @@ -46,6 +46,7 @@ #include "vk_layer_logging.h" #include "vk_layer_extension_utils.h" #include "vk_layer_utils.h" +#include "vk_layer_dispatch_table.h" #include "parameter_name.h" #include "parameter_validation.h" diff --git a/layers/vk_layer_logging.h b/layers/vk_layer_logging.h index f111cc5d..f67a3f55 100644 --- a/layers/vk_layer_logging.h +++ b/layers/vk_layer_logging.h @@ -31,6 +31,7 @@ #include "vulkan/vk_layer.h" #include "vk_object_types.h" #include "vk_validation_error_messages.h" +#include "vk_layer_dispatch_table.h" #include #include #include diff --git a/layers/vk_layer_table.h b/layers/vk_layer_table.h index 45b8f6e1..23990a12 100644 --- a/layers/vk_layer_table.h +++ b/layers/vk_layer_table.h @@ -19,6 +19,7 @@ #pragma once +#include "vk_layer_dispatch_table.h" #include "vulkan/vk_layer.h" #include "vulkan/vulkan.h" #include diff --git a/scripts/dispatch_table_helper_generator.py b/scripts/dispatch_table_helper_generator.py index fba25e55..1e2412c0 100644 --- a/scripts/dispatch_table_helper_generator.py +++ b/scripts/dispatch_table_helper_generator.py @@ -113,6 +113,7 @@ class DispatchTableHelperOutputGenerator(OutputGenerator): preamble += '#include \n' preamble += '#include \n' preamble += '#include \n' + preamble += '#include "vk_layer_dispatch_table.h"\n' write(copyright, file=self.outFile) write(preamble, file=self.outFile) --