From cf503553eb44f104072d8add4069f8352f7bad22 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 23 Jul 2020 09:37:58 -0400 Subject: Fix for vulkan tests failing (#1456) * Clean up device when VKRenderer dtor is run. Added destroy methods to VulkanSwapChain & VulkanDeviceQueue * Small fixes around testing if DeviceQueue is valid. * Disable active-mask tests. Different drivers appear to change the results. --- tools/gfx/vulkan/vk-device-queue.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/gfx/vulkan/vk-device-queue.h') diff --git a/tools/gfx/vulkan/vk-device-queue.h b/tools/gfx/vulkan/vk-device-queue.h index d57483ec0..cd53b6b9d 100644 --- a/tools/gfx/vulkan/vk-device-queue.h +++ b/tools/gfx/vulkan/vk-device-queue.h @@ -54,6 +54,12 @@ struct VulkanDeviceQueue /// Steps to next command buffer and opens. May block if command buffer is still in use void flushStepB(); + /// Destroy the device queue + void destroy(); + + /// True if the queue appears to be valid and has been initialized + bool isValid() const { return m_api != nullptr; } + /// Dtor ~VulkanDeviceQueue(); -- cgit v1.2.3