Clean ExternalMemoryUtil
authorPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 9 Apr 2020 11:41:09 +0000 (13:41 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 20 Apr 2020 07:55:44 +0000 (03:55 -0400)
commit5b474f13e7d2f501a504e6fdeab9adac1e1fb87e
tree9d9943158a64a651578f74c7ef017e66fa7d60fe
parentd7f98d3312422a446496bcbb0f88434de2026ccc
Clean ExternalMemoryUtil

This change separates choosing of memory type from
allocateExportableMemory utility function. This makes
use of this functions more clear.
Previous implementation needed to be done ASAP and
involved passing of non-const reference to
allocateExportableMemory which was then filled.
This workaround made code unnecessarily hard to follow.

Components: Vulkan

VK-GL-CTS issue: 587

Affects:
dEQP-VK.api.external.memory.*
dEQP-VK.synchronization.signal_order.*
dEQP-VK.synchronization.cross_instance.*

Change-Id: I781388db390f13c7c03785dd0ae34ae0128ec31c
external/vulkancts/modules/vulkan/api/vktApiExternalMemoryTests.cpp
external/vulkancts/modules/vulkan/synchronization/vktSynchronizationCrossInstanceSharingTests.cpp
external/vulkancts/modules/vulkan/synchronization/vktSynchronizationSignalOrderTests.cpp
external/vulkancts/modules/vulkan/util/vktExternalMemoryUtil.cpp
external/vulkancts/modules/vulkan/util/vktExternalMemoryUtil.hpp