Files
compute-runtime/unit_tests/gen10/windows/wddm_mapper_tests_gen10.cpp
Artur Harasimiuk 40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00

33 lines
873 B
C++

/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "unit_tests/helpers/gtest_helpers.h"
#include "test.h"
#include "hw_cmds.h"
#include "runtime/os_interface/windows/wddm_engine_mapper.h"
using namespace OCLRT;
using namespace std;
struct WddmMapperTestsGen10 : public ::testing::Test {
void SetUp() override {}
void TearDown() override {}
};
GEN10TEST_F(WddmMapperTestsGen10, engineNodeMapPass) {
GPUNODE_ORDINAL gpuNode = GPUNODE_MAX;
bool ret = WddmEngineMapper<CNLFamily>::engineNodeMap(EngineType::ENGINE_RCS, gpuNode);
EXPECT_TRUE(ret);
EXPECT_EQ(GPUNODE_3D, gpuNode);
}
GEN10TEST_F(WddmMapperTestsGen10, engineNodeMapNegative) {
GPUNODE_ORDINAL gpuNode = GPUNODE_MAX;
bool ret = WddmEngineMapper<CNLFamily>::engineNodeMap(EngineType::ENGINE_BCS, gpuNode);
EXPECT_FALSE(ret);
}