mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
- Move Engine type to OsContext - Move OsContext to CSR - Improve EngineMapper logic - CompletionStamp cleanup Change-Id: I935cb7169c8c48cd09837e20e3da06f6dd3437b9 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
22 lines
603 B
C++
22 lines
603 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/windows/wddm_engine_mapper.h"
|
|
#include "test.h"
|
|
|
|
using namespace OCLRT;
|
|
|
|
TEST(WddmMapperTests, givenRcsEngineTypeWhenAskedForNodeOrdinalThenReturn3d) {
|
|
GPUNODE_ORDINAL gpuNode = WddmEngineMapper::engineNodeMap(EngineType::ENGINE_RCS);
|
|
GPUNODE_ORDINAL expected = GPUNODE_3D;
|
|
EXPECT_EQ(expected, gpuNode);
|
|
}
|
|
|
|
TEST(WddmMapperTests, givenNotSupportedEngineWhenAskedForNodeThenAbort) {
|
|
EXPECT_THROW(WddmEngineMapper::engineNodeMap(EngineType::ENGINE_BCS), std::exception);
|
|
}
|