From 01f62f5d3754ffa85b72c08d490e43f3872dc3c8 Mon Sep 17 00:00:00 2001 From: Arkadiusz Sarwa Date: Tue, 19 Apr 2016 14:41:10 +0200 Subject: [PATCH] Bug Fix: Corrected result check in test dEQP-VK.api.command_buffers.submit_null_fence --- .../modules/vulkan/api/vktApiCommandBuffersTests.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp index b770d4f..0154d36 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiCommandBuffersTests.cpp @@ -3332,13 +3332,20 @@ tcu::TestStatus submitBufferNullFence(Context& context) // Wait for the queue VK_CHECK(vk.waitForFences(vkDevice, 1u, &fence.get(), VK_TRUE, INFINITE_TIMEOUT)); + tcu::TestStatus testResult = tcu::TestStatus::incomplete(); - if (vk.getEventStatus(vkDevice, events[0]->get()) != VK_EVENT_SET) - testResult = tcu::TestStatus::fail("The first event was not signaled -> the buffer was not executed."); + //Fence guaranteed that all buffers submited before fence were executed + if (vk.getEventStatus(vkDevice, events[0]->get()) != VK_EVENT_SET || vk.getEventStatus(vkDevice, events[1]->get()) != VK_EVENT_SET) + { + testResult = tcu::TestStatus::fail("One of the buffers was not executed."); + } else - testResult = tcu::TestStatus::pass("The first event was signaled -> the buffer with null fence submitted and executed correctly."); + { + testResult = tcu::TestStatus::pass("Buffers have been submitted and executed correctly."); + } + vk.queueWaitIdle(queue); return testResult; } -- 2.7.4