From 94b12ef51a6495efbec92d56754ef6c2947daf98 Mon Sep 17 00:00:00 2001 From: Jon Ashburn Date: Tue, 14 Apr 2015 14:12:59 -0600 Subject: 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() --- layers/draw_state.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') 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) -- cgit v1.2.3