commit | fa2f222b54e5a8067f8ff6ec06925262edd10375 | [log] [tgz] |
---|---|---|
author | Mike Stroyan <mike@LunarG.com> | Wed Aug 12 17:11:28 2015 -0600 |
committer | Mike Stroyan <mike@LunarG.com> | Fri Aug 14 10:50:42 2015 -0600 |
tree | 4a61e2b54b32ba3a4f7ca8522c7a8f287f303aad | |
parent | 965af68ab65393087a0904aa03fbca31dbdcc879 [diff] [blame] |
layers: Optimize DrawState when info is not shown Return quickly from synchAndPrintDSConfig when info is not requested.
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index fdd82cf..0e82f3b 100644 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp
@@ -1263,6 +1263,9 @@ static void synchAndPrintDSConfig(const VkCmdBuffer cb) { + if (!(mdd(cb)->active_flags & VK_DBG_REPORT_INFO_BIT)) { + return; + } printDSConfig(cb); printPipeline(cb); printDynamicState(cb);