Partial support for XE_HP_SDV

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-04-23 16:43:48 +00:00
committed by Compute-Runtime-Automation
parent e0a50d3143
commit 96d14967ac
151 changed files with 15140 additions and 41 deletions

View File

@@ -6,6 +6,7 @@
set(NEO_CORE_OS_INTERFACE_TESTS_LINUX
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
${CMAKE_CURRENT_SOURCE_DIR}/app_resource_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR_SUFFIX}/drm_query_tests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/drm_special_heap_test.cpp
)

View File

@@ -0,0 +1,28 @@
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/app_resource_helper.h"
#include "shared/test/common/mocks/mock_graphics_allocation.h"
#include "opencl/test/unit_test/mocks/mock_memory_manager.h"
#include "test.h"
using namespace NEO;
TEST(AppResourceLinuxTests, givenGraphicsAllocationTypeWhenCreatingStorageInfoFromPropertiesThenResourceTagAlwaysEmpty) {
MockMemoryManager mockMemoryManager;
const DeviceBitfield singleTileMask{static_cast<uint32_t>(1u << 2)};
auto allocationType = GraphicsAllocation::AllocationType::BUFFER;
AllocationProperties properties{mockRootDeviceIndex, false, 1u, allocationType, false, singleTileMask};
auto tag = AppResourceHelper::getResourceTagStr(properties.allocationType);
EXPECT_STREQ("", tag);
auto storageInfo = mockMemoryManager.createStorageInfoFromProperties(properties);
EXPECT_STREQ(tag, storageInfo.resourceTag);
}