Add some watchdog touches in AHB image format tests
authorChris Forbes <chrisforbes@google.com>
Mon, 17 Dec 2018 16:53:22 +0000 (08:53 -0800)
committerChris Forbes <chrisforbes@google.com>
Mon, 17 Dec 2018 16:57:22 +0000 (08:57 -0800)
Timing on these tests is marginal if the device runs into memory trouble
and needs to spend a lot of time reclaiming to satisfy the allocations.

Change-Id: If397b95b3be02553b3bca2baf43b21b245136b6d
Affects: dEQP-VK.api.external.memory.android_hardware_buffer.image_formats
Components: Vulkan

external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp

index 7e0d8a4..17e58d4 100755 (executable)
@@ -4056,6 +4056,9 @@ tcu::TestStatus testAndroidHardwareBufferImageFormat  (Context& context, vk::VkF
                                ahbApi->describe(handle.getAndroidHardwareBuffer(), DE_NULL, DE_NULL, DE_NULL, &ahbFormat, &anhUsage, DE_NULL);
                                TCU_CHECK(ahbFormat == ahbApi->vkFormatToAhbFormat(format));
                                TCU_CHECK((anhUsage & requiredAhbUsage) == requiredAhbUsage);
+
+                               // Let watchdog know we're alive
+                               context.getTestContext().touchWatchdog();
                        }
 
                        if (properties.imageFormatProperties.maxMipLevels > 1u)