2018-11-26 21:04:52 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-11-26 21:04:52 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "runtime/os_interface/linux/drm_engine_mapper.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2018-11-26 21:04:52 +08:00
|
|
|
#include "drm/i915_drm.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "hw_cmds.h"
|
2018-11-26 21:04:52 +08:00
|
|
|
|
|
|
|
namespace OCLRT {
|
|
|
|
|
|
|
|
unsigned int DrmEngineMapper::engineNodeMap(EngineType engineType) {
|
|
|
|
if (EngineType::ENGINE_RCS == engineType) {
|
|
|
|
return I915_EXEC_RENDER;
|
|
|
|
}
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
}
|
|
|
|
} // namespace OCLRT
|