diff options
| author | Mike Stroyan <mike@LunarG.com> | 2015-08-12 17:11:28 -0600 |
|---|---|---|
| committer | Mike Stroyan <mike@LunarG.com> | 2015-08-14 10:50:42 -0600 |
| commit | db3f98c3273e6c1bd4a1da6660daca181b703feb (patch) | |
| tree | a01c1c7d1973200d65724707749fb03acd5ad559 /layers/draw_state.cpp | |
| parent | 7164b63d18f07088cfc46276b25722d17224f003 (diff) | |
| download | usermoji-db3f98c3273e6c1bd4a1da6660daca181b703feb.tar.xz | |
layers: Optimize DrawState when info is not shown
Return quickly from synchAndPrintDSConfig when info is not requested.
Diffstat (limited to 'layers/draw_state.cpp')
| -rw-r--r-- | layers/draw_state.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
