Fix several bugs in synchronization tests
authorPyry Haulos <phaulos@google.com>
Thu, 14 Apr 2016 21:00:49 +0000 (14:00 -0700)
committerPyry Haulos <phaulos@google.com>
Thu, 14 Apr 2016 21:00:49 +0000 (14:00 -0700)
commitf0657d9d775dd0744462849e59842be8b0b56c48
tree06a2919977a9e753045b1ae0f575605f6716a4f4
parent4dc29e70d174f1c0071fc85ef57879f79886d325
Fix several bugs in synchronization tests

 * Tests were mixing default device and test-specific device objects,
resulting in use of objects created from one device with another device.

 * Tests were using DeviceInterface of default device with test-specific
device objects, leading to crashes when layers were enabled.

 * Similarly, Allocator of default device was used with test-specific
device objects.

 * Several objects were leaked.

Bug: 28074219
Change-Id: I7588ce3eac07919e958f722168f2d83401e7e038
external/vulkancts/modules/vulkan/vktSynchronization.cpp