projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7164b63
)
layers: Optimize DrawState when info is not shown
author
Mike Stroyan
<mike@LunarG.com>
Wed, 12 Aug 2015 23:11:28 +0000
(17:11 -0600)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/layers/draw_state.cpp
b/layers/draw_state.cpp
index
fdd82cf
..
0e82f3b
100644
(file)
--- 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);