layers: Optimize DrawState when info is not shown
authorMike Stroyan <mike@LunarG.com>
Wed, 12 Aug 2015 23:11:28 +0000 (17:11 -0600)
committerMike Stroyan <mike@LunarG.com>
Fri, 14 Aug 2015 16:50:42 +0000 (10:50 -0600)
Return quickly from synchAndPrintDSConfig when info is not requested.

layers/draw_state.cpp

index fdd82cf..0e82f3b 100644 (file)
@@ -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);