mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-27 15:53:13 +08:00
Change-Id: I4d1f9e64e0f4099e7903234e62b070ad4235347a Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
27 lines
626 B
C++
27 lines
626 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/linux/drm_engine_mapper.h"
|
|
|
|
#include "core/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
|