Files
compute-runtime/shared/source/os_interface/linux/drm_engine_mapper.cpp
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00

27 lines
641 B
C++

/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/linux/drm_engine_mapper.h"
#include "shared/source/helpers/debug_helpers.h"
#include "drm/i915_drm.h"
namespace NEO {
unsigned int DrmEngineMapper::engineNodeMap(aub_stream::EngineType engineType) {
if (aub_stream::ENGINE_RCS == engineType) {
return I915_EXEC_RENDER;
} else if (aub_stream::ENGINE_BCS == engineType) {
return I915_EXEC_BLT;
} else if (aub_stream::ENGINE_CCS == engineType) {
return I915_EXEC_COMPUTE;
}
UNRECOVERABLE_IF(true);
}
} // namespace NEO