Fix freeing custom device in dynamic state tests
authorRicardo Garcia <rgarcia@igalia.com>
Mon, 4 Apr 2022 15:58:55 +0000 (17:58 +0200)
committerMatthew Netsch <mnetsch@qti.qualcomm.com>
Fri, 8 Apr 2022 20:48:36 +0000 (20:48 +0000)
commit88901b3bcf65bbb08e53c84c0e9dfc11caeafda5
treec86a27302120103790b349b2d63fd1904cabbc30
parent6c8501454efd008c07c8ef310b732c1ef0670830
Fix freeing custom device in dynamic state tests

Some dynamic state tests use a custom device that was not being properly
freed when existing a test group that used the device. This sometimes
caused crashes on program termination.

No tests should be affected by this change. This fix only touches the
test hierarchy. However, to check the fix doesn't break anything:

dEQP-VK.dynamic_state.*

Components: Vulkan
VK-GL-CTS issue: 3602

Change-Id: I6bf97900497b6e795c1fbacef5b3fc68619a9ff4
(cherry picked from commit 33fba799401ba8e74907bf4bf7893d50f188e842)
external/vulkancts/modules/vulkan/dynamic_state/vktDynamicStateTests.cpp