/*
 * 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
