From db3f98c3273e6c1bd4a1da6660daca181b703feb Mon Sep 17 00:00:00 2001 From: Mike Stroyan Date: Wed, 12 Aug 2015 17:11:28 -0600 Subject: layers: Optimize DrawState when info is not shown Return quickly from synchAndPrintDSConfig when info is not requested. --- layers/draw_state.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layers/draw_state.cpp') diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index fdd82cfa..0e82f3b0 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1263,6 +1263,9 @@ static void printCB(const VkCmdBuffer cb) static void synchAndPrintDSConfig(const VkCmdBuffer cb) { + if (!(mdd(cb)->active_flags & VK_DBG_REPORT_INFO_BIT)) { + return; + } printDSConfig(cb); printPipeline(cb); printDynamicState(cb); -- cgit v1.2.3