layers: Plumb function name/idx through swapchain
authorMark Lobodzinski <mark@lunarg.com>
Wed, 11 Jan 2017 20:54:09 +0000 (13:54 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 11 Jan 2017 22:27:45 +0000 (15:27 -0700)
commitd9e343c0988e0f2f8e973244feed189d0235ec27
tree9ffe49db95c01b14dba0c7ad8cfa94e5df3479d0
parent3cafa2023a16fd7157c79e46507925aba1182d40
layers: Plumb function name/idx through swapchain

PreCallValidateCreateSwapchainKHR is now used to validate
CreateSwapchain as well as CreateSharedSwapchains. Plumbed the
functionName down through the validation code so users can see the
faulting API and the bad swapchain index.

Change-Id: Ieb885704bef8a73c09e6670594e96494b62cb1a4
layers/core_validation.cpp