aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2015-04-14 14:12:59 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:48:20 +0800
commit94b12ef51a6495efbec92d56754ef6c2947daf98 (patch)
treee6828aa68fb420bb0d479e6293d62d3c8c53c6af /layers/draw_state.cpp
parente2a7a99a62b5f3945c777ec2046f678fe45c77d2 (diff)
downloadusermoji-94b12ef51a6495efbec92d56754ef6c2947daf98.tar.xz
layers: Add extension Validation so loader will add layers with Validation
Also fix extension supported list in DrawState and ObjectTracker to include their local extensions in GetGlobalExtensionInfo()
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index e74fa18e..1ad7c1d8 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -1470,10 +1470,14 @@ struct extProps {
uint32_t version;
const char * const name;
};
-#define DRAW_STATE_LAYER_EXT_ARRAY_SIZE 1
+#define DRAW_STATE_LAYER_EXT_ARRAY_SIZE 5
static const struct extProps dsExts[DRAW_STATE_LAYER_EXT_ARRAY_SIZE] = {
// TODO what is the version?
- 0x10, "DrawState"
+ 0x10, "DrawState",
+ 0x10, "Validation",
+ 0x10, "drawStateDumpDotFile",
+ 0x10, "drawStateDumpCommandBufferDotFile",
+ 0x10, "drawStateDumpPngFile"
};
VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalExtensionInfo(
@@ -1637,6 +1641,8 @@ VK_LAYER_EXPORT VkResult VKAPI vkCreateGraphicsPipelineDerivative(
track_pipeline(pCreateInfo, pPipeline);
loader_platform_thread_unlock_mutex(&globalLock);
+
+ return result;
}
VK_LAYER_EXPORT VkResult VKAPI vkCreateSampler(VkDevice device, const VkSamplerCreateInfo* pCreateInfo, VkSampler* pSampler)