A buffer allocation test that is supposed to fail a large
allocation still tried to destroy the buffer even when an
error was returned from the allocation. This is now removed.
VK-GL-CTS Issue: 3192
Affects:
dEQP-VK.api.buffer.basic.size_max_uint64
Components: Vulkan
Change-Id: Ic36cb548ab2796b41e2a0b44d023e644b02a6d8c
return tcu::TestStatus::fail("Fail");
}
return tcu::TestStatus::fail("Fail");
}
- vk.destroyBuffer(vkDevice, rawBuffer, DE_NULL);
-
// check if one of the allowed errors was returned
if ((result == VK_ERROR_OUT_OF_DEVICE_MEMORY) ||
(result == VK_ERROR_OUT_OF_HOST_MEMORY))
// check if one of the allowed errors was returned
if ((result == VK_ERROR_OUT_OF_DEVICE_MEMORY) ||
(result == VK_ERROR_OUT_OF_HOST_MEMORY))