layers: LX300, Conditionally validate pInheritanceInfo in object_tracker
authorMark Lobodzinski <mark@lunarg.com>
Sun, 24 Jan 2016 01:31:23 +0000 (18:31 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Sun, 24 Jan 2016 01:31:23 +0000 (18:31 -0700)
commit610bfe0686773c603eb86373d2cd5aa9c7780613
tree6dcffbceccf80f4a46ef4b939ca64ebc5a1e23f0
parent1a0e460298395fd298f5f498b8ac0a29da08f5fd
layers: LX300, Conditionally validate pInheritanceInfo in object_tracker

In BeginCommandBuffers, pInheritance may be non-NULL but should only be
validated if it is part of a secondary command buffer. Added status flag
for this setting in AllocateCommandBuffers and added code-gen for this
special case to the layer generation code and made the routine
(dereference_conditionally) general-purpose.
layers/object_tracker.h
vk-layer-generate.py