layers: LX450, Tighten up queueFamilyIndex validation, fix crash
authorMark Lobodzinski <mark@lunarg.com>
Tue, 22 Mar 2016 16:07:26 +0000 (10:07 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 24 Mar 2016 13:09:15 +0000 (07:09 -0600)
commit0fda7ff2b17ea83f451b59b7dbcf1f2660730eef
tree31c233c449a3bec2134379f2cdc3506d44181cf6
parent1643e2693923cbe63017c5fbe1465756c8a07341
layers: LX450, Tighten up queueFamilyIndex validation, fix crash

For CreateBuffer and CreateImage the QFIs should be ignored unless
sharingMode is set to CONCURRENT.  Also added QFI validation to
CreateCommandPool and added a special case for when an index is
incorrectly set to QUEUE_FAMILY_IGNORED.

Change-Id: I17639230ea7aa58ab89b9b0dc33e55927e9f1c84
layers/core_validation.cpp
layers/parameter_validation.cpp