mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
Related-To: NEO-4744 Change-Id: I1e9da6ec58f8b0144a7371e702a0c3a8425864d7 Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
25 lines
552 B
C++
25 lines
552 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/linux/drm_engine_mapper.h"
|
|
|
|
#include "shared/source/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;
|
|
}
|
|
UNRECOVERABLE_IF(true);
|
|
}
|
|
} // namespace NEO
|