layers: Handle binding between cmd buffer and query pools
authorTobin Ehlis <tobine@google.com>
Fri, 8 Jul 2016 20:22:01 +0000 (14:22 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 13 Jul 2016 17:29:38 +0000 (11:29 -0600)
commit54091cf3b7b2068543a931aca5af206adfa475f8
treea43c8b0310efd5cae351c34069f89800a24b67a8
parent947aad8ad391dca912ede308bb7b885c63d86148
layers: Handle binding between cmd buffer and query pools

For the CmdBind* functions that involve queryPool object, add a binding between
the cmd buffer and the queryPool.

In the event that a queryPool is destroyed, invalidate any bound cmd buffers
and make sure invalid reporting is handled correctly for query pools.

When a cmd buffer is destroyed that has query pool bindings, those bindings
will be cleared under existing object_binding cleanup in resetCB.
layers/core_validation.cpp