2018-11-26 14:04:52 +01:00
|
|
|
/*
|
2019-02-27 11:39:32 +01:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-11-26 14:04:52 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "runtime/os_interface/linux/drm_engine_mapper.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2018-11-26 14:04:52 +01:00
|
|
|
#include "drm/i915_drm.h"
|
2019-02-27 11:39:32 +01:00
|
|
|
#include "hw_cmds.h"
|
2018-11-26 14:04:52 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2018-11-26 14:04:52 +01:00
|
|
|
|
2019-03-27 10:06:29 +01:00
|
|
|
unsigned int DrmEngineMapper::engineNodeMap(aub_stream::EngineType engineType) {
|
|
|
|
|
if (aub_stream::ENGINE_RCS == engineType) {
|
2018-11-26 14:04:52 +01:00
|
|
|
return I915_EXEC_RENDER;
|
2019-04-04 10:40:55 +02:00
|
|
|
} else if (aub_stream::ENGINE_BCS == engineType) {
|
|
|
|
|
return I915_EXEC_BLT;
|
2019-09-18 19:32:33 +02:00
|
|
|
} else if (aub_stream::ENGINE_CCS == engineType) {
|
|
|
|
|
return I915_EXEC_COMPUTE;
|
2018-11-26 14:04:52 +01:00
|
|
|
}
|
|
|
|
|
UNRECOVERABLE_IF(true);
|
|
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|