Files
compute-runtime/runtime/os_interface/linux/drm_engine_mapper.cpp
Dunajski, Bartosz a8451b8aaa Support BCS context creation
Related-To: NEO-3020

Change-Id: I7ddd3816e7b9a5c8cd53a77e87625303a8549b8d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-04 12:18:29 +02:00

24 lines
517 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;
}
UNRECOVERABLE_IF(true);
}
} // namespace NEO