mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Change-Id: I1685057a641d938170b8c7ec860d2f53f45b1d6d Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
26 lines
606 B
C++
26 lines
606 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/os_interface/linux/drm_engine_mapper.h"
|
|
|
|
#include "drm/i915_drm.h"
|
|
#include "hw_cmds.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
|