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:
845421f
)
layers: GL156 Ignore pQueueFamilyIndices if exclusive sharing mode is requested
author
Dominik Witczak
<Dominik.Witczak@amd.com>
Wed, 2 Mar 2016 16:24:56 +0000
(17:24 +0100)
committer
Tobin Ehlis
<tobine@google.com>
Mon, 7 Mar 2016 14:34:58 +0000
(07:34 -0700)
layers/draw_state.h
patch
|
blob
|
history
diff --git
a/layers/draw_state.h
b/layers/draw_state.h
index
85eb836
..
9b071ac
100644
(file)
--- a/
layers/draw_state.h
+++ b/
layers/draw_state.h
@@
-701,7
+701,8
@@
typedef struct _SWAPCHAIN_NODE {
createInfo(*pCreateInfo),
pQueueFamilyIndices(NULL)
{
- if (pCreateInfo->queueFamilyIndexCount) {
+ if (pCreateInfo->queueFamilyIndexCount &&
+ pCreateInfo->imageSharingMode == VK_SHARING_MODE_CONCURRENT) {
pQueueFamilyIndices = new uint32_t[pCreateInfo->queueFamilyIndexCount];
memcpy(pQueueFamilyIndices, pCreateInfo->pQueueFamilyIndices, pCreateInfo->queueFamilyIndexCount*sizeof(uint32_t));
createInfo.pQueueFamilyIndices = pQueueFamilyIndices;