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:
0428dbc
)
layer: GL125 only check for fence in_use on valid fence handles
author
Tobin Ehlis
<tobine@google.com>
Fri, 5 Feb 2016 00:12:36 +0000
(17:12 -0700)
committer
Tobin Ehlis
<tobine@google.com>
Fri, 5 Feb 2016 18:12:59 +0000
(11:12 -0700)
layers/draw_state.cpp
patch
|
blob
|
history
diff --git
a/layers/draw_state.cpp
b/layers/draw_state.cpp
index
ef47f26
..
e096465
100644
(file)
--- a/
layers/draw_state.cpp
+++ b/
layers/draw_state.cpp
@@
-3586,7
+3586,7
@@
VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkQueueSubmit(VkQueue queue, uint
pCB->submitCount++; // increment submit count
skipCall |= validatePrimaryCommandBufferState(dev_data, pCB);
}
- if (dev_data->fenceMap[fence].in_use.load()) {
+ if (
(fence != VK_NULL_HANDLE) &&
dev_data->fenceMap[fence].in_use.load()) {
skipCall |= log_msg(
dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT,
VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT,